Z Zachary Ball Active member Jan 22, 2016 #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?
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?
P Paul B XenForo moderator Staff member Jan 22, 2016 #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}">. Upvote 0 Downvote
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}">.
Z Zachary Ball Active member Jan 22, 2016 #3 I am within the widget framework with the expression, but where would you find a place to put a conditional statement? Upvote 0 Downvote
I am within the widget framework with the expression, but where would you find a place to put a conditional statement?
P Paul B XenForo moderator Staff member Jan 22, 2016 #4 You will have to ask in the add-on thread for support with it. Upvote 0 Downvote