Staff Online Now

LondonDragon

Active member
Hi guys,

I am in the process of moving to Xenforo and love the Staff online feature, just wonder if there is a possibility to hide Forum moderators from the Staff list but not Super Moderators?

We have sponsors that moderate their areas but they are not really staff therefore wanted to hide them from showing up in the Staff list.

Many thanks
 
You can make it based on usergroup instead of permissions.

Edit template sidebar_online_users. Let's say, for the sake of this example, that your super mods are usergroup 5.

Find:

Code:
<xen:if is="{$user.is_moderator} OR {$user.is_admin}">

Replace with:

Code:
<xen:if is="{$user.is_admin} OR {$user.user_group_id} == 5">

Folks with mod powers will no longer show up, but folks in usergroup 5 (super mods, in this example) will.

Full details: http://xenforo.com/community/threads/staff-online-show-more-than-admins-and-mods.6042/
 
You can make it based on usergroup instead of permissions.

Edit template sidebar_online_users. Let's say, for the sake of this example, that your super mods are usergroup 5.

Find:

Code:
<xen:if is="{$user.is_moderator} OR {$user.is_admin}">

Replace with:

Code:
<xen:if is="{$user.is_admin} OR {$user.user_group_id} == 5">

Folks with mod powers will no longer show up, but folks in usergroup 5 (super mods, in this example) will.

Full details: http://xenforo.com/community/threads/staff-online-show-more-than-admins-and-mods.6042/
Many thanks, really appreciate the quick response :)
Only, usergroup ID 5 doesn't exist unless you create it.

Moderators and Super Moderators are both in usergroup ID 4. Also, that conditional will only check the primary usergroup, whereas it's usually best practice for everyone to be in the Registered primary usergroup, so usually the moderation usergroup would be a secondary group.

So the only way to achieve this, is by creating that fifth usergroup, and assigning your super moderators to it.

The correct replacement would be:

Code:
<xen:if is="{$user.is_admin} OR {xen:helper ismemberof, $visitor, 5}">

The ismemberof helper is important as it checks both primary and secondary usergroups.
 
Right. That's what I meant. Sowwy. :)

We create both a usergroup for mods/s.mods and assign them permissions. Allows us to have non-staff mods, who cannot see staff forums but who can mod their own private forums.
 
Top Bottom