MyBB Community Forums

Full Version: Help! - Board Specific Code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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>
(2014-03-09, 02:52 PM)marcus123 Wrote: [ -> ]Use this conditional!

<if $GLOBALS['fid'] == 52  then><else>
Adsense
</if>

You may want to point out it requires Template Conditionals.

http://mybbhacks.zingaburga.com/showthread.php?tid=464
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.
Edit: delayed response

^ template conditionals plugin is required to use such conditionals code
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. Sad
Where are you putting this code?
Pages: 1 2