• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[1.0.0 b1] Member / Guest Template Condition

Jake Bunce

XenForo moderator
Staff member
Here is some template code you can use to conditionally display something for members / guests:

Code:
<xen:if is="{$visitor.user_id}">
	FOR LOGGED IN USERS
<xen:else />
	FOR GUESTS
</xen:if>
I tested this in several templates and it appears to work everywhere.
 

seneca

Member
I'm not managing to figure out how to hide the registered members list from guests and only show it to those logged in.
 
Top