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)

pant 07-03-2010 08:11 AM

Chill

borbole 07-03-2010 10:32 AM

Quote:

Originally Posted by spillage (Post 2063421)
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?

The old usernames of the deleted users can be seen under their posts they made or you can see them at the database as well. Anyway, to do what you want, to assign posts of all guests to someone, run this query at your phpmyadmin or from Maintenance->Execute SQL Query in your Acp.

Code:

UPDATE post
        SET username = 'posterusername'
        WHERE  userid = 0;

But first make a backup of your posts table. Also, change posterusername with the actual username to whom you want to attribute the posts of all guests and if your db tables have a prefix, include it in the query as well.

Let me know if you want to do the same with threads as well.

P.s. At vb.com you asked how to get back posts of deleted users that appear as guests btw and that is exactly what this mod does. Also, before you download and use a mod, it would be best if first you had a good look at the description :)

spillage 07-03-2010 11:44 AM

borbole, the query you just provided is exactly what I asked for over at vB.com

If you would be so kind as to provide the thread query also, that would be appreciated.

Thanks for taking the time to help.
Regards,

borbole 07-03-2010 11:51 AM

Quote:

Originally Posted by spillage (Post 2063795)
borbole, the query you just provided is exactly what I asked for over at vB.com

If you would be so kind as to provide the thread query also, that would be appreciated.

Thanks for taking the time to help.
Regards,

For the threads use this query:

Code:

UPDATE thread
        SET postusername = 'posterusername'
        WHERE  postuserid = 0;

At vb.com from what I could understand at your post it was that you wanted to achive what my mod does. I am sorry for the misunderstanding. Anyway, the above queries will achive what you want. Hope it helps.

pant 07-03-2010 01:35 PM

Couple more questions sorry.

Say someone has deleted, does that mean all the log information for that person is also gone? I can see that someone has been deleted but going through the admin logs all I get is userid's, how do I compare the userID to name so I can figure out who deleted who?

Is their something else I could be looking for that's easier to look out for?

spillage 07-03-2010 04:39 PM

Quote:

Originally Posted by borbole (Post 2063800)
... I am sorry for the misunderstanding. Anyway, the above queries will achive what you want. Hope it helps.

Thank you again for your time... it is appreciated.

borbole 07-03-2010 04:52 PM

Quote:

Originally Posted by spillage (Post 2063920)
Thank you again for your time... it is appreciated.

No problem. You are welcome.

fxwoody 08-14-2010 04:00 PM

Loll Borbole! That was an easy one ;)

Tks mate and nominated :)

borbole 08-14-2010 04:19 PM

Quote:

Originally Posted by fxwoody (Post 2083794)
Loll Borbole! That was an easy one ;)

Tks mate and nominated :)

You are welcome. Glad to see that it came in handy to you :)

mattpist 08-18-2010 02:01 AM

thanks man, this worked perfectly. much easier than messing around with the database. i just wanted to add a note to everyone though, make sure your new user doesn't have the same user name as your old deleted user or this won't work.

great work, thank you!

borbole 08-18-2010 01:22 PM

Quote:

Originally Posted by mattpist (Post 2085571)
thanks man, this worked perfectly. much easier than messing around with the database. i just wanted to add a note to everyone though, make sure your new user doesn't have the same user name as your old deleted user or this won't work.

great work, thank you!

You are welcome.

Lovinmysailor 08-27-2010 07:25 PM

Im just trying to see if I understand this right. After every name we add posts to we have to run the updates?

borbole 08-27-2010 07:51 PM

Quote:

Originally Posted by Lovinmysailor (Post 2090452)
Im just trying to see if I understand this right. After every name we add posts to we have to run the updates?

Did you mean the Update Counters option? If so, then yes.

Bob_R 09-11-2010 07:28 PM

One quick question before I use this.

