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 to Add Drop Down Navigation Items to the Navbar (https://vborg.vbsupport.ru/showthread.php?t=228338)

mjr0483 11-06-2011 02:43 PM

Any way to get the dropdown to open on hover?

malmazan 11-07-2011 07:24 AM

Quote:

Originally Posted by mjr0483 (Post 2264985)
Any way to get the dropdown to open on hover?

I would love that too

intruder 12-08-2011 01:00 PM

How can I add the arrow img if my style is:
domain/images/styles/STYLE.NAME/misc/arrow.png because it's not working

<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">Drop Bombs</a>


How can I add the navtab after cms, something like:
$template_hook['navtab_end'] ....... $template_hook['navtab_after_cms']

and how can I reduce the sublink space:

https://vborg.vbsupport.ru/external/2011/12/5.png

For the sublink space I found that the padding:
.popupbody li > label {
padding-bottom: 8px;
padding-left: 10px;
padding-right: 10px;
padding-top: 8px;
}


should be:

.popupbody li > a,
.popupbody li > label {
padding-bottom: 0;
padding-left: 10px;
padding-right: 10px;
padding-top: 0;
}


and is defined in additional.css

.popupbody li > a,
.popupbody li > label {
padding:{vb:math {vb:stylevar padding}-2} {vb:stylevar padding};
}

So where could I edit "stylevar padding" ?
It's not in the Style Variable Editor / popupmenu_padding because there I have 2, 0, 0, 0

betts02 12-21-2011 07:31 PM

SOLVED, Cheers great work

ClErK1991 01-22-2012 09:20 PM

thanks shelby, i gonna try this :)

GoneBushX 09-06-2013 11:32 PM

Great Info, THX!

With the new navigation manager in 4.2 still not allowing you to add drop down menu to parent tabs :mad:; would it be best practice on 4.2.1 to add a tab with the default nav. man. and then just update the corresponding tabs code in forumdisplay.php with your code in step 2? If that makes sense ;)

OR forget nav. man. and just insert your step 2 code after {vb:raw navigation} in navbar template; Like this-
https://vborg.vbsupport.ru/showthread.php?t=246687

:D

ozzy47 09-07-2013 12:33 PM

Yes you can have dropdowns in the Navigation Manager now as of v4.2.1

GoneBushX 09-07-2013 10:50 PM

Not within the navbar (parent tabs) only in the submenu?

ozzy47 09-08-2013 12:28 AM

Yes you can, they added that functionality in 4.2.1

http://www.vbulletin.com/forum/forum...-prod-installs

GoneBushX 09-10-2013 09:45 PM

[S]BETA only?[/S]

Found it; great job updating the manual and tuts vB! :down:

Target Menu-
This is the Menu that will open upon a click on the Tab. Sub menus belonging to the selected tab must be created before one can be assigned to the tab as the main menu.


All times are GMT. The time now is 11:03 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02413 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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