The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to disable an ad from certain pages?
Hey guys, just wondering if you could tell me how I could remove Google ads from a certain page? For example, I have Adsense code installed in my NAVBAR template, so it shows the ad on all pages (wherever the navbar template is). I don't want the ad to show on certain pages like the "lost password" page, so how would I go about disabling the ad on that page?
Any help is very appreciated, thanks! |
#3
|
|||
|
|||
Thanks! But, could you possibly explain a little better for me? I'm not too bright when it comes to this stuff. lol So I'm assuming I would change "THIS_SCRIPT" to the name of the file where I don't want the ads to appear? Also, if there were a few different pages I didn't want ads to run on, how would I do that?
Thanks again so much! |
Благодарность от: | ||
blind-eddie |
#4
|
||||
|
||||
Quote:
If you wish to stop ads on multiple scripts, then you could use something like: HTML Code:
<if condition="!in_array(THIS_SCRIPT, array('login', 'script2', 'script3',...))"> Your ad code </if> |
#5
|
|||
|
|||
Oh ok, gotcha! Thanks so much guys! I'll give it a try tomorrow and let ya know how I made out.
Thanks again! |
#6
|
|||
|
|||
Try this mod, it should help: https://vbulletin.org/forum/showthread.php?t=326045
|
#7
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|