vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] How add sub-menu drop down to the navbar (tab Forum) (https://vborg.vbsupport.ru/showthread.php?t=232579)

Allan 01-07-2010 10:00 PM

[HOW TO - vB4] How add sub-menu drop down to the navbar (tab Forum)
 
1 Attachment(s)
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:
https://vborg.vbsupport.ru/external/2011/04/13.jpg

PS: Just change the links and titles.

Allan 01-09-2010 06:12 PM

In public now.

KURTZ 01-09-2010 06:19 PM

thanks for sharing Allan ;)

ShackMaster 01-13-2010 06:33 PM

Can you help me with coding drop down tab menus for vB 3.8.4?

I am using additional CSS and placing the following code in the header,

PHP Code:

<li id="current"><a href="#"><span>Tab 1</span></a></li>
<
li><a href="#"><span>Tab 2</span></a></li>
<
li><a href="#"><span>Tab 3</span></a></li>
<
li><a href="#"><span>Tab 4</span></a></li>
<
li><a href="#"><span>Tab 5</span></a></li>
<
li><a href="#"><span>Tab 6</span></a></li>
<
li><a href="#"><span>Tab 7</span></a></li


but I have not been able to get the dropdown menus such as search and quick links to work.

Thanks!

ragtek 01-13-2010 06:50 PM

Isn't this the same as https://vborg.vbsupport.ru/showthread.php?t=228338

Allan 01-13-2010 06:56 PM

Quote:

Originally Posted by ragtek (Post 1954747)

No, this article is for navbar, no navtab.

ShackMaster 01-13-2010 07:13 PM

If you can help us code this... we are willing to pay.

We tried this hack, and everything works fine, other than getting dropdown menus to work with the tab list.

skor 01-18-2010 01:52 AM

Is there a way to have this work on the CMS as well?

ahmedipa 01-24-2010 07:01 AM

thank you for this very good

as7apcool 01-24-2010 07:34 AM

thanks alot ... this is very useful


All times are GMT. The time now is 02:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01308 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete