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

Hiding members list from visitors

Discussion in 'XenForo Questions and Support' started by Andy To, Apr 8, 2011.

  1. Andy To

    Andy To Member

    I would like to hide members list from visitors, and show them a login screen like other parts of the forum which does not permission.However, I am not sure what else to add in to the "else" part to get the login screen exactly the same. It is missing the "important" message, how may I get that message?

    Here is what I did:
    <xen:if is="!{$visitor.user_id}">
    <xen:else />
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Andy To

    Andy To Member

    Oh sorry, I type it wrongly here. To be more specific how do I get the error login page to have the "You must be logged-in to do that." message.
  4. Ray

    Ray Active Member

    There is an add-on for this, but I can't find the link. :mad:
  5. Andy To

    Andy To Member

    Thanks I have solve my problem by adding:

    <xen:if is="{$visitor.user_id}">
    "member list"
    <xen:else />
        <xen:set var="$text">{xen:phrase login_required}</xen:set>
      <xen:include template="error_with_login" /> <-------------------------------

Share This Page