Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Feb 2009, 02:50
Cole2026 Cole2026 is offline
 
Join Date: Feb 2004
Real name: Cole
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?
Reply With Quote
  #2  
Old 21 Feb 2009, 03:34
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
what does it do when you put in the navbar ? or forumhome template ? does it error out ?
Reply With Quote
  #3  
Old 21 Feb 2009, 03:52
Cole2026 Cole2026 is offline
 
Join Date: Feb 2004
Real name: Cole
Originally Posted by mmoore5553 View Post
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).
Reply With Quote
  #4  
Old 21 Feb 2009, 15:10
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
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 21 Feb 2009 at 15:16 ---------------

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

Last edited by mmoore5553; 21 Feb 2009 at 15:16. Reason: Auto-Merged DoublePost
Reply With Quote
  #5  
Old 21 Feb 2009, 17:08
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:52.

Layout Options | Width: Wide Color: