The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
what areas do you want to disable adsense on ??
|
#3
|
|||
|
|||
The areas that are NOT allowed per googles terms of use for ad sense.
|
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
You've added them, so I'm sure you can remove them
|
#6
|
||||
|
||||
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'))"> YOUR AD CODE HERE </if> I hope this is what you are looking for !! |
#7
|
|||
|
|||
That's not the problem. If I remove them then they are gone for the entire forum. I'm just trying to figure out how to do it per forum ID's...
I found a IF statement but it's not working... |
#8
|
||||
|
||||
if you wanna block certain forumID's.. use this conditional..
Code:
<if condition="!in_array($forumid, array(1,2,3,6))"> YOUR AD CODE HERE </if> also.. check out a template conditionals list in my signature, will help you .. |
#9
|
|||
|
|||
Thank you very much, that did the trick
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|