The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How To Add Drop Down Menus To Your Navbar
I think everyone has encountered the situation at some point or other where their navbar has got very cluttered and they are faced with either adding yet another navbar, or adding some dropdown menus to group some items. This tutorial explains how to create an additional drop down menu in your navbar. Firstly, locate in your navbar template the first instace of Code:
<if condition="$show['popups']"> Code:
<td id="custommenu" class="vbmenu_control"> <a href="#">Custom 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"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Custom Menu</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> content row </td> </tr> </table> </div> The content row should be replaced with the actual menu item that you want to have in your new drop down menu. Repeat the code Code:
<tr> <td class="vbmenu_option" title="nohilite"> content row </td> </tr> If you wish to break your menu into sections like the quicklinks use then add Code:
<tr> <td class="thead">Custom Menu</td> </tr> The content added should be in the normal html format for 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. I hope you find this useful. |
#132
|
|||
|
|||
Oh well, that rules out 3.8 for me...
|
#133
|
|||
|
|||
I works for me in 3.8 by choosing second instance of "<if condition="$show['popups']">" instead of the first instance, as explained in article.
|
#134
|
|||
|
|||
Fixed my problem as well. Thanks!
|
#135
|
|||
|
|||
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? |
#136
|
|||
|
|||
I make second line at the top of navbar and this worked for me, but I have this problem:
Drop Down Menu is not near the link in navbar. Why this can be? |
#137
|
|||
|
|||
Is it somehow possible to make these drop-down menus dependent on which sub-forum is being viewed? So that the links in the menu are different for different sub-forums.
|
#138
|
||||
|
||||
Quote:
HTML Code:
<if condition="$forumid == '5'"> stuff just for when you are in forumid 5 </if> |
#139
|
|||
|
|||
I got the working almost perfectly, but... on existing dropdowns like search, or quicklinks, the dropdown menu aligns with the left of the link. However on the new dropdown menu that I added, the dropdown appears further to the left of the link, like its centered under the left side of the link. What can I do about this?
|
#140
|
|||
|
|||
in forum i have FAQ how to make it FAQ/Rule ?
|
#141
|
||||
|
||||
I found this good little article regarding how to add a drop down to your navbar. http://www.vbulletin.com/forum/newre...ote=1&p=769703
I've used this tutorial to create a new drop down on my navbar, It does appear on the navbar, however, when clicking on the menu, the drop down appears on the left side of the cell, rather than the center, like my other drop downs. I can't seem to find the correct verbiage to resolve this. I'd appreciate any direction. here are the relevant bits. Code:
<td id="mypopupmenu" class="vbmenu_control"><a href="#mypopupmenu">MENU TITLE</a><script type="text/javascript"> vbmenu_register("mypopupmenu"); </script></td> Code:
<!-- mypopupmenu --> <div class="vbmenu_popup" id="mypopupmenu_menu" style="display:none;margin-top:3px" align="$stylevar[left]"><table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">MENU TITLE</td></tr> <tr><td class="vbmenu_option"><a href="URL">LINKED TEXT</a></td></tr> </table> </div> <!-- / mypopupmenu --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|