vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Hide Global Footer ad on Registration Page (https://vborg.vbsupport.ru/showthread.php?t=320813)

pjkcards 11-18-2015 02:50 AM

Hide Global Footer ad on Registration Page
 
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

Quote:

Originally Posted by Max Taxable (Post 2558914)
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:

Code:

<vb:if condition="THIS_SCRIPT != register">
AD DISPLAY CODE
</vb:if>


pjkcards 11-19-2015 06:06 AM

Quote:

Originally Posted by Dragonsys (Post 2558937)
in the footer template, around the ad code put this:

Code:

<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.


All times are GMT. The time now is 06:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00964 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete