Log in

View Full Version : Conditional Assistance


Kirk Y
04-24-2007, 08:09 PM
I'm trying to restrict Adsense ads from being displayed on several pages and to avoid the use of a bunch of 'OR' conditionals, I'm trying to stick all the bad pages in an array and then have the conditional check for the script name in the array instead. But, I can't seem to get it working, I'm sure it's something simple and I just need a fresh perspective on it. Thanks for any help!

<if condition="!(in_array(THIS_SCRIPT, array('search','editpost','newreply','newthread')) )">
<!-- ADSENSE -->
</if>