Hide members link for guests?


Active member
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? :)


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

Find :

<!-- 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">
<div class="muted">{xen:phrase quick_links}</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>

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