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

Removing Forum Moderators from Staff Online

Discussion in 'XenForo Questions and Support' started by Oscar, Jun 12, 2011.

  1. Oscar

    Oscar New Member

    Hi there,
    Does anyone know a way to remove Forum Moderators from the 'Staff Online' box? I still need it to display Global Moderators and Administrators though. I've done a few searches and can't find anything at all.

    I have users who have moderating rights in their own project forums, but they are not part of the main staff team - so I don't want to show them as Staff Online.
     
  2. James

    James Well-Known Member

    I'm not sure if that'd be easily possible. Have you got section moderators and global moderators separated, or are they all set to moderator and part of the moderating usergroup?
     
  3. Oscar

    Oscar New Member

    Untitled.png

    I have it set up like this, if it is any help :p
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. James

    James Well-Known Member

    Are they all part of the Moderating usergroup, or just the Super Moderators?
     
  6. Oscar

    Oscar New Member

    Just the super moderators. Sorry Brogan, that doesn't really help!
     
  7. James

    James Well-Known Member

    Open sidebar_online_users
    find:
    Code:
    <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
    
    replace:
    Code:
    <xen:if is="{xen:helper ismemberof, $user, 4} OR {$user.is_admin}">
    
    This will only display the online users who are part of the Moderating usergroup (i.e. your Super Moderators)
     
  8. Oscar

    Oscar New Member

    Thanks very much! problem fixed.
     

Share This Page