![]() |
Additional Navbar
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: PHP Code:
Plugin System Add new Plugin Hook Location: global_start Title: navbar2 Plugin PHP Code: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: Code:
<!-- / nav buttons bar --> Code:
$navbar2 Find: Code:
<!-- / PAGENAV POPUP --> Code:
$navbar2 Find: Code:
<br /> Code:
$navbar2 Find: Code:
<!-- breadcrumb, login, pm info --> Code:
$navbar2 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; Code:
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox; |
:mad: good job sir
|
is this for vB3 O.o
|
Yes this is for VB 3.0. I have it working with 3.0 right now. This is the one I was working on this morning that you chatted with me on Zachery. Oh and thanks for the help.
|
psst its in the vB2 area ;0
|
Darn I put it in the wrong area. Can someone put this in the 3.0 area please? I do not have access to move a thread here.
|
How about a screenshot?
|
Quote:
|
Nice work sir. :)
|
I forgot to put in the description in the first post that with alterations you can put <if> statements in there so that only certain user groups can see certian items on the navbar.
|
Wow, thanks for sharing this, I'll install this soon. :)
|
|
Nice idea, however since the template is uncached you will have an extra query on each page. To fix, open global.php
PHP Code:
PHP Code:
|
simple but nice
|
Quote:
|
Brilliant simplicity! I had to disable my java-menu because it was conflicting with the vB menus. Now I can add them back in. Thanks so much!!
|
Quote:
|
|
Quote:
|
I really want this hack, but can someone show me how I would find and add the navbar like this site has it: (you see how its directly above the login and is the same size? http://www.rs25.com
I hope one of you could help me out on this :) |
Quote:
I played around with it a little and I got it to work but I have to put it in the existing $navbar. I did not try it with drop downs though. I will have to play with it some more later on and see if I can get drop downs to work like in another table within $navbar. I can not promise I will get right on it though. I am pretty buisy. |
Quote:
I put this on my test site you can go check it out if you want. I will not leave it there for long. Let me know if this is what you want. I have not messed around with making drop downs yest though. http://www.athiker.net/forum/ |
Quote:
Thanks man, just let me know how to do that exaclty like you have it their!!!!! :) |
Quote:
looks to be directly after <!-- breadcrumb, login, pm info -->, but i guess we'll have to wait and see, cause I did it, and it doesn't look anything like that. But then again, my HTML is kinda bad. :D |
Quote:
Go to your ADMINCP/Style Manager. Then in the style you want to use it in click on EDIT TEMPLATES. Go down the list until you see Navagation /Breadcrumb Templates and double click it. Double click Navbar. Find: PHP Code:
PHP Code:
If you have any problems with this let me know. |
Quote:
Cool, I got it up, but one slight problem. I have 2 bright red nav bars now. wihich is kinda hard on the eyes. Is their anyway to keep my main red one, but turn the one I just put up into like a saturated grey? I tried to put the Color="#" code in their, but didn't have any effect. |
Quote:
Where ever you see: PHP Code:
PHP Code:
Hope that helps you. |
Quote:
hmm...doesn't work. It changes the first links color then resizes it double the width, any suggestions??? |
EDIT here is what its exaclty doing: I changed them to it and it goes to the color I wan't, but the text isn't white and its wider. Is their anyway to fix this???
thanks, see attached file :) |
Quote:
I think this can be done but it would be a royal pain in the butt. Another option you might want to consider is going back to the origanl that I first gave you and replce replacing the vbmenu_control with vbmenu_option and see if the colors will work with that. You can alos try vbmenu_register. There are all set in your Style Manager |
cool, I changed it to <td class="thead">
I think it looks a lot better than 2 red bards now, what do you think? |
Quote:
|
Hi, I just installed the 2nd option you worked up for the additional navbar to be directly above the welcome panel. Very nice, thank you!
I am seeing one issue... the table border became twice at thick and is not bordered along the top edge. Any clues? This is a vB 3.0.1 forum. here is a shot of what I mean. Thanks! |
Quote:
If that is what you are talking about. I tried fixing that and could not figure it out. I will have to play with it some more. |
Oopps.. I had installed it on my local dev forum. Its now on the production site so you can see it live.
Yes, sorry I didnt explain it correctly, the line under the new links seems to be double thick. Thanks! |
Quote:
I played with that for one hour last night and could not figure it out. I think it has something to do with putting a table within a table. But can not inderstand why the bottom one does not do that. |
also i was waiting for something like this
a lot of thanks =D |
Great..Just installed... This hack helps me big time because my navbar is so hard to add anything too..
Thanks!! |
Installed - Thanks.
|
Hello,
I have been playing with this,and I placed it under my current navbar. My question is,how do I remove the space between the 2? I want them to sit directly underneath one another without any space. Currently,there is a space the width of a navbar. |
All times are GMT. The time now is 05:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|