View Full Version : block ads on some page?
Shaybloom
06-14-2013, 10:48 AM
so theres ads even on the page which says you are not logged in please register!!!
naturally i wont get a new member if hes pissed
its the ad which is global on the header(below header below logo)
how do I disable/block ad on just that one page?
Thanks
snakes1100
06-14-2013, 04:50 PM
That would require more detail, as that message can show up on numerous pages.
If your not logged in and click on a members profile and they are disabled for guests, it will produce that message on member.php, same for trying to make a new post as a guest, it would show up on newreply.php etc...
If you talking only about the register.php page, then you can wrap that ad in a if statement and exclude it from that one page.
<vb:if condition=”THIS_SCRIPT !== ‘register’”>
Your Ad Code Here
</vb:if>
But as i said above, that is only going to block it on that single page.
Im sure you dont want to block the ad for all guests wither, so doing a if for the group wouldnt work either.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.