XF 1.4 Hide Ads in X Forum?

Michael

Active member
I am wanting to hide ads in a specific forum and from all threads within that forum, the templates I use are a couple of the ad templates and my own custom template which is grabbed within the thread_view template.

Anyone know how to do this I have tried with this:
<xen:if is="!{$forum.node_id} == 44">

But that only works in some templates.

Thank you.
 
I have tried adding this to the top of the thread_view template in the <head>:

<xen:container var="$forumId">{$forum.node_id}</xen:container>

and then using the

<xen:if is="!{$forum.node_id} == 44">

But it doesnt appear to have any effect and hides the content within all nodes instead of the one.
 
Thank you so much Brogan, do you know how to make that work for multiple forums to hide ads in those too? It works perfectly now, I also moved the container code to the top of the page_container template.
 
Top Bottom