XF 2.0 how to hide ads from specific pages (custom pages)

46. How can I hide content on a specific forum?

Code:
<xf:if is="{$forum.node_id} != 182">

               Hide content..

</xf:if>

but did nnot work !!!!!!!!!!!!!!!!!!!!
 
This works for me in a forum related ad position:
Code:
<xf:if is="$forum.node_id != 3">

The exact statement will vary depending on the ad position.
Use dump vars and search for 'node_id'.
 
This works for me in a forum related ad position:

Code:
<xf:if is="$forum.node_id != 3">


The exact statement will vary depending on the ad position.

Use dump vars and search for 'node_id'.




i am looking for (custom pages not for forums, ya this code bellow work fine for forums

Code:
<xf:if is="$forum.node_id != 3">


i can not make this code because hide ad in all page

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

i spoke about specific pages (custom pages) i hope understand me

like this https://xenforo.com/community/pages/example-page/
 
Top Bottom