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

Possible to hide userlist for certain groups

Discussion in 'XenForo Pre-Sales Questions' started by Father Sebastiaan, Feb 28, 2013.

  1. Hello,

    Is it possible to hide the userlist from certain groups?

    Seb
     
  2. Slavik

    Slavik XenForo Moderator Staff Member

    Yes, using template conditionals.
     
  3. You cannot do that in permission?
     
  4. Slavik

    Slavik XenForo Moderator Staff Member

    It's not a default permission set, however adding the relevent code is very easy.
     
  5. Hmmmm so I cannot set which usergroups are going to be able to see the members list? I have a very private community and only want certain groups to see the member list.
     
  6. Slavik

    Slavik XenForo Moderator Staff Member

    If you mean by going into the admin panel and chosing the usergroups with a button click no,

    However, what you would do is go into the template and add

    Code:
    <xen:if is="{xen:helper ismemberof, $user, 1}"></xen>
    Around the relevent section of code and it will only show it to usegroups you specify. Usergroup 1 being admins only.
     
  7. Thank you.... this gives me hope... will the userlist actually be hidden or just not show up in the links?
     
  8. Slavik

    Slavik XenForo Moderator Staff Member

    It will be hidden (not rendered by the server) to people who dont have permission, so even knowing the link wont help.
     
  9. Luis

    Luis Well-Known Member

Share This Page