vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - NJAquaman - Main Nav Tabs (https://vborg.vbsupport.ru/showthread.php?t=232254)

NJAquaman 01-04-2010 10:00 PM

NJAquaman - Main Nav Tabs
 
1 Attachment(s)
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:
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:
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:
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!

Attachment 109193



DONT FORGET TO CLICK INSTALL


__________________________________________________ ______________
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)

v1.2 - 01.05/10
- Both Right and Left Sides (Zaiaku)

v1.1 - 01/05/10
- Added Just A Nav Tab Option With A Link (Pozo)
__________________________________________




Here Are Some Other Versions:

Main Nav Tab Drop Down
Main Nav Tab w/ Connective Sub Nav
[CMS] Sub Nav Tabs
[CMS] Sub Nav Tabs Drop Down

GamerPerfection 01-05-2010 02:12 PM

Where's the demo?

NJAquaman 01-05-2010 02:44 PM

Quote:

Originally Posted by clarkey25 (Post 1947884)
Where's the demo?

Screen-shot!
https://vborg.vbsupport.ru/attachmen...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

Quote:

Originally Posted by clarkey25 (Post 1947926)
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

Quote:

Originally Posted by Zaiaku (Post 1948013)
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

Quote:

Originally Posted by sirstone (Post 1948021)
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

Quote:

Originally Posted by NJAquaman (Post 1948020)
The Right Side ! Do you Need The left Side?

Thanks

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


All times are GMT. The time now is 03:43 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
  • Page Generation 0.01081 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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