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 |
#42
|
|||
|
|||
post deleted
never mind; I got it working thanks to the original contributor |
#44
|
|||
|
|||
Great article.
Any way to get the template cached, though? I have debub mode turned on, and this template is the only one that seems to be not cached. Thanks. Peter. --------------- Added [DATE]1274379546[/DATE] at [TIME]1274379546[/TIME] --------------- Hmm. I also have the problem with the navbar background not changing color when highlighted. Removing the style stuff works, but then the arrow icon dissappears. Using IE8, but also no luck in FF. 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"><img src="images/entropiaplanets/process.png" border="0" align="top" alt="EntropiaPlanets Tools" /> EP Tools</a> <ul class="popupbody popuphover"> <li><a style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="business.php">Yellow pages</a></li> <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.entropiaplanets.com/forums/vbay.php">Auction</a></li> <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.entropiaplanets.com/forums/misc.php?do=cchatbox">Chat</a></li> <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.entropiaplanets.com/forums/vbugs.php">Bug tracker</a></li> <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.entropiaplanets.com/forums/missions.php">Mission tracker</a></li> </ul> </li> |
#45
|
|||
|
|||
Found out how to get the caching working. I created a new plugin, linked it to the hook cache_templates, and used the following code to cache the template:
Code:
$cache = array_merge($cache, array('<template_name>')); |
#46
|
|||
|
|||
Anyone got a working solution for the non-changing background colour by any chance? I have not yet managed to get that bit working.
|
#47
|
|||
|
|||
Thanks worked brilliantly straight out of the box - have bookmarked it to add additional functionality to our site in the coming days this is absolutely brilliant.
|
#48
|
|||
|
|||
Great tutorial works fine even in 4.04
|
#49
|
|||
|
|||
Is there any way to make the default "Forum" navtab a dropdown, instead of adding a new tab?
I run a gaming board that hosts multiple games, guilds/clans, etc. I wish to make the Forum navtab a dropdown that i can then have the links to the various areas on the board. I followed this tutorial to create a plugin/template to help show what i am looking to do. I figure i could remove the default "Forum" tab and replace it with the new one, but i was wondering if it can just be done on the current, default tab. |
#50
|
|||
|
|||
Thank you! After a little trial and error, I got this to work wonderfully on our site. I appreciate the help!
|
#51
|
|||
|
|||
Lynn or anyone,
Any ideas how to make this menu stay on top of a .swf file? I have a .swf advert in ad_below_navbar and the dropdown menu slides behind the advert. Ideas welcomed. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|