how would i make this avaliable to MOD's too?
i tried changing the code in members.php from:
PHP Code:
// ############################### remove user avatar ###############################
if ($action=="removeava") {
include("./global.php");
if ($bbuserinfo[usergroupid]!=6) show_nopermission();
$DB_site->query("UPDATE userfield SET field7='' WHERE userid=$userid");
eval("standardredirect(\"Avatar removed!\",\"index.php?s=$session[sessionhash]\");");
}
to
PHP Code:
// ############################### remove user avatar ###############################
if ($action=="removeava") {
include("./global.php");
if ($bbuserinfo[usergroupid]!=5 OR $bbuserinfo[usergroupid]!=6 OR $bbuserinfo[usergroupid]!=7) show_nopermission();
$DB_site->query("UPDATE userfield SET field7='' WHERE userid=$userid");
eval("standardredirect(\"Avatar removed!\",\"index.php?s=$session[sessionhash]\");");
}
But that didnt work. it now sais that i dont have permissions to access the page. But it says that for both admins AND mods.. i dont understand why, did i mess something up?