• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • 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
#1
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.