1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Staff Online Now

Discussion in 'XenForo Questions and Support' started by LondonDragon, Dec 13, 2012.

  1. LondonDragon

    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
  2. taylor_smith

    taylor_smith Well-Known Member

    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.


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

    <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/
    phalseid and LondonDragon like this.
  3. LondonDragon

    LondonDragon Active Member

    Many thanks, really appreciate the quick response :)
  4. Chris D

    Chris D XenForo Developer Staff Member

    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:

    <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.
    DarkUnderlord, taylor_smith and Taxi like this.
  5. taylor_smith

    taylor_smith Well-Known Member

    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.
    Chris D likes this.

Share This Page