PDA

View Full Version : Conditional question


erobs
Tue 29th Apr '08, 8:26pm
I used a conditional in the past that made adsense only show on showthread showforum, and index. Basically on show on content pages. and not on registration and other non-content pages.

I cannot seem to get something to work in 3.7. Any suggestions?

Jake Bunce
Wed 30th Apr '08, 12:09am
This condition should work:


<if condition="in_array(THIS_SCRIPT, array('index', 'showthread', 'forumdisplay'))">

</if>

erobs
Wed 30th Apr '08, 6:55am
Thank you. Works like a charm.