Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Restore Posts and Threads of Deleted User. Details »»
Restore Posts and Threads of Deleted User.
Version: 1.00, by borbole borbole is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.4 Rating:
Released: 05-09-2010 Last Update: Never Installs: 52
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

Has it ever happen to you when a user in a moment of angry deletes his/her account and later comes back? Or his/her account was deleted by the evil admin and all his/her posts appear as guests? If it has happen, then this mod is for you.

With this mod you can assign back his/her posts and threads. All the user has to do is to register again, be that with the same username as before or a new one. Then you can reassign back all their posts.

I know that this can be also done with a query at phpmyadmin, but this mod is meant to make it easier for those that are not so tech swavy and are not familiar with phpmyadmin and are afraid of messing things up.

Installation:

To install the mod, upload the includes folder to your forum root folder and then import the Restore Posts And Threads.xml file inside the mod package to Plugins&Products in the acp of your forum. Then go to the mod setting option: Restore Deleted User. It can be found on the left side of the Admin Panel, right above the Maintenace section. And enter the information accordingly.


Note: After assigning the posts and/or threads, go to: Admin CP -> Maintenance -> Update Counters and run the Rebuild Thread Information, Rebuild Forum Information, Update User Names, Update Post Counts.

Note, before you run the last option ( Update Post Counts), read the description under the title.

Download Now

File Type: zip restore_deleted_user.zip (1.7 KB, 389 views)

Screenshots

File Type: png acp1.png (4.3 KB, 0 views)
File Type: png acp2.png (31.9 KB, 0 views)
File Type: png acp3.png (31.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Abu2, Artes_Marciales, TAIFUN_T

Comments
  #12  
Old 06-08-2010, 03:13 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Borbole, is it expected to cause high server loads when assigning them back? I mean with users with around 3k posts.
Reply With Quote
  #13  
Old 06-08-2010, 03:56 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried this on a user with over 3k posts and the server had very high loads and eventually I had to just suspend the account and unsuspend it and then disable the product to stop the query. It doesnt appear to have affected the users posts at all though after updating the ones mentioned other but without running the last one, I dont think it was assigning them successfully. I will have to try on a much smaller post count to verify.
Reply With Quote
  #14  
Old 06-08-2010, 04:04 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I have tried on a deleted user that had only two posts, the query sends the server wild no matter how many posts needing reassigned and it doesnt appear to work at all and this is after testing using all instructions including the post counts update. Hope this can be fixed as its nice and simple to use
Reply With Quote
  #15  
Old 06-08-2010, 04:19 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven''t reproduced this when I have tested/uses the mod. It has worked fine. I can'' t fix something that I can''t reproduce.
Reply With Quote
  #16  
Old 06-08-2010, 05:23 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

True, can anyone else confirm the same issues I am having? Are all of the files within the zip? I would love for this to work for me. On the smaller post count deleted user I tried again without the server issue but it isnt reassigning the posts at all.
Reply With Quote
  #17  
Old 06-08-2010, 05:37 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh now I know why it was messing up, just done a search here and found someone else doing the same as me. I had been using the usernames in both damn fields, I can confirm it works a treat

There is 1 bug that I now know of, if the new user has 0 posts they do not assign and will only assign once they have made one post.
Reply With Quote
  #18  
Old 06-08-2010, 06:40 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sweeks View Post
Oh now I know why it was messing up, just done a search here and found someone else doing the same as me. I had been using the usernames in both damn fields, I can confirm it works a treat

There is 1 bug that I now know of, if the new user has 0 posts they do not assign and will only assign once they have made one post.
Glad to hear that you got it sorted out.

About that bug, it is not a bug. If the deelted user has 0 post then there is nothing to re-assign. Or did you mean the newly registered user? It works even if it has no posts at all.
Reply With Quote
  #19  
Old 06-08-2010, 07:40 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems to only work for me if the new user has at least 1 post, ive tried it on the same two boards and it seems to be a pattern for me, aside from that slight issue though I am content with it
Reply With Quote
  #20  
Old 06-08-2010, 09:37 PM
Naan-Kadavul's Avatar
Naan-Kadavul Naan-Kadavul is offline
 
Join Date: Sep 2009
Location: Singpore
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One doubt..

Will it restore the attachments (torrents) in the thread ?

Or just threads & posts only ?
Reply With Quote
  #21  
Old 06-19-2010, 07:00 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Threads and posts only with this mod.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07228 seconds
  • Memory Usage 2,331KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete