Version: 1.00, by attroll
Developer Last Online: Mar 2023
Version: 3.0.0
Rating:
Released: 05-15-2004
Last Update: 06-05-2004
Installs: 126
Uses Plugins Template Edits
No support by the author.
Dispite what category this is in it works with vBulletin 3.5. Just read the directions.
What this does is create another navbar with drop down menu?s by typing $navbar2 in any of your templates. It is just like the one that comes with vBulletin 3.
After seeing a lot of replies about users wanting another navbar besides the basic one that comes with vBulletin. I waited for someone else to write one. But no one stepped forward and wrote one. I wanted this for my site and got tired of waiting for someone else to write it. So I played around and created this one for myself. I though I would share it with everyone.
Note: If you do not want to add a separate navbar template you can also substitute the steps in 5A through 5D and insert the navbar2.txt after you have edited it the way you want and into the same places as I mentioned for the $navbar2 in your default navbar and you will not have to do any of these other steps.
I put a lot of description tags in the HTML file 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 navbar.
1. To install this hack you will have to create a template in you ADMINCP and call it ?navbar2? and insert the contents of the attached file "navbar2.txt" into this template file. Right now it is set up for my site. So you will have to modify it to what you want in this navbar for your site.
2. Put the following command in your phpinclude_start template:
2A. This is for users that have vB 3.5 and up. Step 2 will not work because the phpinclude_start template no longer exist in versions 3.5 and higher. So for 3.5 users ignore step 2 and use 2A.
3. Now put the following command in you header or what ever template where your want the new navbar to be displayed (samples of where to put them are in the attached photos and directions are in 5A, B, C, D.):
PHP Code:
$navbar2
4. Since the template is uncached you will have an extra query on each page. To fix, open global.php
Find:
PHP Code:
// misc useful
Add below:
PHP Code:
'navbar2',
5A. Under current Navigation / Breadcrumb Templaters - navbar:
Find:
Code:
<!-- / nav buttons bar -->
Below that place:
Code:
$navbar2
5B.On top of forums tables:
Find:
Code:
<!-- / PAGENAV POPUP -->
</if>
Below that place:
Code:
$navbar2
5C.Under your header:
Find:
Code:
<br />
<!-- breadcrumb, login, pm info -->
Above that add:
Code:
$navbar2
5D.Top of current navbar:
Find:
Code:
<!-- breadcrumb, login, pm info -->
Under that add:
Code:
$navbar2
vBadvance CMPS using vB 3.5 or higher. To get this working with the homepage you will have to do the following.
Go into your ADMINCP-->vBa CPMS-->Default Setting-->Portal Output Global Variables and add navbar2 in the block there and save it.
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;
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Installed very easily, thanks. Everything is working great EXCEPT one tiny thing. On my navbar(s) the double navbars show up on everything that is there when you click on it except New Posts. Where and what would I need to edit to get the double navbar to show up when the new post results show up. Web site is www.internetcheaters.com
Installed very easily, thanks. Everything is working great EXCEPT one tiny thing. On my navbar(s) the double navbars show up on everything that is there when you click on it except New Posts. Where and what would I need to edit to get the double navbar to show up when the new post results show up. Web site is www.internetcheaters.com
Trickle
It should show up on new post results and long as there are new posts. I have found if there are no new post and you get the following message it does not show up
Quote:
Sorry, there are no new threads to view.
You may search for threads updated during the previous 24 hours, here.
If anyone knows the answer to this please let me know. I will include it in the install instuctions if we can figure it out.
That message is default for the 3.5 vBulletin software. Real handy if you ask me if you had to go idle for a period of time and the new posts were marked as old. It has nothind to do with any hack.
I can tell because it also appears to me and it's workign fine with me when I have new posts to read, and the forum displays that when not.
Though if this sin't the case, maybe a screenshot of a more specific description would help
BTW Attroll, I changed my AIM user name in case you want to contact me for any reason (The Edrick)
It should show up on new post results and long as there are new posts. I have found if there are no new post and you get the following message it does not show up.
Yup your absolutely correct. When I check for new posts and there are none the double nav bar does not show up. BUT I just made a test post then checked for new posts and the double nav bar DOES show up now. So being new and green to all of this I would have to find the templete that notify's there are no new post and add the double nav bar to that?
Be gentle I'm no coder and very new to all of this.
Maybe the place to look at is the other navbit templates. You can do soemthing to find out, in the vBulletin options, General options, and you'll see an option that says: Add Template Name in HTML Comments
Enable that ption, and go to the messgae page, chech the source code, and find the name of the template, once you do this, you'll know where to add the $navbar2 variable in the template.
I'll try this out.
EDIT:
In the STANDARD_ERROR Template something must be edited in order for it to get the navbar2 working, but I'm sure the error templates must be modified for this to work. I'll keep further investigation
I don't think it is in the stardard error template. The template is calling for the $navbar. The $navbar2 is within the navbar template. I think it has to do with the navbar plugin. Maybe the hook location. I have tried different hook locations with no success. So maybe there hook locations do not work with the standard error template.
It should show up on new post results and long as there are new posts. I have found if there are no new post and you get the following message it does not show up
If anyone knows the answer to this please let me know. I will include it in the install instuctions if we can figure it out.
In v 3.0.x: Just open the STANDARD_ERROR template, and add $navbar2around the $header line somewhere depends where you want to see it. You may also need to add $navbar to the same template.
That will fix the problem, as the navbar template is not included as standard (with v3.0.x) when an error screen is displayed.
In v 3.0.x: Just open the STANDARD_ERROR template, and add $navbar2around the $header line somewhere depends where you want to see it. You may also need to add $navbar to the same template.
That will fix the problem, as the navbar template is not included as standard (with v3.0.x) when an error screen is displayed.
I had already tried this in vB 3.5 and it will not work. It displays two nabars. Any other ideas or suggestion would be appreciated.
I've installed this and every thing works fine except the links in the navbar2 on my cmps home page. It shows the items such as FAQ(which I have put on it) that it's looking for it in the wrong folder.
Says in the properties that the path is mysite/faq.php
When clicked on it brings up
Quote:
The requested URL /install/install.php was not found on this server.
I've checked cmps and it has the navbar2 being looked for there. I even went and installed navbar2 on my bottom.php file for the cmps as suggested earlier in this thread. Any help would be appreciated. Thanks.