View Full Version : Hide Global Footer ad on Registration Page
pjkcards
11-18-2015, 02:50 AM
How do I hide the Global Footer ad on the Registration Page? Thanks.
Max Taxable
11-18-2015, 03:08 AM
Footer ad? You mean the footer itself? it's not a ad.
Remove the hook call, {vb:raw footer} in the register template.
pjkcards
11-18-2015, 04:19 AM
Footer ad? You mean the footer itself? it's not a ad.
Remove the hook call, {vb:raw footer} in the register template.
I mean the Global Footer Ad, in the AdminCP > Manager Ads section. We have a global footer ad that is showing a 728x90 banner, but we want to disable it on the registration page.
Dragonsys
11-18-2015, 02:28 PM
in the footer template, around the ad code put this:
<vb:if condition="THIS_SCRIPT != register">
AD DISPLAY CODE
</vb:if>
pjkcards
11-19-2015, 06:06 AM
in the footer template, around the ad code put this:
<vb:if condition="THIS_SCRIPT != register">
AD DISPLAY CODE
</vb:if>
If I remember correctly, vb if conditions don't work in the AdminCP > Manage Ads section. The ad code isn't added to the footer directly, it is added via the Manage Ads section, as settings are made via "Display ad if..." section.
So, where would I add the code above since the ad code isn't directly added to the footer?
I did try to use your code to wrap this part in the footer template:
{vb:raw ad_location.ad_footer_end}
But when I went to the register page, the footer ad still showed, so it didn't work.
Can you tell me where I'm off here so I can get this working?
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.