Sinisterly
Unban Yourself - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Design (https://sinister.li/Forum-Design)
+--- Forum: Web Design (https://sinister.li/Forum-Web-Design)
+--- Thread: Unban Yourself (/Thread-Unban-Yourself)

Pages: 1 2


Unban Yourself - Cyan - 12-23-2013

Suppose you are only admin and you've banned yourself, then?
Freaky, but accident happens ...

Go to your hosts control panel and launch phpMyAdmin.

Run the following commands:
Code:
DELETE FROM mybb_banned WHERE uid=1

next ...
Code:
UPDATE mybb_users SET usergroup=4 WHERE uid=1

You are unbanned and assigned to admin again!!!

Note:
Assuming your UID is 1 (default for first member : admin).
Assuming your database table prefix is mybb_ (default), if not, change what is.
Assuming your usergroup is 4 (default for Administrators), if not, change what is.


Credits to original creator


RE: Unban Yourself - BeastlyHobos - 12-23-2013

this is a cool fix but extremely unlikely to happen unless your drunk or something bahaha


RE: Unban Yourself - Art - 12-23-2013

Hahaha, nice tutorial mate!


RE: Unban Yourself - Fallen - 12-23-2013

Nice tutorial. Hopefully our admin doesn't ban himself lol.


RE: Unban Yourself - Aces - 12-23-2013

It's stupid that it would even be possible to ban the Admin. lol


RE: Unban Yourself - Fallen - 12-23-2013

(12-23-2013, 07:08 PM)Aces Wrote: It's stupid that it would even be possible to ban the Admin. lol

This is for if the Admin accidentally bans himself.


RE: Unban Yourself - Aces - 12-23-2013

(12-23-2013, 07:09 PM)Fallen Wrote: This is for if the Admin accidentally bans himself.

I know and it's stupid that MyBB would allow banning of the UID 1 since it's the site Admin. I can't see a senario when you want to ban yourself on your own forum.


RE: Unban Yourself - Fallen - 12-23-2013

(12-23-2013, 07:12 PM)Aces Wrote: I know and it's stupid that MyBB would allow banning of the UID 1 since it's the site Admin. I can't see a senario when you want to ban yourself on your own forum.

That's a good point. I suppose for testing purposes.


RE: Unban Yourself - Expels - 12-24-2013

That's pretty cool, not sure who would do that though...


RE: Unban Yourself - Mod Mark - 01-20-2014

I doubt I will ever ban myself if I ever owned a forum, but thanks a lot for this. : )