I don't know what I'm doing wrong, but if you don't mind, can you please take a look at my code and see if anything looks wrong? I'm copying the code directly from Google. My hack works fine, but I disable it to test out the conditionals.
Code:
<if condition="!in_array($foruminfo['forumid'], array(32,48,34,44,41,49,53,58,61,79,82,81,80,46,52,36,40))"><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxx";
/* Forum Leaderboard */
google_ad_slot = "xxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></if>
32,48,34,44,41,49,53,58,61,79,82,81,80,46,52,36,40 - Forum IDs I DON'T want ads shown in.
Also, could my PHP version be the problem? I'm running 5.2.16.
--------------- Added [DATE]1296771156[/DATE] at [TIME]1296771156[/TIME] ---------------
The answer is to use $GLOBALS instead of $foruminfo. Works like a charm!