Robert9
05-18-2003, 08:20 PM
I figured this would be useful for forums that don't want other admins to constantly move or change people's usergroups in the admin CP.
What it does:
It makes it so only a certain usergroup or user can view the usergroup drop down box when editing a user in the admin CP.
Step 1:
Open up admin/user.php and find:
makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);
Replace that with:
if ($bbuserinfo[usergroupid]==X) {makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);}
Replace X with whatever usergroup you wish and your DONE!
If you want to restrict it to a user, just replace:
if ($bbuserinfo[usergroupid]==X) {makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);}
With
if ($bbuserinfo[userid]==X) {makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);}
I'm currently working on how to remove selected usergroups from the dropdown. If anybody has an idea of how, please post it.
What it does:
It makes it so only a certain usergroup or user can view the usergroup drop down box when editing a user in the admin CP.
Step 1:
Open up admin/user.php and find:
makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);
Replace that with:
if ($bbuserinfo[usergroupid]==X) {makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);}
Replace X with whatever usergroup you wish and your DONE!
If you want to restrict it to a user, just replace:
if ($bbuserinfo[usergroupid]==X) {makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);}
With
if ($bbuserinfo[userid]==X) {makechoosercode("User Group","usergroupid","usergroup",$user[usergroupid]);}
I'm currently working on how to remove selected usergroups from the dropdown. If anybody has an idea of how, please post it.