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. |
#72
|
||||
|
||||
try placing the first part (where you want the link to show) inthe relitive part of your header template and the (second part) in the correct place in the navbar template. i'm not sure if it would work but it would be the first thing i tried!
EDIT: that does not work! sorry |
#73
|
||||
|
||||
Kerry-Anne,
I can't thank you enough for this. You've eliminated my Navbar clutter. Thanks! |
#74
|
|||
|
|||
Anyone know how to center the drop down box below the item as opposed to it lining up on the left? Thanks!
|
#75
|
|||
|
|||
Hi I know this is an old article but i hope there is stall some support for it
I have in stalled this and have it working fine but for on problem! underneath the navbar on the left handside i get a link "member links" which lead to nowhere! if i disable the drop down list it disappears Please see for yourself HERE It is doing my head in now! Please help Edit: Never mind had to do it the hard way but got it sorted now |
#76
|
|||
|
|||
Hi,
Ive just installed this on my forum and got it working Thank you Is there anyway though of moving where the dropdown shows on the navbar? Ive attatched a screenshot of where it currently is and where I would like to move it to. Ive tried having a play around, but i cant get it to work. Below is my navbar template as well. If anyone can help, this would really be appreciated. |
#77
|
||||
|
||||
Kerry, I'm having some difficulty with this. Could I get your assistance via PM?
|
#78
|
||||
|
||||
sorry did not work with me at all
|
#79
|
|||
|
|||
Excellent article , love your style of writing , very easy to follow and edit. Please post more articles if possible on editing the main page structure.
|
#80
|
||||
|
||||
In 3.7 Beta 6 (if that matters) the pop up is showing up to the left of the link on the navbar?
I have tried several things to correct this and I'm stumped? any help? I copied the code exactly as above. --------------- Added [DATE]1205822677[/DATE] at [TIME]1205822677[/TIME] --------------- --------------- Added [DATE]1205864561[/DATE] at [TIME]1205864561[/TIME] --------------- Any help here? The drop down menu shows up to the left of the menu title for the drop down... It seems others have this issue to after some searching and no answers so far. ??? |
#81
|
|||
|
|||
Is there a mod that lets the users add to the menu from within the Admin UI? I am setting up a forum for a customer and am trying to keep everything within the UI as much as possible. Ty
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|