Version: 1.02, by attroll
Developer Last Online: Mar 2023
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.
There is one more place I have an issue of the navbar2 not showing up.. When you click new posts and there are no new posts, You get the message
"Sorry, there are no new threads to view.
You may search for threads updated during the previous 24 hours, here."
No navbar2... I tried Mike's plugin to see if it would show up with this.. It didn't work. It also makes my mood manager hack in the navbar disappear. So I removed that
Arcade and cmps work great though by doing what you suggested, tyvm.. Any idea on the 'no new posts' page?
Dear attroll ,
I do know that we have several ways to out the $navbar2 variable in the global field of vBA or PhotoPlog. Surely it works also, but a long time before, I put lots of Navbar code into the TMS. Later I noticed that my navbar code was totally overloaded. So I decided to write my own Hack regarding a second navbar. While using TMS I never got any problems regarding the global variables in my navbar. After removing the navbar code of TMS I saw that problem and I solved it with that Plugin I mentioned. That was the reason too after I saw your Thread here so I thought to tell you how I solved that problem at that time -Mike
Thank you very much for you help Mike-D. I was in a hurry when I last replied and did not have time to test it out. I have upgraded the hack and made the changes you recommended. They fixed all the missing locations where the navbar2 was not showing up. I can not speak for Arcade and PhotoPlog but I will take your word for it. I thanked you in the mode description.
There is one more place I have an issue of the navbar2 not showing up.. When you click new posts and there are no new posts, You get the message
"Sorry, there are no new threads to view.
You may search for threads updated during the previous 24 hours, here."
No navbar2... I tried Mike's plugin to see if it would show up with this.. It didn't work. It also makes my mood manager hack in the navbar disappear. So I removed that
Arcade and cmps work great though by doing what you suggested, tyvm.. Any idea on the 'no new posts' page?
I just upgraded the zip file and if you download it and re-import the product and overwrite it then this should fix the problem of the navbar2 not showing up when there are not search results.
I just upgraded the zip file and if you download it and re-import the product and overwrite it then this should fix the problem of the navbar2 not showing up when there are not search results.
You completely and totally rock...
I know it was minor but one of my forum users in particular complained about it a lot... My wife.. lol
It should be the same as your default navbar. Did you change anything in you navbar2 template after you installed it?
Well, I had to tweak it a bit to get the border style to match my other one. I probably screwed something up since I don't quite know XML that well - I'm a copy/paste hack.
Here's what I currently have:
Code:
<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
Well, I had to tweak it a bit to get the border style to match my other one. I probably screwed something up since I don't quite know XML that well - I'm a copy/paste hack.
Here's what I currently have:
Code:
<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
Try this and let me know if it works. I just did it and it worked for me.
Code:
<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
If it works I will update the XML file again in this hack.