my functions.php code
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
{
DEVDEBUG(' USER IS A SUPER MODERATOR');
$return = true;
($hook = vBulletinHook::fetch_hook('can_moderate_supermod') ) ? eval($hook) : false;
return $return;
}
}
you code:
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'] OR
$vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])
{
DEVDEBUG(' USER IS A SUPER MODERATOR');
return true;
:speechless: :speechless: :speechless: :speechless:
Powered by: vBulletin Version 3.5.0 Release Candidate 3
|