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

Specific Mod user not appear in STAFF ONLINE

Discussion in 'XenForo Questions and Support' started by tafreehm, Jun 6, 2012.

  1. tafreehm

    tafreehm Well-Known Member

    I have one moderator for one section only, with regular user rank.
    basically that mod secondary usergroup of mod.And she appears in staff online section.
    Which I do not want.

    How can she still keep all moderation tools for one specific section and not appear in staff online ?
     
  2. MagnusB

    MagnusB Well-Known Member

    I might be wrong, but I think the staff is handled by adding them as moderators. Have you to create a group with every permission set as No (grey), then set up the forum permission for that group? Then set that group as a secondary group for that user.

    From http://xenforo.com/help/moderators/
     
  3. shawn

    shawn Well-Known Member

    The sidebar uses is_moderator to generate the staff list. That's not the moderator usergroup, but whether or not that person has moderator privileges anywhere on the site. I changed a line in the sidebar_online_users template from this:

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

    PHP:
    <xen:if is="{xen:helper ismemberof, $user, 4} OR {$user.is_admin}">
    That way it only shows users that are admins or are in the moderator usergroup. That sounds more like what you're looking for. Then just make sure that all of your global/site moderators are members of the proper group.
     
  4. tafreehm

    tafreehm Well-Known Member

    No, I just setup moderator usergroup as a secondary usergroup for her. I thought it would not make her appear as staff .... but will try your suggestion to
     
  5. tafreehm

    tafreehm Well-Known Member

    If I do not include MOderator usergroup there then my moderators wont appear there. Because this person has a moderator usergroup as a secondary usergroup.
    So basically she is a moderator of one forum, but I do not want her to appear in Staff online list.
    I will still give it a shot !!
     
  6. HWS

    HWS Well-Known Member

    If Brogan would still be here, he would have known and posted the answer instantly.

    Since this dows not happen to be any more, it's wise to look at his FAQ. :)
     
  7. tafreehm

    tafreehm Well-Known Member

    I found this

    But now the problem is (I think), that way that person would have moderation inline option to all forums.. Which I do not want. I only want them to have moderation option in one forum only.
     
  8. shawn

    shawn Well-Known Member

    You could remove her from the moderator usergroup (if it's not granting some other permission you want), or toggle it off a different usergroup. Create one called StaffList and then add only the users that you want to show in the list to that group... then change the #4 in the code above to whatever group number your StaffList group is. (Or toggle off a super/global moderator usergroup, etc).
     
  9. tafreehm

    tafreehm Well-Known Member

  10. Pathurs

    Pathurs Member

    Sorry to bump oldish thread but.

    You could do an if statement to test if the user is in the user group, and if they are do nothing, else continue to check if they are in admin or moderator

    Pseudocode:

    If (user NOT EQUAL moderator_not_staff) {
    if (admin OR moderator) {
    do stuff
    } }

    simple :)
     

Share This Page