![]() |
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! |
Add this conditional to your ad code in your navbar template.
Code:
<if condition="THIS_SCRIPT != 'login'"> |
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! :) |
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',...))"> |
Oh ok, gotcha! Thanks so much guys! I'll give it a try tomorrow and let ya know how I made out.
Thanks again! :) |
Try this mod, it should help: https://vbulletin.org/forum/showthread.php?t=326045
|
1 Attachment(s)
Quote:
|
Thanks so much guys, it works perfectly! :) I'm definitely going to check out that MOD too!
Take care for now! |
All times are GMT. The time now is 09:04 PM. |
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:
|