The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[HOW TO - vB4] How add sub-menu drop down to the navbar (tab Forum)
This mod add sub-menu drop down to the navbar (tab Forum) PS: Thank to Lynne for his help First Method
- hook location -> process_templates_complete - Title -> menu x - Execution Order -> 5 - Plugin PHP Code PHP Code:
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
PHP Code:
PHP Code:
PS: Just change the links and titles. |
#52
|
||||
|
||||
haha... I'm afraid you might need to guide me a little more than that.
Is it possible to modify the code above so that I can understand where that variable would go and how it would be passed over to the javascript / hyperlink? |
#53
|
||||
|
||||
Try something more like:
http://www.example.com/search.php?do=process&query={vb:raw bbuserinfo.username} |
#54
|
||||
|
||||
Ah, Lynne.... you absolute star!
Thankyou. <3 |
#55
|
|||
|
|||
Where can I find the CSS for the drop down menu?
I'd like to customise the CSS to my own liking for my forum and add it to additional.css! Thanks. |
#56
|
|||
|
|||
I can`f find second method (navbar template on VB 4.2.0 PL3
HTML Code:
<div id="navbar" class="navbar"> <ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>"> {vb:raw template_hook.navtab_start} {vb:raw navigation} {vb:raw template_hook.navtab_end} </ul> <vb:if condition="$vboptions['enablesearches']"> <div id="globalsearch" class="globalsearch"> <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search"> <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="process" /> <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span> <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span> </form> <ul class="navbar_advanced_search"> <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li> {vb:raw template_hook.navbar_advanced_search} </ul> </div> </vb:if> </div> </div><!-- closing div for above_body --> <div class="body_wrapper"> <div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul> <hr /> </div> {vb:raw ad_location.ad_navbar_below} {vb:raw ad_location.global_below_navbar} <vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'"> <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices"> <input type="hidden" name="do" value="dismissnotice" /> <input type="hidden" name="s" value="{vb:raw session.sessionurl}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" /> <input type="hidden" name="url" value="{vb:raw return_link}" /> <ol> {vb:raw notices} </ol> </form> </vb:if> Any Idea how to add this code PHP Code:
|
#57
|
|||
|
|||
Seems people don't want to mess with updating this anymore.
Mega Menu? Nested dropdowns? Put a menu with links inside a menu? |
#58
|
||||
|
||||
This article covers one thing - adding a sub-menu downdown to the navbar. There is nothing in the description that says anything about covers those other items.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|