Not Solved can I undelete a user?
#1
Not Solved
Some how a user was deleted that should not have been deleted.
Reply
#2
Not Solved
(2019-02-02, 04:10 AM)slotking Wrote: Some how a user was deleted that should not have been deleted.

Can you give us more details? 

That information is not enough to help you with.

Did you check your Admin logs in the AdminCP?
I'm Serpius and You're Not    ¯\_(ツ)_/¯
DEAF GOLF
Reply
#3
Not Solved
Because you said "undelete", I'm going to assume the user was deleted via ACP. If this is the case then you should still have the user's posts and threads, but there's no way to "undelete" the user unless you have a database backup.

I'd suggest re-creating the user's account and then porting over their threads and posts in the database. This can be done using the following queries:

UPDATE mybb_threads SET username = 'NewUsernameHere', uid = NewUIDHere WHERE uid = OLDUIDHere;

UPDATE mybb_posts SET username = 'NewUsernameHere', uid = NewUIDHere WHERE uid = OLDUIDHere;

And then use the Recount & Rebuild Tool in the ACP to update the user's post and thread count.
Plugin Count: I lost count.
Public Plugins are available here.
Please do not PM me for support unless asked to.
Reply
#4
Not Solved
thanks
the only question is if a user can be undeleted.

somehow I had a new registration request, I selected delete the user.  hen when I went to go button it said I had 2 users to delete, I deleted both but some how my id was deleted as well
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)