$bannedusergroupid = x; function isbanned() { global $bbuserinfo,$bannedusergroupid; return $bbuserinfo['usergroupid'] == $bannedusergroupid; }