Add a Drop Down Menu - Relative Positioning
Ok so we have read the "Add Drop Down Menu To Navbar"
and this gives us a drop down menu like this: https://vborg.vbsupport.ru/external/2008/10/64.jpg But we still need/want the menus to display under the Text link rather then to the left of the table cell the Text link is located in. Like This: https://vborg.vbsupport.ru/external/2008/10/63.jpg This tutorial explains how to create an additional drop down menu in your default/stock vB navbar, with the drop down menu showing under the Link. Firstly, locate in your "navbar" template the first instace of: Code:
<if condition="$show['popups']"> Code:
<td class="vbmenu_control"><a href="#" id="custommenu">Main Menu</a><script type="text/javascript"> vbmenu_register("custommenu"); </script></td> Next, in your "navbar" template find: Code:
<!-- NAVBAR POPUP MENUS --> Code:
<div class="vbmenu_popup" id="custommenu_menu" style="display:none" align="$stylevar[left]"> Ok so you will need to edit the links that point to my site to your own site links, if you wish to add more than one menu, repeat the process for each one, ensuring that you use a different name for each menu otherwise they will not function correctly. . |
Now you will see that my screen shots above show a second nav bar, this is somthing else i added to my site (vB), below is a copy of my whole "navbar" template.
If you want the second nav bar then simply copy all of the code below into YOUR "navbar" template, editing as you need to obviously. Code:
<br /> Lee |
Dont forget to click "installed" :)
|
Thats intresting, if you goto the main vb forums they seem to be doing this on there links. Cool ;)
|
moving to Articles
|
Is it possible to do this with IMAGE LINKS instead of text links?
As well... could I do this in the "HEADER" template, instead of the navbar template? |
I'd like a drop menu but under avatar. Is it posible?
|
Thank you
|
Is it possible somehow to have branches off the dropdown menu for subcatagories?
|
Another question, I seem to have used up vBulletin's capacity for maximum characters in the Template for my navbar because of adding to the menus. Is there anything I can do to be able to add still more?
|
Doesnt work for me......put the codes in the specified location and no link shows up on my navbar
|
Are any of you still intrested in this or having problems?
|
All times are GMT. The time now is 09:11 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|