vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Restore Posts and Threads of Deleted User. (New Version) (https://vborg.vbsupport.ru/showthread.php?t=236861)

borbole 02-24-2010 10:00 PM

Restore Posts and Threads of Deleted User. (New Version)
 
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 admincp and includes folders to your forum root folder maintenaning the structure intact and then import the Restore Posts And Threads.xml file inside the mod package to Plugins&Products in the acp of your forum.

To make use of the mod go to the Maintenance area at your acp, click the drop down list and you will see a new option added called: Restore Deleted User. Click on it and configure it accordinly.


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.




If you will need support with this mod, then please post at the mod thread at my forum. Thanks :)

http://www.forumservices.eu/vb/showt...f-Deleted-User

NiTRoN 02-25-2010 11:48 AM

woot first!

princeedward 02-25-2010 12:09 PM

NICE ONE! ...or can you please create too the same mod as to transfer thread/post to another users...meaning

Change Threads/Posts Owner

LIKE THIS ONE!

well gonna try this might useful or need it later.....

thanks and best regards

:p:up:

steve1966 02-25-2010 01:05 PM

thanks will use that now hope it works ?

edit yes it worked for me voted nominated

borbole 02-25-2010 01:14 PM

Quote:

Originally Posted by NiTRoN (Post 1991191)
woot first!

Thanks for marking it as installed.

Quote:

Originally Posted by princeedward (Post 1991203)
NICE ONE! ...or can you please create too the same mod as to transfer thread/post to another users...meaning

Change Threads/Posts Owner

LIKE THIS ONE!

well gonna try this might useful or need it later.....

thanks and best regards

:p:up:

That seems like it will require some work and I don''t have so much free time now to spend into creating bigger mods.

Quote:

Originally Posted by steve1966 (Post 1991240)
thanks will use that now hope it works ?

It will work. I have tested it thoroughly multiple times before submitting it.

samiro 02-26-2010 10:53 AM

Be careful when you install this script
my DB was 300 MB
now it increased to 900 MB

The support of my hosting are trying to help me and nothing worked.
For some reason this script increased the DB
My site is slow now.

Suddenly need a lot of RAM

borbole 02-26-2010 01:38 PM

Quote:

Originally Posted by samiro (Post 1991910)
Be careful when you install this script
my DB was 300 MB
now it increased to 900 MB

The support of my hosting are trying to help me and nothing worked.
For some reason this script increased the DB
My site is slow now.

Suddenly need a lot of RAM

How many posts were restored when you used this mod? The mod itself doesn''t affect the db in that way. It simply runs the query needed to assign back the posts of the deleted user.

steve1966 02-26-2010 01:43 PM

looks like the same problem for me my db has increased

borbole 02-26-2010 02:21 PM

Quote:

Originally Posted by steve1966 (Post 1992005)
looks like the same problem for me my db has increased


How many posts were restored when you used this mod?

steve1966 02-26-2010 02:55 PM

Quote:

Originally Posted by borbole (Post 1992032)
How many posts were restored when you used this mod?

about 6000

borbole 02-26-2010 03:16 PM

Quote:

Originally Posted by steve1966 (Post 1992048)
about 6000

Maybe that is why. When you ran the update counter it increaed the db size. I just tried it with 1000 posts right now and the db size remained intact.

steve1966 02-26-2010 04:32 PM

Can this cause a problem for my forum

borbole 02-26-2010 04:49 PM

Not at all. All it does is run a query that reassigns back the posts of deleted user. Don''t worry.

steve1966 02-26-2010 05:02 PM

Hi ok thanks

IRANCITY 02-27-2010 07:27 AM

greats work

Manoel J?nior 02-27-2010 10:58 AM

Great mod!!

Thx man

borbole 02-27-2010 03:55 PM

Quote:

Originally Posted by Manoel J?nior (Post 1992729)
Great mod!!

Thx man

You are welcome. Thank you for your feedbackback/comment and for clicking the install button :)

The mod has been updated. Now I added the option to restore the threads as well of the deleted user next to the posts.

borbole 02-28-2010 01:11 PM

Quote:

Originally Posted by IRANCITY (Post 1992633)
greats work

Did you manage to reassign back the posts of the deleted user that you asked about at your other thread?

dimthan 02-28-2010 10:54 PM

Hi to all , when i install the product and run the script , and i go to see any page of my domain i m getting this ...error



UPDATE post
SET userid = '59274'
WHERE username = '*Apollwnas*';

MySQL Error : Table 'fundb6.post' doesn't exist
Error Number : 1146
Request Date : Sunday, February 28th 2010 @ 05:46:30 PM
Error Date : Sunday, February 28th 2010 @ 05:46:30 PM
Script : http://www........com/forum/showthre...C5%C9%D3/page2
Referrer : http://www......../forum/showthread....C1%D3%C5%C9%D3
IP Address : 193.92.84.24
Username : .....
Classname : vB_Database
MySQL Version : 5.1.43-log


If i disable the merge of users everything is ok .....

il lost the user after a impex of a 3.8.4 db to 4.0.1 db .it was the only user from the 30000 tha he never comes back .
i dont know why...but i have the new and the old database in 3.8.4
Does anyone knows how i ll get back the user ?

borbole 03-01-2010 01:26 PM

From the error you get it seems like the post table is missing.

borbole 03-01-2010 08:58 PM

The mod is updated again. For more info please have a look at the very first post and the attached screenshot.

Mrquarter2 03-05-2010 12:04 AM

This mod looks REALLY good, is there anyway I can use it for 3.8.. that is all I have?

alessai 03-05-2010 01:47 AM

technically how is this possible? could you please explain?

borbole 03-05-2010 09:19 AM

Try to remove the version at <dependencies> and give it a go. But test it first at your test forum.

SpaceStar 03-16-2010 07:38 PM

Hi, Unfortunately this mod has damaged my DB :( :( :(

I am getting this errror:

borbole 03-16-2010 08:32 PM

Quote:

Originally Posted by SpaceStar (Post 2004990)
Hi, Unfortunately this mod has damaged my DB :( :( :(

I am getting this errror:

It is not possible. This mod has been tested thoroughly numerous times and it doesn''t cause any damage what so ever.

That said, the error that you are having is because of a missing table. (helpfulpost) Can I see a screenshot of your db tables in your phpmyadmin?

SpaceStar 03-16-2010 08:42 PM

Quote:

Originally Posted by borbole (Post 2005017)
It is not possible. This mod has been tested thoroughly numerous times and it doesn''t cause any damage what so ever.

That said, the error that you are having is because of a missing table. (helpfulpost) Can I see a screenshot of your db tables in your phpmyadmin?

Yes I created that table and it's columns and it worked - so it might have been other things - but quite weird it comes after installation of this mod :(

But certainly nothing to do wiht that hack... working fine :)

kall 03-22-2010 04:26 PM

Quote:

Originally Posted by borbole (Post 1994468)
From the error you get it seems like the post table is missing.

You still don't appear to have table_prefix in your queries in the latest version.

borbole 03-22-2010 05:50 PM

Quote:

Originally Posted by kall (Post 2008215)
You still don't appear to have table_prefix in your queries in the latest version.

I had forgotten to include in the query the possibility of other db prefixes. But now I did. Thank you very much for bringing it to my attention :)

borbole 05-10-2010 06:12 PM

Updated.

spillage 07-01-2010 10:43 PM

OK, this mod restores/reassigns posts from deleted users to a new user ID.
What if you don't kow the old username?
All the posts from deleted users are attributed to "Guest", but Guest is not a username.
I believe "Guest" is User ID 0 (?)... Can we have a from User ID option?

pant 07-02-2010 06:53 AM

I deleted a user by accident about a year ago before we upgraded to 4.0, the user set up his account again and I just gave him a big post count as he was quite active. Will this still work in restoring back his original posts because he is set as guest.

borbole 07-02-2010 10:40 AM

Quote:

Originally Posted by spillage (Post 2062992)
OK, this mod restores/reassigns posts from deleted users to a new user ID.
What if you don't kow the old username?
All the posts from deleted users are attributed to "Guest", but Guest is not a username.
I believe "Guest" is User ID 0 (?)... Can we have a from User ID option?

Yes, the uid option is for the user under whom the deleted posts and threads of the deleted user will go. For the guest part, no uid can be assigned as that covers all the guests. That is why the old username for the deleted user is required. So it affects only that particluar "guest".

Quote:

Originally Posted by pant (Post 2063091)
I deleted a user by accident about a year ago before we upgraded to 4.0, the user set up his account again and I just gave him a big post count as he was quite active. Will this still work in restoring back his original posts because he is set as guest.

Yes, it will. Simply follow the instructions at the mod settings and you should be all set.

spillage 07-02-2010 09:00 PM

Quote:

Originally Posted by borbole (Post 2063175)
Yes, the uid option is for the user under whom the deleted posts and threads of the deleted user will go. For the guest part, no uid can be assigned as that covers all the guests. That is why the old username for the deleted user is required. So it affects only that particluar "guest".

Since the old usernames are unknown, and I want to move all guest posts to a single usermane, it would appear you're now saying this mod will not do the job.

Am I correct?

mimocherry 07-02-2010 09:11 PM

I used it before! worked beautifully!

spillage 07-02-2010 09:29 PM

Quote:

Originally Posted by mimocherry (Post 2063424)
I used it before! worked beautifully!

I've tried it, and it does work for known deleted usernames... but that is not what my request was for when I was directed here... I want unknown usernames.

pant 07-02-2010 09:46 PM

Eh

Is there something wrong with you, how are you meant to restore someone that you don't know?

spillage 07-02-2010 10:11 PM

The original "Username"(s) is/are unknown... all posts are attributed to "Guest", which is not a username... I don't care what the original usernames are, I want all "Guest" posts (at this point) to be associated with a new username.

pant 07-02-2010 10:25 PM

oh

Still think you're mental.

spillage 07-03-2010 12:07 AM

Quote:

Originally Posted by pant (Post 2063476)
oh

Still think you're mental.

Do you remember the usernames of all the users you deleted 7 years ago?

I thought not.

And my mental state is not the question here... What I'm trying to achieve has always been the question... I was directed to this mod from the vB forums by borbole... it turns out that this mod will not do what I want.


All times are GMT. The time now is 06:38 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.02660 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete