XF 2.0 This content will show in thread x

jamalfree

Active member
what instead this in xf2

Code:
<xen:if is="{$thread.thread_id} == x">
This content will show in thread x
</xen:if>
 

jamalfree

Active member
<xf:if is="{$__globals.template} != 'login' AND {$__globals.template} != 'error' AND $thread.thread_id != 27053">
...
</xf:if>
does not work for threads any suggestions
 

Jeremy P

Well-known member
Then $thread isn't available in the template, at least as-is. What template are you using this in?
 

jamalfree

Active member
i use advertising can you merge this he work fine
<xf:if is="$thread.thread_id == 27053">
<xf:if is="{$__globals.template} != 'login' AND {$__globals.template} != 'error'">

....
</xf:if>
</xf:if>
 

Jeremy P

Well-known member
I'm not super familiar with the advertising templates, but I wouldn't expect $thread is available inside of them. Someone else may know better though.
 
Top