Hiding members list from visitors

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:
Code:
<xen:if is="!{$visitor.user_id}">
    "member_list"
<xen:else />
    <xen:include="error_with_login">
</xen:if>
 

Andy To

Member
The syntax to include a template is: <xen:include template="name-of-template" />
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.
 

Andy To

Member
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>
 
Top