Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: KimPlus on February 13, 2006, 06:30:02 PM

Title: Accidently removed admin and moderators.
Post by: KimPlus on February 13, 2006, 06:30:02 PM
Using SMF 1.1 Beta 3 Public

Rather embarrassed to admit but yesterday whilst deleting a no longer used membergroup I deleted Admin and a moderator.

I rejoined us both and used "PH MyAdmin" to restore my admin status.
Ive also used it restore from a backup my board position for PM's user ="2"

Problem I have is all my old posts several hundred now show as being posted by "My Username" guest.

Can these be re-linked to our names ? And our post counts reflect this.

It does look a bit fishy when we post with a count of 2 or 3 and hundreds of posts to our username but guest. Already had several guys PM me claiming guests are posting as me LOL.
Title: Re: Accidently removed admin and moderators.
Post by: copter on February 13, 2006, 06:39:39 PM
Oh no, that's one of the worst things that can happen :(

But, if you have a back up of your mysql database, you should be able to restore it and it should be back to normal, if not - hopefully someone will be able to help you and then I would advise you to make backups on a daily basis to prevent bad things as such - or maybe a backup before going into admin - that's what I'm having to do all the time :o

Maybe in your my sql you might be able to edit the posts with guest or link them to your user id? somehow
- does anyone know how to do a query to make this process faster?

Take Care :)
Title: Re: Accidently removed admin and moderators.
Post by: KimPlus on February 13, 2006, 06:57:44 PM
Didn't lose any data just 2 accounts, Admin and a moderator.

Had backup, but would rather not roll forums backwards unless there is absolute need.
Title: Re: Accidently removed admin and moderators.
Post by: xenovanis on February 14, 2006, 08:51:26 AM
http://www.simplemachines.org/sitetest/support/faq?action=display&faq=26
Title: Re: Accidently removed admin and moderators.
Post by: KimPlus on February 14, 2006, 06:52:35 PM
Many thanks but as I explained I'd already done that and rejoined as admin.

But that did not associate my old posts with this new account.

I even ran an sql query to put me back as the same user number on data base and the same join date I got from a backup.

I was username (KimPlus) position (admin) User Id (u=3)
I'm still username (KimPlus) position (admin) User Id (u=3)  same everything including password and join date but no longer associated with my previous posts as KimPlus.
Title: Re: Accidently removed admin and moderators.
Post by: xenovanis on February 16, 2006, 03:56:12 PM
Try this query in phpMyAdmin

UPDATE smf_messages SET ID_MEMBER='YOUR_ID' WHERE postername='YOU';
Title: Re: Accidently removed admin and moderators.
Post by: DangerGirl on February 18, 2006, 04:08:05 AM
I had a similar problem and after I put back the user ID, I went to Admin - Forum Maintenance and did a Recount all forum totals and statistics.  It put all my posts back to my name.  The only thing that I could not get back was my total online time, which was a treasure.  Ah well.

That's what I did, though can't guarantee that it will work for you.  But good luck!
Title: Re: Accidently removed admin and moderators.
Post by: KimPlus on February 19, 2006, 09:22:40 AM
Many thanks for the assistance but alas even after running the sql query and using forum maintainance old posts still show the early KimPlus as a guest and not associated to newly formed account.

As this is no major problem and not affecting anything other than my ego, guess I'll learn to live with it.
Title: Re: Accidently removed admin and moderators.
Post by: copter on February 20, 2006, 06:19:31 PM
What about going into your sql and create a username with ID 1 - this should correspond with the user ID of the posts and messages etc. create that username as your desired name which should sort it out - i think, i actually deleted my admin acount the very 1st time i installed smf cos i didnt know much about smf then last august/september - or start again? and inform the users?
Title: Re: Accidently removed admin and moderators.
Post by: DangerGirl on February 20, 2006, 06:35:07 PM
We ended up recreating user ID 1 from scratch and it worked for us after we did Recount.  But we only recreated it because we didn't have the time to work with the backup we had.
Title: Re: Accidently removed admin and moderators.
Post by: KimPlus on February 21, 2006, 08:35:14 PM
Accounts 1,2 and 3 were admin accounts KimPlus the one I deleted was user 3.
Ive ran SQL query to reinstate KimPlus as user 3 and even ran a query to show he joined as origenal date but alas, old posts are still credited to KimPlus Guest.