XF 1.1 How to restrict guests from accessing the Current Visitors page?

Chris D

XenForo developer
Staff member
Hi Luxus,

You could edit the template with a conditional that hides its output from guests.
 

Luxus

Well-known member
Ok, I have opened the "online_list" template now. Can you please tell me what I should add in there since I am not familiar with xenforo coding yet?

Edit: Ninja'd by borbole. Thanks, that's what I was looking for :)
 

Chris D

XenForo developer
Staff member
That would involve finding template "online_list"

And at the top add:

Code:
<xen:if is="{$visitor.user_id}">
And at the very bottom add

Code:
</xen:if>
 
Top