• 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

#1
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?
 

Brogan

XenForo moderator
Staff member
#2
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}">.