Back to vBulletin 4 Articles

[HOW TO - vB4] How add sub-menu drop down to the navbar (tab Forum)
by Allan 09 Jan 2010

This mod add sub-menu drop down to the navbar (tab Forum)

PS: Thank to Lynne for his help

First Method
  • Add new plugin
- Product -> vbulletin
- hook location -> process_templates_complete
- Title -> menu x
- Execution Order -> 5
- Plugin PHP Code

PHP Code:
$template_hook['navbar_end'] .= 
<li class="popupmenu"> 
<a href="javascript://" class="popupctrl">Menu test</a> 
<ul class="popupbody popuphover"> 
<li><a href="http://www.vbulletin-ressources.com/forum">test 1</a></li> 
<li><a href="http://www.vbulletin-ressources.com/forum">test 2</a></li> 
<li><a href="http://www.vbulletin-ressources.com/forum">test 3</a></li> 
</ul> '



Change location
: ($template_hook['navbar_end'] in my example)

- navbar_end -> At the end to the navbar
- navbar_start -> At the beginning of the navbar
- navbar_after_getnew -> After "New Posts"
- navbar_after_pm -> After "Private Messages"
- navbar_after_faq -> After "Faq"
- navbar_after_calendar -> After "Calendar"
- navbar_after_community -> After "Community" button


Second method
  • In the "navbar" template, find:
PHP Code:
{vb:raw template_hook.navbar_end}
                </
ul>
            </
li>
        <
vb:elseif condition="$vboptions['selectednavtab']=='usercp'" /> 
  • Add above:
PHP Code:
<li class="popupmenu">
<
a href="javascript://" class="popupctrl">Menu test</a>
<
ul class="popupbody popuphover">
<
li><a href="http://www.vbulletin-ressources.com/forum">test 1</a></li>
<
li><a href="http://www.vbulletin-ressources.com/forum">test 2</a></li
<
li><a href="http://www.vbulletin-ressources.com/forum">test 3</a></li>   
</
ul>
</
li
  • Result:


PS: Just change the links and titles.
Attached Thumbnails
Click image for larger version
Name:	menu.jpg
Views:	3905
Size:	16.3 KB
ID:	109490  

vblts.ru supports vBulletin®, 2022-2024