PDA

View Full Version : Add "unban" link in ModCP on Banned Users


Christine
03-27-2004, 10:00 PM
When a user search is done in the ModCP, it shows Ban as an option beside the username.

What this hack does, is look at the usergroup when displaying the table, and if the user is in usergroupid 8 (the default banned group) it displays "unban" so that it is clear that the user is banned. This 'unban' link takes them to the unbannng function in banning.php and unbans the user.

VERY simple to install. :)

If you have multiple banned groups, you can change that "8" to an IN (8,x) format.

Enjoy!
Please note: I have the 'Mods change usergroup' hack installed, so the screenies are showing that link as well -- that is not default vB, but the rest is!

Screenies are of before and after:

Boofo
03-29-2004, 02:43 AM
Do you need to add this phrase, too?

$vbphrase['unban_user']

Christine
03-29-2004, 11:05 AM
Sorry - thought that was in there. Reuploading file.

Thanks!

:)