C Allingham
Member
Revisiting this post from 2015: https://xenforo.com/community/threads/place-ads-at-top-of-specific-forums.89384/post-875551
I want to do the opposite. I want to show an ad on all pages in ONE node only.
I updated the code like this but she don't work.
The node in question is https://tvwbb.com/forums/q-a-with-harry-soo.63/ and "Advertisement is active" is checked.
Don't be confused by the AdSense ad appearing on the page. That ad will be replaced by this one if I can get it to work. For now, the sample text "Display an ad here..." should be appearing below the AdSense ad.
Any help is appreciated!
If I understand you correctly, you want to have a select number of pages which are ad-free ... try this...
Code:
What this does is output <!-- Your Ad Code --> everywhere but in {$forum.node_id} X.Code:<xen:if is="{$forum.node_id} != x"> <!-- Your Ad Code --> </xen:if>
I want to do the opposite. I want to show an ad on all pages in ONE node only.
I updated the code like this but she don't work.
Code:
<xf:if is="{$forum.node_id} == 63">
Display an ad here...
</xf:if>
The node in question is https://tvwbb.com/forums/q-a-with-harry-soo.63/ and "Advertisement is active" is checked.
Don't be confused by the AdSense ad appearing on the page. That ad will be replaced by this one if I can get it to work. For now, the sample text "Display an ad here..." should be appearing below the AdSense ad.
Any help is appreciated!