[Template] Custom "Staff" Groups for Forum Home

Status
Not open for further replies.

SNN_imported

OMG Member
Joined
Oct 7, 2010
Messages
19
Instead of having just "Administrative" and "Moderating" as the two groups on the forum home, how about adding another usergroup?

It's rather easy. It requires one template edit, and finding the user_group_id of another group. :)

First:​
Find the usergroup id.​
Go to your Admin CP > Users Tab > List User groups.​
Select the group you want, as if you were going to edit the usergroup.​
Now, in the url, you'll see something like this:​
yourdomain.org/admin.php?user-groups/administrative.3/edit​
You need to be looking at: /administrative.3/​
3 is your usergroup id for that group.​
Once you've figured that out, you can move onto step two.​

Second (and finally):​
Go to your Templates Editor (under the Appearance tab) and find "sidebar_online_users"​
Find:​
HTML:
<xen:if is="{$user.is_moderator} OR {$user.is_admin}">
After the last } add:​
PHP:
OR {$user.user_group_id} == YOUR_USERGROUP_ID_HERE
so, I would put 5 in my template, because the usergroup id of my "trusted members/moderators" is 5. Yours will most likely differ.​

Once you are done, you should have the output as such:
Screenshot.png

Enjoy :)
 

Hagai

OMG Member
Joined
Oct 9, 2010
Messages
207
Really usefull, For forums with a large amount of Management groups.
Thank you SNN.
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,100
That's very cool. It's nice to have a group of writers on this site and reward them not just by hiring them to write on our behalf, but also to show them on the frontpage as a xenfans writer :)
 
Status
Not open for further replies.
Top