Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Additional navbar with dropdowns Details »»
Additional navbar with dropdowns
Version: 1.02, by attroll attroll is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.5 Rating:
Released: 12-25-2007 Last Update: 06-29-2008 Installs: 306
Uses Plugins Template Edits
 
No support by the author.

After upgrading and supporting my 3.0.0 and 3.5.3 version of this hack, I have decided it was time to step into the plugin world to make this easier for people to use.

Despite what category this is in it works with vBulletin 3.0 up to the most recent version of 3.8.

What this does is create another navbar with drop down menus by typing $navbar2 in any of your templates. It is just like the navbar that comes with VB.

I put a lot of description tags in the navbar2 template that gets installed to help explain what everything does. Once you understand what is going on here you can removed these. With very little modifications you can add to, remove or move items around in this additional navbar.

Upgrade
To upgrade you will want to reimport this XML file and edit your options accordingly.



1.02
  • Tweak it a bit to get the border on the top of the navbar. There was not boarder on the top of the navbar in the previous version. It was not really noticeable unless you have the navbar directly below the header area.
1.01
  • removed the plugin with the Hook "parse_templates" because it was not need.
  • Added plugin with the Hook ?global_start?, this will work with, PhotoPlog, vBAdvanced, Arcade. This will alleviate having to manually add code in the php files as was required in the past.
1.00
  • Initial release.
To install the this
1. Download the zipped file.

2. Unzip the file.

3. Import the product-navbar2.xml into your Plugins & Products? Manage Plugins.

4. Next you will have to decide where you want the navbar2 to be displayed. I have included a few options below.

5A. Under current (original) Navigation bar:
Find:
Code:
<!-- / breadcrumb, login, pm info -->
Below that place:
Code:
$navbar2
5B. On top of forums tables:
Find:
Code:
<!-- / PAGENAV POPUP -->
</if>
Below that place:

Code:
$navbar2
5C. Top of current navbar:
Find:
Code:
<br />
<!-- breadcrumb, login, pm info -->
Above that add:

Code:
$navbar2
5D. Under your header:
Find:
Code:
<br />
<!-- breadcrumb, login, pm info -->
Below that add:

Code:
$navbar2
5E. Under VB navbar:
Find:
Code:
<!-- / nav buttons bar -->
Below that add:
Code:
$navbar2
Note:
This should now work with vBAdvance CMPS, Arcade, PhotoPlog with no other modifications. Many thanks to Mike-D for his help with this.

Show Your Support

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

Comments
  #2  
Old 12-26-2007, 01:34 AM
SwollenCranium's Avatar
SwollenCranium SwollenCranium is offline
 
Join Date: Oct 2007
Location: Raleigh, NC
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks !
Reply With Quote
  #3  
Old 12-26-2007, 04:22 PM
ssvp's Avatar
ssvp ssvp is offline
 
Join Date: May 2006
Location: Bloomington, IL
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick Question.. Might be unrelated but where in the style do you find the options for the dropdown offsets? My dropdowns are about an inch to the left of the drop down navbar item?
Reply With Quote
  #4  
Old 12-27-2007, 04:20 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssvp View Post
Quick Question.. Might be unrelated but where in the style do you find the options for the dropdown offsets? My dropdowns are about an inch to the left of the drop down navbar item?
It depends on how many links you have in your navbar2.

Here is an example of a navbar2 with three links and how it works.
If you only have three links, what it does is divide your navbar2 up into three somewhat event portions. Then when you click on a link that has a drop down menu, what it does is place your drop down menu in the start of that portion of the navbar2 where that link starts. I hope this makes a little sense.

To try and better see what I mean go into you navbar2 template and look at the third line. You will see a line that looks like this:
Code:
           <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
In that line change border="0" to border="4" and save the template. Now when you look back at you navbar2 you will see the border and see what I mean about it placing the box to the far left of that portion of the navbar2 that the link is in.

I tried finding a way around this and making it center to the portion of the navbar that the link is in but I could not figure it out. I believe it is in the javarscript that is doing that.
Reply With Quote
  #5  
Old 12-27-2007, 10:15 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I used to use your old one until I got my new skin, it didnt seem to like it however I will give this one a go again, and see if my skin likes it better now. Thanks
Reply With Quote
  #6  
Old 12-27-2007, 04:34 PM
AWMGolfer AWMGolfer is offline
 
Join Date: Dec 2007
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am completely new to vBulletin so I'm still getting used to how it all works compared to the other forums I have used. I have installed this but where do I go to actually insert the location of navbar2, is it put in a file or somewhere else? Thanks for all the help to this newbie

I got it figured out!!
Reply With Quote
  #7  
Old 01-10-2008, 11:34 PM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't install the product, getting this vb message:

XML Error: XML_WAR_UNKNOWN_VERSION at Line 117
Reply With Quote
  #8  
Old 01-12-2008, 05:51 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to say that its working great apart from in a few sections of my forum.

Im running ibProArcade and when you enter the arcade the navbar does not show.
Im also using VbAdvance CMPS - Ive added the navbar2 into the global variables, however the drop down links dont show.

Apart from that it works nicely
Reply With Quote
  #9  
Old 01-12-2008, 06:46 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by powerful_rogue View Post
Just wanted to say that its working great apart from in a few sections of my forum.

Im running ibProArcade and when you enter the arcade the navbar does not show.
Im also using VbAdvance CMPS - Ive added the navbar2 into the global variables, however the drop down links dont show.

Apart from that it works nicely
I know this worked for someone else. You may want to try this.

Arcaded hack. You will need to go into your darcaded hack and edit a line. Here are the directions:
Go to you arcade/functions/functions.php
open it with a text editor:

Find:
Code:
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox;
global $forumjump, $timezone, $logincode, $_USEROPTIONS, $scriptpath, $admincpdir, $modcpdir, $quickchooserbits;
Replace with:
Code:
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox;
global $forumjump, $timezone, $logincode, $_USEROPTIONS, $scriptpath, $admincpdir, $modcpdir, $quickchooserbits, $navbar2;
Also try setting you default CMPS settings to Process PHP File Modules Within A Function to YES.
Reply With Quote
  #10  
Old 01-12-2008, 10:12 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply

The arcade alteration worked a wonder. Thank you

Ive checked my CMPS setting and already had it set to yes.:erm: - Any other ideas at all?
Reply With Quote
Reply

Thread Tools

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 08:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07500 seconds
  • Memory Usage 2,311KB
  • Queries Executed 23 (?)
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
  • (13)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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