SimplePortal
Customization => Custom Coding => Topic started by: Senkusha on March 30, 2010, 05:16:33 PM
-
What determines who is a Staff member of my forum? I have created some non-post, non-requestable based groups that I want to include as Staff members. How can I get these groups to show up as Staff?
Thanks!
-
Based on permissions. It's this piece of code:
$global_mods = membersAllowedTo('moderate_board', 0);
$admins = membersAllowedTo('admin_forum');
If user has moderate_board permission, SP will consider the user as Global Moderator. If user has admin_forum permission, the user will be treated as an admin.
You could add member ids to $global_mods and $admins array there. You'll need to add a query to fetch members of a group though, if you want to make it group based.