I have Adsense in my header and want to block it from a certain forum. What code do I need? The forum ID of the board is 52. I'm guessing I will need a If, Then, Else, php statement. Thanks.
Use this conditional!
<if $GLOBALS['fid'] == 52 then><else>
Adsense
</if>
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/70/11427070/html/global.php(530) : eval()'d code on line 38
Gave me that error.
Sorry I forgot to mention that it needs that plugin!
Downloaded the plugin, installed, etc. Implemented the code. Still showing ads in that category.
Check that the fid is correct!
It is. The url however ends in /f-NSFW instead of /f-fid52. Could that be the issue?
I can't seem to figure out what is causing the ads to show regardless of the fid being correct.
Where are you putting this code?