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

Hide members link for guests?

Bellinis

Active member
#1
How can I hide the members link in the navbar for guests and how can I totally prevent the "Registered Members"-list to be accessible for guests/bot's?

I've set all privacy settings to members only, but for guests and bot's I want no access at all to the memberslist.
What can I do? :)
 

M@rc

Well-known member
#3
How can I hide the members link in the navbar for guests
Admin Control Panel -> Appearance -> Styles & Templates -> Templates -> navigation

Find :

Code:
<!-- members -->
<xen:if is="{$tabs.members}">
<li class="navTab members {xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}">
 
<a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
<a href="{$tabs.members.href}"></a>
 
<div class="{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
<div class="primaryContent menuHeader">
<h3>{$tabs.members.title}</h3>
<div class="muted">{xen:phrase quick_links}</div>
</div>
<ul class="secondaryContent blockLinksList">
<xen:hook name="navigation_tabs_members">
<li><a href="{xen:link members}">{xen:phrase registered_members}</a></li>
<li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
<xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
</xen:hook>
</ul>
</div>
</li>
</xen:if>

Follow the below advice from the FAQ

How can I show content just to logged in members and hide it from guests?
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
</xen:if>