PDA

View Full Version : IF statement in ad_navbar_below ad location template


AshMagic
03-05-2009, 12:27 PM
Hello,

I was wondering if it was possible to add an IF statement into the ad_navbar_below ad location template so that it shows different ads on different pages.

For example, I want my Google adsense text ad code on all pages except the arcade.php page. On this page I wish to display a different ad type. So could there be an IF statement in the template saying:

IF page = arcade.php
//image ad code here
Else
//text ad code here

I hope you understand what I mean. Any help would be great! Thank you. :D

Lynne
03-05-2009, 02:13 PM
You can try:
<if condition="THIS_SCRIPT == 'whatever'">
stuff on whatever page
<else />
stuff on all other pages
</if>

Look at the top of the arcade.php page to see what THIS_SCRIPT is defined to be on that page and change 'whatever' to that word.

AshMagic
03-05-2009, 06:13 PM
You can try:
<if condition="THIS_SCRIPT == 'whatever'">
stuff on whatever page
<else />
stuff on all other pages
</if>

Look at the top of the arcade.php page to see what THIS_SCRIPT is defined to be on that page and change 'whatever' to that word.

BRILLIANT! Exactly what I wanted. Thanks :D