![]() |
[How To] Adding Navigation Tabs Fast and Easy
1 Attachment(s)
Spoiler (vBulletin 4):
https://vborg.vbsupport.ru/attachmen...3&d=1336072549 PHP Code:
https://vborg.vbsupport.ru/attachmen...1&d=1336562730 PHP Code:
Adding a navigation tab is not a new concept. There are two articles (Lynne's and Ragtek's) on vBulletin.org showing how to do this. Both solutions work, but you are reading this to learn how to do take it from workable to fast, efficient, and portable. Let's first explore the two ways it is currently done. Let's say we want to add a 'Twitter' tab, linking to "twitter.com/xyz", on every page. Using Lynne's method: Plugin (hook: process_templates_complete) PHP Code:
Using Ragtek's method: HTML Code:
<!-- New Template: ragtek_twitter_navbar --> PHP Code:
The first two choices come down to either simplicity at the cost of flexibility, or flexibility at the cost of complexity. There is a way to have the best of both worlds and the worst of none. How? The answer lies in the `LancerForHire - Extended Navigations` product. Enter, `ExtendedNavigations::update`: PHP Code:
Lynne's: Plugin (hook: global_setup_complete), Order: 999 or less PHP Code:
Plugin (hook: global_setup_complete), Order: 999 or less PHP Code:
The `ExtendedNavigations::update` function takes a variable number of arrays. Each array ($options) follows the format below. Quote:
Download the product-extended_navigations_ Xml and add it (extended_navigations) as a product dependency. Yes; that's it! Extended Navigations is reverse compatible and can be used to add tabs to vBulletin 3 easily. To use Extended Navigations in vBulletin 3, an additional product download and dependency are required: product-extended_legacies. No code changes required. :) Brought to you by LancerForHire, LLC. |
Awesome! Thanks for sharing :)
|
Quote:
|
Thank you for the nice work. I would like to know how to create a drop down menu like this:
Main Link - sub link 1 - sub link 1.1 - sub link 1.1.1 In which the Main link have 03 level of sub link. Is this possible please? |
1 Attachment(s)
Quote:
https://vborg.vbsupport.ru/attachmen...1&d=1318426665 PHP Code:
|
Yes, I would like to create a drop - down directly under Test Tab. I mean the Test Tab have 3 links such as:
Link A Link B Link C And in Link A for example, It should have sub link like: Link A - Link 1 - Link 2 - Link 3 Also in Link 1 we have sub link Link 1 - Sub link 1 - Sub link 2 The purpose is to create a Main Nav Tab Drop Down (Test Tab) has 03 levels of sub link and all of them include the Main Nav are clickable. Thank you very much, |
Quote:
This functionality is supported in 1.5. :) |
My purpose is to create a Main Nav for an area of the board which have forums and other levels of sub forums so I would like to raise the question for you.
Thank you for your kind help. Your work is still usefull for me. |
thank u
|
These options should be easy and default ones within VBulletin
I just dont have that much time to play around with VB these days so I use this mod which works just great regarding to this "issue" https://vborg.vbsupport.ru/showthread.php?t=233629 I just dont get it, they waste so much time with things like FB or mobile apps but basic things like this are neglected :( |
All times are GMT. The time now is 01:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|