Quote:
Originally posted by Boofo
How would I make this so the Admin and Super Moderator can use it and only the moderators you select?
|
In banuser.php @ line 10:
if ($bbuserinfo[userid]!=1 and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] and forumid=2")) {
change this to:
PHP Code:
if (
$bbuserinfo[usergroupid]!=6
and $bbuserinfo[usergroupid]!=5
and $bbuserinfo[userid]!=x
and $bbuserinfo[userid]!=y
and $bbuserinfo[userid]!=z
{
$bbuserinfo[usergroupid]!=6 for the admin-group
$bbuserinfo[usergroupid]!=5 for the supermoderators
$bbuserinfo[userid]!=x-z for the userid?s for the moderators you select
If the moderators are all in 1 usergroup (and only them, no one else) you can use the way with the usergroupid.