MyBB Community Forums

Full Version: adding admin through script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi there

i'v been playing around whit my first forum and i have put myself in a regular user group, now i can't login as admin.Sad
Is there a way that i could put a admin through script.
I'v found that it is posible by modifiying users.php in admin directory.
what should i change and is it easier to install the forum again, cause it not a problem, it's a clean install.
Run the following SQL query in phpMyAdmin (or whatever you use):
UPDATE mybb_users SET usergroup=4 WHERE uid=1
(assuming your table prefix is "mybb_" and your user ID is 1)
Next time please use the search function, this has been asked several times.

We really should have a kind of warning on installing MyBB: "do NOT change your usergroup, you will loose your admin permissions.
destroyer Wrote:We really should have a kind of warning on installing MyBB: "do NOT change your usergroup, you will loose your admin permissions.
Yeah, probably should disallow changing the usergroup for the Super Admin, I think.
im sorry for asking the same question over again.
and i also think that there should be a warning.
thank you very much for your help, problem solved.
Ideas for MyBB are always welcome at http://ideas.mybboard.net

Thanks!