XF 2.0 $forum Variables in Adverts

hqarrse

Active member
I'm trying to use variables from $forum in the advertising slots but they don't seem to be available in the Post slots.

For example, I'd like to do the following in Post:Below message content

Code:
<xf:if is="{$forum.node_id}==1">
    One ad
<xf:elseif is="{$forum.node_id}==2"/>
    A different ad
<xf:else />
    Ad #3
</xf:if>

Any thoughts on if this is possible and how I might do it?

TIA
 

hqarrse

Active member
That works a treat. Many thanks indeed for the speedy response

For others this is what works:
Code:
<xf:if is="{$__globals.forum.node_id}==1">
   One ad
<xf:elseif is="{$__globals.forum.node_id}==2"/>
   A different ad
<xf:else />
  Ad #3
</xf:if>
 
Top