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

XF 1.4 Custom Node {vars}

Discussion in 'XenForo Questions and Support' started by 1im, Mar 12, 2015.

  1. 1im

    1im Member

    Is there a list of custom vars that can show specific information in the node Template HTML area? Such as if a user is logged in or username?


    or am I going to have to create a callback?
     
  2. 1im

    1im Member

    Found most of what I needed in @Brogan sig: https://xenforo.com/community/resources/conditional-statements.1604/

    {$visitor.username} gets username. Wasnt on that page listed above
    Code:
    <xen:if is="{$visitor.user_id}">
    <iframe src='http://www.wsirc.com/?username={$visitor.username}&server=irc.idlechat.net%3A6667&channel=php-games' style='width:800px;height:550px'></iframe>
    <xen:else />
    <iframe src='http://www.wsirc.com/?username=GMF_*****&server=irc.idlechat.net%3A6667&channel=php-games' style='width:800px;height:550px'></iframe>
    </xen:if>
    
     

Share This Page