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

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
  #172  
Old 01-13-2009, 01:16 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on 3.8?
Reply With Quote
  #173  
Old 01-13-2009, 04:47 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 dmknights View Post
Will this work on 3.8?
Did you read the post prior to the post you made?
Reply With Quote
  #174  
Old 01-19-2009, 12:40 AM
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
Posts: 584
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i make a dropdown?
Reply With Quote
  #175  
Old 01-25-2009, 04:46 AM
TC Topps TC Topps is offline
 
Join Date: Jan 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attroll:

First I tried inserting $navbar2 into a couple locations within navbar template. It worked in that the additional navbar appeared on the page shown. (*Important in that I am not qualified to judge any other programming issues.)

But I did find that the drop down arrows replicated themselve on what ever navbar was first on the page. So if I but navbar2 in 2 other locations then 3 drop down arrows would appear on the one navbar. So I edited out the additional $navbar2 statements from the vbulletin navbar template.

So then I made a renamed a copy of the product-navbar2.xml file and then edited thru out file to remove navbar2 with a simple replacement of navbar4.

This did not solve the problem. Same thing! I am sure that I am not making a complete difference in the files. Are they sharing the same table or what? I tried tinkering with date created but that was all. Is there another spot that this $navbar4 could go and not conflict with $navbar2?

I of course uploaded it thru product manager as it shows up as a product named Navbar4.

What do I need to do to make this new file a new product? (navbar4) Or is it just the placement of it?

My custom skins do not show the original navbar info on them as does Default skin. So this is a simple approach for me to solve some of this problem. What I would really like to do is put an original navbar from Default on same pages as NavBar2 in the custom skins.

Thanks for your help. Its been fun.

TC Topps
Reply With Quote
  #176  
Old 01-25-2009, 05:59 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, sorry but that confused me. Let me get this right.

What you are saying is that when you install the navbar2 as a plugin you get multiple drop down arrows on the original navbar?

Are you trying to install more then one instance of navbar2?
Reply With Quote
  #177  
Old 01-25-2009, 03:58 PM
TC Topps TC Topps is offline
 
Join Date: Jan 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attroll;

If I only edit one time in navbar template for one insidence of navbar2, then of course there are no problems.

I am exploring other options as I would want another navbar because my custom skins do not have the same navbar as Vbulletin Default skin.

So I tried adding $navbar2 to a couple locations in navbar template. The additional navbars appear as $navbar2, but the first one has all of the additional drop downs arrows.
(Not a problem of your hack!)

I only have one installation of the product-navbar2.xml running. So I am wondering how could I have

1) Another navbar like yours (such as a Navbar4)

or

2) How might I make a replication of the first Default vBulletin Navbar?

Is this to much of a task for a simple edit of an exsisting file such as product_navbar2.xml; or is it a much larger project than making an edit to create a separate navbar such as navbar4?

Hope that helps. I really like the neat clean way that Navbar2 installs.

Thanks again for for your reply,

TC Topps
Reply With Quote
  #178  
Old 01-25-2009, 04:47 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be able to create multiple drop down navbars. I have done it. The only problem you will run into is the same variables being used in each navbar start screwing up the other navbars just like what you are seeing.

You could do this two different ways. You could edit the navbar2 template differently for each style but going into each styles template "navbar2".

Or

If you going to have a navbar2, navbar3, navbar4 ect..
Then you going to have to change the variable for each one. The one that comes to mind is the one in each template of "navbar2, navbar3, navbar4" that you create.

If you look in the navbar2 template, for every dropdown instance you will see two mentions of the variables "#dropdown1" and "#dropdown2", ect.

For each additional navbar template you create you will have to change these variables to something else. For example in a navbar3 template will have to change every instance of "#dropdown1" to maybe "#dropdown10" and #dropdown2" to maybe "#dropdown20", ect.

I hope this made some sense to you.
Reply With Quote
  #179  
Old 01-25-2009, 05:30 PM
TC Topps TC Topps is offline
 
Join Date: Jan 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to Attroll;

I'll get back. I think that makes sense.

Yes, Yes, this works great for replicating a Navbar 2. Remember I edited an original unloaded product-navbar2.xml by simply replacing the word navbar2 with navbar4. Saved file as product-navbar4.xml and then reloaded product and it appears as a Navbar4 template.

Then I edited the original vB Navbar with the $navbar4 statement for the prefered placement on the page. It does the trick. Also we did the changing of the original variables in the new template Navbar4 from dropdown1, dropdown2 and dropdown3 to dropdown41, ..42, and ..43. Bingo! search for dropdown. You will find them.

Since I named my new template Navbar4 when I edited the old dropdown variables, I added 4 to each new dropdown variable to keep it straight. I may go back and do the same for Navbar2, but not neccessary.

Great I did something! Ha! Ha!

TC Topps
Reply With Quote
  #180  
Old 01-25-2009, 05:58 PM
TC Topps TC Topps is offline
 
Join Date: Jan 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attroll;

Thanks for the lead on the variable dropdowns inside an edited navbar2 file. That helped alot. Wow!

How about the replication of the original vb Default Navbar!

Or is this much more difficult?

Thanks,

TC Topps
Reply With Quote
  #181  
Old 01-25-2009, 06:07 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean by replication. Do you want another separate navbar identical to the vb Default Navbar?
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 06:13 AM.


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.08009 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (10)bbcode_code
  • (1)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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