Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
NJAquaman - [CMS] Sub Nav Tabs Drop Down Details »»
NJAquaman - [CMS] Sub Nav Tabs Drop Down
Version: 1.2, by NJAquaman NJAquaman is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.0.x Rating:
Released: 01-04-2010 Last Update: Never Installs: 25
Uses Plugins
Re-useable Code Translations  
No support by the author.

What: A Simple [CMS] Sub Nav Tab Plugin to Add a Sub Nav Tab Drop Down to the [CMS] 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 : CMS Sub Nav Tab Drop Down
Execution Order : 5

3) Insert the Code;

For Tabs On the Right Side Use This Code:
Code:
$template_hook['vbcms_navbar_end'] .= '
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Browsers</a>
<ul class="popupbody">

<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.yahoo.com">Yahoo</a></li>
<li><a href="http://www.bing.com">Bing</a></li>
				
</ul>
</li>
';

For Tabs On the Left Side Use This Code:
Code:
$template_hook['vbcms_navbar_start'] .= '
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Browsers</a>
<ul class="popupbody">

<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.yahoo.com">Yahoo</a></li>
<li><a href="http://www.bing.com">Bing</a></li>
				
</ul>
</li>
';

4) Save , Now you Have a CMS Sub Nav Tab Drop Down!

Notes:
- "Browsers" is the Sub Main tab name
- To Create More Tabs Duplicate it in the Same Code
- YOU MAY Duplicate it in the same Plugin
- You can use both Left and Right codes at the same time!


Screen Shot!

2010-01-05_131921.gif



DONT FORGET TO CLICK INSTALL


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

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



Here Are Some Other Versions:

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-17-2010, 04:08 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ascott View Post
I added this to my forum and it's totally destroyed my layout, all I get now is a white background with text, no theme at all.
This has Been Thoroughly tested on numerous sites. Here are some tips on Making it work;
- If your navbar templates are customized then it will not work.
- Please Copy the Code correctly
- Read the directions carefully
- Remember this is not a template edit , its a Plugin!
- Disable the Plugin and find whats wrong !

Thanks

Let me know if you need any help on your site ~!
Reply With Quote
  #13  
Old 01-17-2010, 04:14 PM
ascott ascott is offline
 
Join Date: May 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forget that, it's back now. Though I did notice it happened to a lot of other vBulletin sites at the same time???
Reply With Quote
  #14  
Old 01-17-2010, 04:15 PM
ascott ascott is offline
 
Join Date: May 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks NJAquaman, but even the vBulletin site looked if it had a similar problem. Seems to be OK now.
Reply With Quote
  #15  
Old 01-17-2010, 04:58 PM
ascott ascott is offline
 
Join Date: May 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know it's not the right place to say so but I tried the main nav tabs and it done the same, white BG with only text.
Reply With Quote
  #16  
Old 01-19-2010, 12:15 PM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ascott View Post
I know it's not the right place to say so but I tried the main nav tabs and it done the same, white BG with only text.
This might be a problem with you Browser or your Computer if they are all doing it !

Let me know if you need help !

Thanks
Reply With Quote
  #17  
Old 01-19-2010, 06:35 PM
ascott ascott is offline
 
Join Date: May 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's likely my own fault to why it's not showing right.
When I add the plugin it works OK but when I change the links that you have set in it to my own, then it goes all wonky
Reply With Quote
  #18  
Old 01-20-2010, 10:50 AM
NJAquaman's Avatar
NJAquaman NJAquaman is offline
 
Join Date: Feb 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ascott View Post
It's likely my own fault to why it's not showing right.
When I add the plugin it works OK but when I change the links that you have set in it to my own, then it goes all wonky
Awesome ,
I am Glad i could help , and that my plugin works for you !
Enjoy!

Thanks
Reply With Quote
  #19  
Old 01-21-2010, 08:23 AM
dangerin's Avatar
dangerin dangerin is offline
 
Join Date: Dec 2009
Location: italy
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also to me it do not work correctly.
i use simpleblack style and vb 4.0.1 and i've created the plug in how instructions but it do not appear nothing.
what i've done not correct?
Reply With Quote
  #20  
Old 01-21-2010, 02:23 PM
dangerin's Avatar
dangerin dangerin is offline
 
Join Date: Dec 2009
Location: italy
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was very happy to see this mod but it do not work and i've done all correctly.
I use Vb 4.0.1

can you help me ?
Reply With Quote
  #21  
Old 01-06-2011, 06:20 PM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly on 4.0.6.

Thank you for this, NJAquaman.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:35 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.04621 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete