Log in

View Full Version : Add-On Releases - NJAquaman - Main Nav Tabs


NJAquaman
01-04-2010, 10:00 PM
What: A Simple Nav Tab Plugin to Add a Tab to the Nav Bar.

WORKS WITH ..!!!
4.0.x

Browser Comparability (All Latest Versions);
Internet Explorer
Firefox
Opera
Safari
Google Chrome


Install:

1) Navigate to ACP> Plugins & Products > Add New Plugin
2) Product : Vbulletin
Hook Location : parse_templates
Title : Nav Tab
Execution Order : 5

3) Insert the Code;

For Tabs On the Right Side Use This Code:
$template_hook['navtab_end'] .= '
<li><a href="http://www.google.com" class="navtab">Google </a></li>
<li><a href="http://www.yahoo.com" class="navtab">Yahoo </a></li>
';

For Tabs in the Middle Use This Code:
$template_hook['navtab_middle] .= '
<li><a href="http://www.google.com" class="navtab">Google </a></li>
<li><a href="http://www.yahoo.com" class="navtab">Yahoo </a></li>
';

For Tabs On the Left Side Use This Code:
$template_hook['navtab_start'] .= '
<li><a href="http://www.google.com" class="navtab">Google </a></li>
<li><a href="http://www.yahoo.com" class="navtab">Yahoo </a></li>
';

4) Save , Now you Have a Nav Tab!

Notes:
- "Google" or "Yahoo" is the tab names
- To Create More Tabs Duplicate it under the Same "$template_hook['navtab_end']" Tag
- YOU MAY Duplicate it in the same Plugin
- You can use both Left and Right codes at the same time!



Screen Shot!

109193



DONT FORGET TO CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=232254)

__________________________________________________ ______________
Change Log
v1.4 - 01/17/10
- vB 4.0.1 Temp Hook Call Fix
- Patch: Change the Hook From "process_template_complete" to "parse_templates"

v1.3 - 01/15/10
- Added the Middle Code (garretbyrne) (https://vborg.vbsupport.ru/showpost.php?p=1954983&postcount=35)

v1.2 - 01.05/10
- Both Right and Left Sides (Zaiaku) (https://vborg.vbsupport.ru/showpost.php?p=1948060&postcount=10)

v1.1 - 01/05/10
- Added Just A Nav Tab Option With A Link (Pozo) (https://vborg.vbsupport.ru/showpost.php?p=1947802&postcount=17)
__________________________________________




Here Are Some Other Versions:
Main Nav Tab Drop Down (https://vborg.vbsupport.ru/showthread.php?t=232134)
Main Nav Tab w/ Connective Sub Nav (https://vborg.vbsupport.ru/showthread.php?p=1974720)
[CMS] Sub Nav Tabs (https://vborg.vbsupport.ru/showthread.php?t=232265)
[CMS] Sub Nav Tabs Drop Down (https://vborg.vbsupport.ru/showthread.php?t=232268)

GamerPerfection
01-05-2010, 02:12 PM
Where's the demo?

NJAquaman
01-05-2010, 02:44 PM
Where's the demo?
Screen-shot!
https://vborg.vbsupport.ru/attachment.php?attachmentid=109193&stc=1&d=1262705894
Thank you For your Interest!

GamerPerfection
01-05-2010, 02:45 PM
Yeah mate, that's a screen shot not a demo. A demo would be a link to a working site to see it working in action.

NJAquaman
01-05-2010, 02:47 PM
Yeah mate, that's a screen shot not a demo. A demo would be a link to a working site to see it working in action.

Thanks Clarkey,
I recommend Trying it ! Its Only 3 Lines of code~!
Let Me know what you think!

Thanks

Zaiaku
01-05-2010, 04:37 PM
What side of the original tabs does this put it on?

NJAquaman
01-05-2010, 04:49 PM
What side of the original tabs does this put it on?
The Right Side ! Do you Need The left Side?

Thanks

sirstone
01-05-2010, 04:52 PM
It works but if i click the new tab it isn?t highlighted..:)

NJAquaman
01-05-2010, 04:53 PM
It works but if i click the new tab it isn?t highlighted..:)

This is A Simple Link Tab Not A Page Tab !

thank you !

Zaiaku
01-05-2010, 05:47 PM
The Right Side ! Do you Need The left Side?

Thanks
Would be nice to be able to do this on both sides.

NJAquaman
01-05-2010, 06:40 PM
Would be nice to be able to do this on both sides.

Great Idea! Updated it !

Thanks!

Zaiaku
01-05-2010, 06:57 PM
Yeah I already figured it out about 6 mins after I posted that inquiry. lol.

NJAquaman
01-05-2010, 07:02 PM
Yeah I already figured it out about 6 mins after I posted that inquiry. lol.

Good Job! :)

spartan1123
01-12-2010, 04:26 PM
How can it be made to highlight the current tab?

stable2
01-19-2010, 01:25 AM
Just what I was looking for! Installed. Thanks.

NJAquaman
01-20-2010, 10:51 AM
Just what I was looking for! Installed. Thanks.


Thank you Glad i could Help! :)

Xeon3D
01-25-2010, 02:35 AM
So anyway it can be highlighted like the rest of the original ones?

Anyone found any product/plugin/template mod that does this?

discuit
06-09-2010, 03:57 PM
Thanks chief. Well done

intruder
11-17-2010, 06:16 AM
Very nice and simple mod. How can I have the tab hovered when pointing to a internal page?

FTG LIQUID CL
01-20-2013, 10:59 AM
THANKS...WORKS GREAT!!