Quote:
Originally Posted by tuncket
Open profile.php
Find
PHP Code:
construct_usercp_nav('username');
if it is for a single Usergroup:
Under Add
PHP Code:
if ($bbuserinfo['usergroupid']==X) {print_no_permission(); exit;}
X = Usergroup ID
if it is for several groups:
Under Add
PHP Code:
if ($bbuserinfo['usergroupid']==X or $bbuserinfo['usergroupid']==Y) {print_no_permission(); exit;}
or
PHP Code:
if ($bbuserinfo['usergroupid']==X or $bbuserinfo['usergroupid']==Y or $bbuserinfo['usergroupid']==Z) {print_no_permission(); exit;}
X, Y, Z --> Usergroups ID that will not be able to use the function
|
It might be easier for peeps if you have a bit of code to allow groups .. instead of the other way about .. else there'll be an awful lot of "or"s .. heh