SimplePortal

Customization => Custom Coding => Topic started by: Senkusha on March 30, 2010, 05:16:33 PM

Title: Forum Staff
Post 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!
Title: Re: Forum Staff
Post by: [SiNaN] on March 31, 2010, 03:25:33 AM
Based on permissions. It's this piece of code:

Code: [Select]
$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.
SimplePortal 2.3.8 © 2008-2024, SimplePortal