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

XF 1.5 Hide Expression from guests

Discussion in 'XenForo Questions and Support' started by Zachary Ball, Jan 22, 2016.

  1. Zachary Ball

    Zachary Ball Member

    Code:
    in_array($forum['node_id'], array(7))
    I have this as a hook:ad_above_content and would like to hide it from guests. Anything I can add to my expression?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Is that related to an add-on?

    The default conditional statement to hide something from guests/only show to logged in members is <xen:if is="{$visitor.user_id}">.
     
  3. Zachary Ball

    Zachary Ball Member

    I am within the widget framework with the expression, but where would you find a place to put a conditional statement?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You will have to ask in the add-on thread for support with it.
     
  5. Zachary Ball

    Zachary Ball Member

    Thanks Brogan!
     

Share This Page