The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Additional navbar with dropdowns Details »» | |||||||||||||||||||||||||
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
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 --> Code:
$navbar2 Find: Code:
<!-- / PAGENAV POPUP --> </if> Code:
$navbar2 Find: Code:
<br /> <!-- breadcrumb, login, pm info --> Code:
$navbar2 Find: Code:
<br /> <!-- breadcrumb, login, pm info --> Code:
$navbar2 Find: Code:
<!-- / nav buttons bar --> Code:
$navbar2 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
|
Comments |
#82
|
||||
|
||||
Quote:
got to this location in you navbar: Code:
<!-- / breadcrumb, login, pm info --> Code:
<!-- / nav buttons bar --> |
#83
|
||||
|
||||
Yes this could be done with some coding changes.
|
#84
|
|||
|
|||
Quote:
Thankyou very much Sort of done that hack along with a bit of moving links between navbar and navbar2 to get what I wanted, but works a treat. Top Job |
#85
|
|||
|
|||
Hi everybody,
I have installed this hack but I have a problem now. The extra navbar appears in all sections but not in the Arcade section. Here appears: http://www.foromotos.com/ But not here: http://www.foromotos.com/arcade.php? How can I resolve it? Many thanks. GREAT HACK!!. |
#86
|
||||
|
||||
Quote:
|
#87
|
|||
|
|||
Sorry, I didn´t see it.
Many thanks!!. |
#88
|
|||
|
|||
I just happened to see that Thread and some Posts regarding the problem, that the extra navbar doesn't appear in all sections (PhotoPlog, vBAdvanced, Arcade...). My Code is different than yours but I still use the same Plugins. What you have to do is as follows...
Create an new Plugin with the Hook "global_start" and its Code as below... HTML Code:
<plugin active="1" executionorder="5"> <title>navbar2 plugin part #2</title> <hookname>global_start</hookname> <phpcode><![CDATA[$insert = '$navbar2'; // Insert above Info into Template 'navbar' $vbulletin->templatecache['navbar'] = str_replace($insert,$insert.fetch_template('navbar2'),$vbulletin->templatecache['navbar']);]]></phpcode> </plugin> After you should remove the Plugin with the Hook "parse_templates" because it doesn't need anymore. Now it works in all sections |
#89
|
||||
|
||||
Quote:
The vBAdvance CMPS all you have to do it add ?navbar2? to the Portal Output Global Variables in the control panel. It is pretty much the same for the arcade. You only have to add ?$navbar2? to your arcade/functions/functions.php. I can not speak for PhotPlog because I have never heard anyone complain about that one so I have never had a reason to look into it. I know in the older versions of this hack that I made placing this code in ?global_start? did not fix the problem and that is why I switch hook location. If someone with arcade wants to verify this by removing ?$navbar2? from there arcade/functions/functions.php and then adding this code I will rewrite the plugin and add this code to it. Like I said in the past though this would not work in previous versions so before adding the code again to the plugin I would need someone else to verify it. It is not that I do not trust you. I just want a second person verifying this before I add the code to this hack because I do not have arcade on any of my sites. My sites are not gaming sites. |
#90
|
|||
|
|||
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 |
#91
|
|||
|
|||
What controls the height of the additional navbar? My navbar2 is thicker (taller) than my original navbar. Have a look: http://www.clutchfitness.com
I would like to have it the same size. Please help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|