The instructions and a early post (post #33) say to use the same or different name of the deleted user.

A late post (post #50) in this thread says to use a different username.

Well, which one is it?

Thanks!

borbole 09-11-2010 07:36 PM

Quote:

Originally Posted by Bob_R (Post 2096855)
One quick question before I use this.

The instructions and a early post (post #33) say to use the same or different name of the deleted user.

A late post (post #50) in this thread says to use a different username.

Well, which one is it?

Thanks!

You can use whatever you want, either re-register the user with the same name or a different one.

Bob_R 09-11-2010 11:05 PM

OK, I did everything. But, the user shows zero posts. :confused:

borbole 09-12-2010 01:24 PM

Quote:

Originally Posted by Bob_R (Post 2096920)
OK, I did everything. But, the user shows zero posts. :confused:

After you ran it, did you update the counters as well as mentioned in bold at the bottom of the first post here?

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.

Bob_R 09-12-2010 01:38 PM

Quote:

Originally Posted by borbole (Post 2097100)
After you ran it, did you update the counters as well as mentioned in bold at the bottom of the first post here?

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.

Yes.

I put the xml file from the includes/xml file into the forum root already existing includes/xml directory.

Imported the other xml.

Filled in both screens to restore posts and threads. Answered Yes. Put in new userid. Put in deleted username (which is the sanme as the new username)

And, then did the steps you mentioned above.

borbole 09-12-2010 02:07 PM

Quote:

Originally Posted by Bob_R (Post 2097102)
Yes.

I put the xml file from the includes/xml file into the forum root already existing includes/xml directory.

Imported the other xml.

Filled in both screens to restore posts and threads. Answered Yes. Put in new userid. Put in deleted username (which is the sanme as the new username)

And, then did the steps you mentioned above.

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

http://www.forumservices.eu/showthre...tra-feature%29

I support all my mods there. As here I rarely check them after submitting them.

cirdok2 09-14-2010 06:01 AM

Quote:

Originally Posted by Mrquarter2 (Post 1997413)
This mod looks REALLY good, is there anyway I can use it for 3.8.. that is all I have?

did you manage to use it on 3.8?
Thanks :)

borbole 09-14-2010 01:57 PM

Quote:

Originally Posted by cirdok2 (Post 2097972)
did you manage to use it on 3.8?
Thanks :)

It works at a 3.8 as well.

guitartrash88 11-07-2010 08:33 PM

I tried using his mod to associate old posts from a guest to a new user and it didn't work, can you give me a step by step on how I can get this to work?

borbole 11-08-2010 02:33 PM

Quote:

Originally Posted by guitartrash88 (Post 2119209)
I tried using his mod to associate old posts from a guest to a new user and it didn't work, can you give me a step by step on how I can get this to work?

Please read the instructions at the first post about that :)

Bob_R 11-10-2010 12:38 AM

How about a user that was banned and his posts deleted but the account was not deleted?

Can this mod be used to get the posts and thread back?

And, if not, is there a way to get back the posts and threads?

nando.dominios 12-02-2010 10:38 AM

Please help me, i use your hack to restore a deleted user in other acount (it have 2 post), but now have a very very slow mysql process, it have a 100% cpu load, this is the exact querry (identify with username):

| 653 | ******* | localhost | ******* | Query | 0 | Updating | UPDATE vb_post
SET userid = '******'
WHERE username = '*****' <-- This is the user and i have this querry alwais

I have a backup copy but now is 2 days old.

nando.dominios 12-02-2010 01:32 PM

i sucesfully restored the backup and work well

Bob_R 12-13-2010 01:35 PM

Quote:

Originally Posted by Bob_R (Post 2120082)
How about a user that was banned and his posts deleted but the account was not deleted?

Can this mod be used to get the posts and thread back?

And, if not, is there a way to get back the posts and threads?

Is there an answer in our future? :)

This site/forum http://www.forumservices.eu/showthre...tra-feature%29 for questions about this hack doesn't even exist anymore.

borbole 12-13-2010 06:50 PM

Quote:

