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. |
#12
|
|||
|
|||
I installed this hack. It is great.
I am using a customised menu to search new posts in specific categories. - using this hack. One problem I am facing is, after the execution of the search?.., the tab switches to "What's New ?" tab. Original search menu is under Forums, how to use this menu option but not switch the tab to What's New ? Thanks in advance. my forum : http://www.r2iclubforums.com/forums/ |
#13
|
|||
|
|||
Hi, what if I just want a link there. I mean just like, new post, private messages faq or calender?
Thanks in advance. |
#14
|
|||
|
|||
Its possible a sub-sub-sub menu ? thanks
|
#15
|
|||
|
|||
Also want to just make a single link in CMS area (home page).
|
#16
|
|||
|
|||
Okay... how would I ITERATE this?
For instance... this is my navtab template: Code:
<vb:if condition="$vboptions['selectednavtab'] == 'media'"> <li class="selected"> <a class="navtab" href="media.php{vb:raw session.sessionurl_q}">Media</a> <ul class="floatcontainer"> <li><a href="media.php{vb:raw session.sessionurl_q}">Media Home</a></li> <li class="popupmenu"> <a href="javascript://" class="popupctrl">Categories</a> <ul class="popupbody popuphover"> {vb:raw catbits} </ul> </li> </ul> </li> <vb:else /> <li><a class="navtab" href="media.php{vb:raw session.sessionurl_q}">Media</a></li> </vb:if> Code:
$categories = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "media_category"); while ($category = $vbulletin->db->fetch_array($categories)) { $templater = vB_Template::create('media_NAVTAB_bit'); $templater->register('categoryID', $category['categoryID']); $templater->register('catName', $category['catName']); $catbits .= $templater->render(); } --------------- Added [DATE]1269835210[/DATE] at [TIME]1269835210[/TIME] --------------- Okay... trying things out, I was able to get it working by using this plugin.... Code:
if (THIS_SCRIPT == 'media') { $vbulletin->options['selectednavtab'] = 'media'; } $categories = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "media_category"); while ($category = $vbulletin->db->fetch_array($categories)) { $templater = vB_Template::create('media_NAVTAB_bit'); $templater->register('categoryID', $category['categoryID']); $templater->register('catName', $category['catName']); $catbits .= $templater->render(); } $templater = vB_Template::create('media_NAVTAB'); $templater->register('catbits', $catbits); $template_hook['navtab_middle'] .= $templater->render(); |
#17
|
||||
|
||||
thanks, trying it out now on our test server.
|
#18
|
|||
|
|||
Hi, great tip to get a dropdown menu.
I implemented it and it appears in the Forum tab. But now, I'd like to implement it in the CMS frontpage section. Can you tell me how to do this? Thanks! |
#19
|
|||
|
|||
thank you
|
#20
|
|||
|
|||
Thank you SO much! I used option 1. Very easy mod to do, and easy to add as many links as I need.
|
#21
|
||||
|
||||
This is a great hack. Thank you. Btw is there a way to make it so members can only see it.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|