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

Is guest conditional?

Discussion in 'XenForo Questions and Support' started by Lucas, Oct 27, 2010.

  1. Lucas

    Lucas Well-Known Member

    Trying to find the if is guest conditional to display a register message to guests only for example:

    Code:
    <xen:if is="{$isGuest}">
    <p class="importantMessage">
    Testing guest message.<br />
    Is it working?
    </p>
    </xen:if>
     
  2. Itworx4me

    Itworx4me Well-Known Member

  3. Kier

    Kier XenForo Developer Staff Member

    HTML:
    <xen:if is="!{$visitor.user_id}">You are a guest</xen:if>
    Would do it.
     
    racersimage likes this.
  4. Lucas

    Lucas Well-Known Member

    Yes, thank you. I actually found it after making this thread for some reason.

    Thanks again.
     

Share This Page