![]() |
Disable Adsense to certain forum ID's?
I would like to disable Ad Sense to the areas of my forum that are not allowed per googles acceptable use.
How do you go about doing this? |
what areas do you want to disable adsense on ??
|
The areas that are NOT allowed per googles terms of use for ad sense.
|
Quote:
|
You've added them, so I'm sure you can remove them ;)
|
okayy... i read somewhere here that google disallows displaying ads on pages that have forms, right ??
To block certain pages from displaying ads for eg. newreply.php, open newreply.php and look for PHP Code:
Wrap your ad code like this in the conditional:- Code:
if condition="!in_array(THIS_SCRIPT, array('newreply', 'register'))"> I hope this is what you are looking for !! |
Quote:
I found a IF statement but it's not working... |
if you wanna block certain forumID's.. use this conditional..
Code:
<if condition="!in_array($forumid, array(1,2,3,6))"> also.. check out a template conditionals list in my signature, will help you .. |
Quote:
|
All times are GMT. The time now is 07:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|