![]() |
Multiple Navbars
There is always a demand for increased navigation from your vB Board. This modification has been tested on 3.6.x, 3.7.x and 3.8.x
Hardcoding a menu is the best way to add the increased functionaility, without adding server load and queries. This template modificiation explains how to add additional simple navbars to your website. By utilising exisitng vB code from within the Navbar template, the menu will appear on all pages, including in add-ons such as vBa and Photoplog and Photopost. A working expample can be found at Midlands Weather Forum The basis of the navigation bar (refered to as the 'Main Code') is as follows: Code:
<!-- nav2 buttons bar by Optrex--> Code:
<td class="vbmenu_control"><a href="http://www.yoururlhere.com" >Title of your link</a></td> Code:
<if condition="$show['member']"> Find the following line in your navbar template and place your compiled code above it. Code:
<!-- nav buttons bar --> |
Links to useful hints and tips within this thread:
Adding an admin only link: https://vborg.vbsupport.ru/showpost....8&postcount=15 Border around navbar: https://vborg.vbsupport.ru/showpost....29&postcount=7 Make link open in new window: https://vborg.vbsupport.ru/showpost....9&postcount=22 Colour links: https://vborg.vbsupport.ru/showpost....7&postcount=23 |
Great come in handy :)
|
hi,
i will test and install - really useful!:D tks beduino |
Great Hack Optrex.
Heres a screen shot to show my version. :) |
Hi m8, i have put mine above the navbar and its missing the line above the top of the botton cell? www.bashys-place.com/forums top bar you'll see
Any ideas as to the code to add it please? |
Hi Bashy, There are 2 ways round that the first is to remove the following coloured text
Code:
<!-- nav2 buttons bar by Optrex--> |
Cheers m8, I added the 1 instead of removing it :)
All sorted now, thanks again!! |
thanks for the tute. This is really helpful, I guess I could also add the navbar at the footer if I wanted right?
Could I also duplicate the current navbar so it shows in the footer? if so where should I add it? Thanks |
Yes the idea is you can create as many menu nars as you want. Because it's coded directly into the template there are no additional server loads or queries.
If you were putting it in the footer, I would choose to place it above Code:
<!-- /content area table --> |
All times are GMT. The time now is 11:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|