• 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

#1
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:
Code:
<xen:if is="!{$visitor.user_id}">
    "member_list"
<xen:else />
    <xen:include="error_with_login">
</xen:if>
 
#5
There is an add-on for this, but I can't find the link. :mad:
Thanks I have solve my problem by adding:

Code:
<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" /> <-------------------------------

</xen:if>