vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   So I removed the navbar from my vBAdvanced portal. (https://vborg.vbsupport.ru/showthread.php?t=168215)

Guest210212002 01-19-2008 06:27 PM

So I removed the navbar from my vBAdvanced portal.
 
I don't know why I didn't do this ages ago. Most vBA sites have the nav controls in one of the modules anyway, so the navbar was completely redundant. The front of my site looks 100% cleaner (imo, of course).

http://www.sevenstring.org

Login with guest/guest to remove the adsense.

If anyone wants to do the same while keeping adsense under the navbar for guests, it uses only one conditional. You will need to use it twice. Once like so, to remove the navbar at the beginning and end of your current template:

Code:

<if condition="THIS_SCRIPT !== 'adv_index'">
With the /if at the end of your existing template. What that does is basically "If you aren't on your vBA portal, show the navbar".

You'll need your header adsense code in there twice. It's going to be exactly the same, just in two spots. One within the conditional that you just made, and then another after your closing /if to show it on the navbar-free portal, like this:

Code:

<if condition="THIS_SCRIPT == 'adv_index'">
(adsense code)
</if>

Which is "If you are on the vBA portal, do the following", which is display your adsense. If anyone wants to do this and runs into any issue just give me a shout. I think it really cleans things up, and was worth sharing. :)


All times are GMT. The time now is 12:50 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.00963 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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