Originally Posted by Bob_R (Post 2133262)
Is there an answer in our future? :)

This site/forum http://www.forumservices.eu/showthre...tra-feature%29 for questions about this hack doesn't even exist anymore.

At the moment I am very busy and don't have much free time. Thank you for your patience and understanding :)

borbole 12-26-2010 10:56 AM

Quote:

Originally Posted by Bob_R (Post 2133262)
Is there an answer in our future? :)

This site/forum http://www.forumservices.eu/showthre...tra-feature%29 for questions about this hack doesn't even exist anymore.

Now the forum is open again.

TheLastSuperman 02-10-2011 07:32 PM

Just had someone ask me about this, I referred them here and not sure if they will Mark as Installed so I will ;).

TY Borbole, yet another useful contribution to the community imo! :cool:

borbole 02-11-2011 02:41 PM

Quote:

Originally Posted by TheLastSuperman (Post 2161116)
Just had someone ask me about this, I referred them here and not sure if they will Mark as Installed so I will ;).

TY Borbole, yet another useful contribution to the community imo! :cool:

Thanks TheLastSuperman :)

Stefan118 02-24-2011 01:42 PM

Downloaded, installed en installed clicked.!

It works nearly perfect...
But.
When I assign the posts from the deleted user to the new user, the posts cannot be found by searching all posts of user .....

Second: the post count of the new user is not increasing.
Maybe this is also the reason why the posts can't be found?

I manualy have increased the post counter of the new user, but still no posts found.
I also updated the post counts on the admincp.

Is there a solution?

JDT 02-24-2011 04:18 PM

tag

Bob_R 03-02-2011 09:28 PM

Quote:

Originally Posted by borbole (Post 2139185)
Now the forum is open again.

Down again. :(

lurch_cr 03-03-2011 11:12 PM

Quote:

Originally Posted by Stefan118 (Post 2166262)
Downloaded, installed en installed clicked.!

It works nearly perfect...
But.
When I assign the posts from the deleted user to the new user, the posts cannot be found by searching all posts of user .....

I have this issue too - any thoughts?

borbole 03-04-2011 09:38 AM

Quote:

Originally Posted by Bob_R (Post 2168870)
Down again. :(

It is not down but closed.

borbole 03-24-2011 09:02 PM

Quote:

Originally Posted by lurch_cr (Post 2169295)
I have this issue too - any thoughts?

Quote:

Originally Posted by Bob_R (Post 2168870)
Down again. :(

Quote:

Originally Posted by Stefan118 (Post 2166262)
Downloaded, installed en installed clicked.!

It works nearly perfect...
But.
When I assign the posts from the deleted user to the new user, the posts cannot be found by searching all posts of user .....

Second: the post count of the new user is not increasing.
Maybe this is also the reason why the posts can't be found?

I manualy have increased the post counter of the new user, but still no posts found.
I also updated the post counts on the admincp.

Is there a solution?


If you guys still need support with this then please post at its thread at my forum as I support my mods only there.

http://www.forumservices.eu/vbservic...tra-feature%29

fevredsuk 04-07-2011 10:53 PM

Quote:

When I assign the posts from the deleted user to the new user, the posts cannot be found by searching all posts of user
I get the same, you can do an advanced search for the members posts and it lists them all, and all posts seem to be assigned to that member, but members dont do advanced searches they click view all posts in the members profile. how do we sort this

archet1337 07-23-2011 01:05 PM

Just installed this on my 4.1.4 board without any problems at all. Awesome mod!

Did not experience any of the problems mentioned above. The restored user's posts show up on search with the name of the deleted one. Post count is working as it should as well.

Thanks for sharing. This will save me a ton of time :)

Successfulsteps 07-23-2011 10:26 PM

Awesome! Installed on 4.1.4 Needed this due a previous crazy admin!


All times are GMT. The time now is 12:52 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.01445 seconds
  • Memory Usage 1,838KB
  • 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
  • (2)bbcode_code_printable
  • (25)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