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.

crazyboy1661 09-11-2013 11:52 AM

does it available in xml format?

ozzy47 09-13-2013 09:21 AM

What? This is a tutorial on how to add a dropdown tab prior to vB v4.2.1, what do you need with a xml?

john7911 12-13-2013 01:27 PM

Thank you ;)

Searchthis 12-14-2013 06:54 PM

So if I'm running 4.2.2 do I need this mod or is it included in Vbulletin?

ozzy47 12-14-2013 08:14 PM

It is included as of 4.2

Savy83 01-05-2014 03:55 AM

Quote:

Originally Posted by ozzy47 (Post 2468300)
It is included as of 4.2


Can you tell me how I do this? I did everything in nav manager

I added links to the main tab, but they just appear below the tab area, and not as a drop down style menu.

ozzy47 01-05-2014 04:25 AM

1) Create a tab.
2) Create a menu for the tab.
3) Edit the tab and find the setting, "Target Menu" select the menu you just created, click on save.
4) Add links to the menu you created, these are what will show up as the dropdown items in the tab.

ywwz 03-10-2014 02:18 PM

Bravo!!!

john7911 01-20-2016 09:34 AM

Hi :)
How can I change the font style?

I changed in this code but nothing changed :o
HTML Code:

.popupbody li a,
.popupbody li label {
        display:block;
        color: {vb:stylevar popupmenu_link_color};
        background:{vb:stylevar popupmenu_link_background};
        padding:{vb:math {vb:math {vb:stylevar popupmenu_height}-{vb:math {vb:stylevar popupmenu_font.fontSize}{vb:stylevar popupmenu_font.units}*{vb:stylevar line_height}}}/2
 

}

If I use Firebug i can see the difference.
https://vborg.vbsupport.ru/external/2016/01/3.jpg
Thank you ;)

mangmel 01-22-2016 07:15 AM

thanks..... working

W2OE_Prodigy 02-17-2016 07:51 PM

Quote:

Originally Posted by ozzy47 (Post 2472325)
1) Create a tab.
2) Create a menu for the tab.
3) Edit the tab and find the setting, "Target Menu" select the menu you just created, click on save.
4) Add links to the menu you created, these are what will show up as the dropdown items in the tab.

I tried this but am still having issues with it showing up a drop down menu. I followed the steps completely multiple times but still not having any luck. Am I missing a setting somewhere?


All times are GMT. The time now is 10:19 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.01364 seconds
  • Memory Usage 1,756KB
  • 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_html_printable
  • (3)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
  • (21)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