View Full Version : User Deleted by Mistake!
Webmasta XT
06-13-2002, 12:40 AM
Hey I accendentaly Deleted a user, he lost his posts, not really those posts became Guets posts, is there a way I can bring back the user? without losing anything else? :cry: :(
Xenon
06-13-2002, 11:25 AM
reCreate the user
then run this sql query:
UPDATE post SET userid=x WHERE username='xyz' AND userid=0
replace the x and xyz with the userid of the recreated user and the xyz with the exact old username he had.
Chris M
06-13-2002, 05:44 PM
Cool...
I never knew that!:)
Satan
Webmasta XT
06-13-2002, 11:35 PM
Hey it doesn't work, it brought the member back but he has 0 posts and 35 Threads, HOW IS THAT possible??
Webmasta XT
06-13-2002, 11:36 PM
The old username was mysticalsaiyan and the ID was 77 and the new username is MysticalSaiyanX with the ID 327, how can I give him all of his old posts and threads and everything back??
UPDATE post SET userid=77 WHERE username='mysticalsaiyan' AND userid=327
Xenon
06-14-2002, 11:17 AM
no anime, the userid 77 isnt there anymore, so it wouldn be very usefulle to change the posts to that id :)
the corect sql:
UPDATE post SET userid=327 WHERE username='mysticalsaiyan' AND userid=0
then don't forget to update postcounter from your admincp :)
my bad, i forgot about that.
Webmasta XT
06-14-2002, 06:39 PM
how do I update postcounter from admincp? sry i am too dumb
Webmasta XT
06-14-2002, 06:40 PM
nevermind I found it, thnx anywayz!
Xenon
06-16-2002, 05:24 PM
:)
np, i hope all works now :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.