PDA

View Full Version : Conditional code not working


DougM
08-07-2004, 10:39 PM
I have tried several variations of the code below to display AdSense on only certain pages. I cannot get it to work. It either provides errors or displays on all pages. Any ideas what I'm doing wrong?
<if condition="THIS_SCRIPT == 'showthread'" or condition="THIS SCRIPT == 'forumdisplay'">
AdSense Code
</if>
Also, if anyone knows the condition to display on an index page (index for vbAdvanced Homepage and forums index page) I would appreciate it.

Thank you for any help.

Modin
08-07-2004, 10:56 PM
try this...

seems like you were missing a _ as well (as far as I know) you have to have the entire condition in one.

<if condition="THIS_SCRIPT == 'showthread' || THIS_SCRIPT == 'forumdisplay'">
AdSense Code
</if>


Cheers
Modin

DougM
08-07-2004, 11:18 PM
It works!

Thanks Modin