XF 2.2 Conditional statement in advertising

hqarrse

Active member
I'm trying to hide/show ads on certain parts of my site using conditional statements. Unfortunately the following doesn't seem to work so would be grateful for any thoughts?

Code:
<xf:if is="$template != 'forum_list'">

    <!-- advertising code -->
   
</xf:if>



Screenshot 2023-10-13 133016.png
 
Last edited:
I'm trying to hideshow ads on certain parts of my site using conditional statements. Unfortunately the following doesn't seem to work so would be grateful for any thoughts?

Use this code instead:

Code:
<xf:if is="{$__globals.template} != 'forum_list'">

    <!-- advertising code -->

</xf:if>
 
Top Bottom