<xf:if is="{$__globals.forum.node_id} != 116">
<xf:if is="$template != 'search_form'">
<xf:if is="{$__globals.forum.node_id} != 116 AND $template != 'search_form'}">
does not seem to work. Thanks!search_form
search_form_all
search_form_macros
search_form_post
search_form_profile_post
search_result_page
search_result_post
search_result_profile_post
search_result_profile_post_comment
search_result_thread
search_results
tag_search
<xf:if is="$thread.node_id == x"> did the job. Thank you.<xf:if is="$thread.Node.node_id == x">
or maybe
<xf:if is="$thread.Forum.Node.node_id == x">
and some {} around $thread.bla
Edit: Actually node_id exists for $thread itself.
I guess it can be done with a new group and user group promotion systemI've seen it asked twice but not answered... is there a way to set up a custom user field, let's call it "Sunshine" and it's a check box, that can be used as a conditional check, so IF the user has "Sunshine" checked in their profile, they get one thing, and if they have it unchecked, they do not?
/admin.php?user-group-promotions/
You saved my day(stolen from here: https://xenforo.com/community/threads/adsense-after-last-post-conditional.139820/#post-1206719)Code:<xf:if is="$__globals.thread.reply_count == 0 OR $post.position == $__globals.thread.reply_count - 1"> content </xf:if>
Is it working for you in latest XF version ?<xf:if is="$thread.node_id == x"> did the job.
I am using the AD Position: Post: Above message content
There is no 'thread.node_id'. Use 'forum.node_id'. I already said that in your other post.<xf:if is="in_array({$thread.node_id}, [4,6,8])">
I do not quite understand, but here is an example of concealment in a certain forum and certain forums.
Code:<xf:if is="{$forum.node_id} != x"> Hide content. . . </xf:if>
Code:<xf:if is="in_array(!{$forum.node_id}, [x,y,z])"> Hide content... </xf:if>
<xf:if is="in_array({$forum.node_id}, [X,Y,Z])"> Show content.. </xf:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.