View Full Version : Navbar above header
Alex@Mk3OC
05-23-2008, 09:59 PM
Hi
I have a second navbar called navbar2, but i want to place it so it appears right at the top of the pages, above the logo and header bits, with no gap above it, but I can't seem to figure out where and in what template to place the $navbar2 code.
Any help would be greatly appreciated.
iogames
05-23-2008, 10:05 PM
Dang you confuse me!
so you have a 2nd navbar? where do you put it? who put it?
as far as I concern, navbar's code are located on NAVBAR Template...
Please post your site or a screenshot
Brandon Sheley
05-23-2008, 10:09 PM
in the header template ?
Alex@Mk3OC
05-23-2008, 11:30 PM
Site is www.mk3oc.com/forum
We have a 2 row navbar already but i want to add a navbar above our logo right at the top of the page, but have tried putting the $navbar2 code in the header and it won't display the bar at all anywhere. I put it in the forum display template and that worked, but it wasn't quite right at the top.
Dismounted
05-24-2008, 04:53 AM
In your templates, you will have to find "$navbar", and move it above "$header". By default, it is below "$header".
Alex@Mk3OC
05-24-2008, 11:10 AM
I've done that in my forum display template, i put "$navbar2" above "$header" but it didn't show up at all
SEOvB
05-24-2008, 11:24 AM
You probably need to change the location of the plugin.
If you simply place $navbar2 at the top of the header template and with the correct plugin location it should work on all templates
Alex@Mk3OC
05-24-2008, 04:55 PM
What do you mean location of the plugin? I'm still quite new to all this vb stuff
Dismounted
05-26-2008, 06:08 AM
What is the hook location of the plugin?
SEOvB
05-26-2008, 07:05 AM
What do you mean location of the plugin? I'm still quite new to all this vb stuff
What modification are you using to create the navbar2 template?
If you simply made a template and called it navbar2 that won't work. You'll need to create a plugin to eval this template so you can make calls to it, and you should also have one to cache the template to save quieries i think.
Alex@Mk3OC
05-26-2008, 10:38 AM
Using this plugin: https://vborg.vbsupport.ru/showthread.php?t=166136
Have asked in that thread as well and no-one's replied. Really need the extra bar as well as need some where to put more features and hate cramped bars lol
SEOvB
05-26-2008, 11:08 AM
You should be able to put the $navbar2 variable right on top of the header template. Make sure you are editing the header template for the skin you are using.
You may have to use inline CSS to remove any margin/padding set by the templates CSS
<div style="margin: 0px; padding: 0px;">$navbar2</div>
Alex@Mk3OC
05-26-2008, 05:20 PM
Will give that a go, thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.