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)
-   -   spacer_open conditional (https://vborg.vbsupport.ru/showthread.php?t=206072)

Cole2026 02-21-2009 12:50 AM

spacer_open conditional
 
I have a style where I want the navbar to totally extend the length of the page. This essentially means that I need the $spacer_open variable to come after the $navbar, not in the header beforehand.

I would simply put it in at the end of the $navbar template, however this causes a problem as the $spacer_open variable would not be on templates such as STANDARD_ERROR or registration templates (As the navbar isn't brought up).

I thought I could possibly do this by putting a hook in the global_setup_complete with a conditional seeing if $navbar was defined, and if it wasn't append the $spacer_open to the end of the $header template, instead of the end of the $navbar. This doesn't work though because global.php is called in each file nearly first thing, before the navbits are constructed.

Does anyone have an idea on the best way to do this with minimal template edits?

mmoore5553 02-21-2009 01:34 AM

what does it do when you put in the navbar ? or forumhome template ? does it error out ?

Cole2026 02-21-2009 01:52 AM

Quote:

Originally Posted by mmoore5553 (Post 1750313)
what does it do when you put in the navbar ? or forumhome template ? does it error out ?

Well its a global variable, I can pretty much put it everywhere. The problem is, is that if I do put it in the navbar template, it will only open up the spacer when the navbar template is called (and it is not on the register template or error templates).

mmoore5553 02-21-2009 01:10 PM

hmmmmm i would have to see the template you are wanting and screen shot to see what the output you want ..i kinda understand what you are trying to say but missing something

--------------- Added [DATE]1235229372[/DATE] at [TIME]1235229372[/TIME] ---------------

i was thinking if you just make the header wider and take out the divs at top you should be fine and adjust css ....

but i would have to see the actual webpage

Lynne 02-21-2009 03:08 PM

You may be able to use the <if condition="THIS_SCRIPT == 'whatever page'"> condition if it is specific pages you don't want it on.


All times are GMT. The time now is 12:17 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.00933 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)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