The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[HOW TO - vB4] How to Add Drop Down Navigation Items to the Navbar
Some people really like the drop down navigation that is found in the Vbulletin 3.0 series, or are looking to add additional drop down navigation to the navbar in Vbulletin 4.0. This plugin and new template will allow you to do that. First, is to goto the Plugins and Products section, this section is in the left hand column of the admin panel near the bottom. In that section you will need to click the option to "Add New Plugin". Note that the red text from both the plugin and template must be the same. You can name it whatever you want, but they must match. For the new plugin you will enter the following details. Hook Location: process_templates_completeFor step two. You need to make the template that will be used in the navbar. Simply goto the style manager and in choose "Add New Template" from the options. From there, you just need to enter the following. Title: dropdown |
#2
|
||||
|
||||
Does what it says on the tin
Very simple, and effective thanks |
#3
|
|||
|
|||
Works great. Is there a way to get the same background color as you have over it like the other buttons?
|
#4
|
|||
|
|||
simple and great, thanks
|
#5
|
|||
|
|||
Now that is great, I have finally a dropdown menu where I want it, thanks very much
--------------- Added [DATE]1258657656[/DATE] at [TIME]1258657656[/TIME] --------------- Can I ask how would you set this so only certain usergroups would see the links, and the tabs? Thanks |
#6
|
||||
|
||||
Simple. Nice. Clean.
And the example screenshot. Priceless! |
#7
|
|||
|
|||
Perfect, thank you Shelby.
|
#8
|
||||
|
||||
Thank you.
Is there a way to choose where in the nav bar you want it located? |
#9
|
|||
|
|||
Substituting 'navtab_middle' for 'navtab_end' places it after the Forum tab and before the Blogs tab.
|
#10
|
||||
|
||||
I have changed it up a few to open a new screen. Hope this helps a few.
Code:
<li class="popupmenu"> <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">vBulletin Sites</a> <ul class="popupbody popuphover"> <li><a href="http://www.vbulletin.com" target="_blank" style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin</a></li> <li><a href="http://www.vbulletin.org" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin.org</a></li> <li><a href="http://www.vbulletin-germany.com/" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin-Germany</a></li> </ul> </li> Code:
<vb:if condition="!$show['guest']"> <li class="popupmenu"> <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">vBulletin Sites</a> <ul class="popupbody popuphover"> <li><a href="http://www.vbulletin.com" target="_blank" style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin</a></li> <li><a href="http://www.vbulletin.org" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin.org</a></li> <li><a href="http://www.vbulletin-germany.com/" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin-Germany</a></li> </ul> </li> </vb:if> Code:
<vb:if condition="!$show['guest']"> <li class="popupmenu"> <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">vBulletin Sites</a> <ul class="popupbody popuphover"> <li><a href="http://www.vbulletin.com" target="_blank" style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin</a></li> <li><a href="http://www.vbulletin.org" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin.org</a></li> <li><a href="http://www.vbulletin-germany.com/" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin-Germany</a></li> </ul> </li> </vb:if> <li class="popupmenu"> <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">vBulletin Sites 2</a> <ul class="popupbody popuphover"> <li><a href="http://www.vbulletin.com" target="_blank" style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin</a></li> <li><a href="http://www.vbulletin.org" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin.org</a></li> <li><a href="http://www.vbulletin-germany.com/" target="_blank" style="color:{vb:stylevar navbar_selected_popup_body_a_Color}">vBulletin-Germany</a></li> </ul> </li> Great code Shelby.Hope you don't mind but was just playing a bit with it and wanted to share. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|