View Full Version : Help with additional Navbar
chrisvonc
08-01-2004, 08:04 PM
OK, I am stuck.
I am trying the Additional Navbar hack from vB.org (http://www.vbulletin.org/forum/showthread.php?t=65198&page=1&pp=15) and for the life of me, I can get the additional bar to show up on the CMPS_index page.
It works in the forum, it just wont show up on the cmps_index. I thought maybe it was that I used the conditional to remove the welcome bar but it was not that.
Can anyone shed some light on what I am missing?
TIA
tomshawk
08-01-2004, 08:11 PM
This should work, Give it a try and let me know
In your forum/includes/vba_cmps_include_bottom.php file look for:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;
Replace that with:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $navbar2;
chrisvonc
08-01-2004, 08:54 PM
hmm.. no, still no. :(
tomshawk
08-01-2004, 09:11 PM
Can I get a link to your site?
Strange, It should work fine, with this :(
chrisvonc
08-01-2004, 10:01 PM
I am working locally and dont have it installed yet on my production site. Sorry... any files you want me to copy up for you to look at?
tomshawk
08-01-2004, 10:27 PM
Umm, well not really.
The original hack has you put some code in the phpinclude_start template
Actually
eval('$navbar2 = "' . fetch_template('navbar2') . '";');
I'd want to verify that is there.
With this snippet there, You should be able to pull the
$navbar2 into forum/includes/vba_cmps_include_bottom.php easily
I did the same with the Navbar Icon hack I have installed.
At first, it did not work on the cmps until I added the call from phpinclude_start.
so, I'm sorry to say I'm at a loss :(
chrisvonc
08-01-2004, 10:42 PM
I did make sure that was in the phpinclude_start and for some reason it works inside the forum, just cant get it to show up on the CMPS page.
tomshawk
08-02-2004, 12:38 AM
Well, I just installed it on my site to see if it works. It does
You can see it here
http://www.tomshawk.com
I have not modified it yet, so dont bother clicking anything :p
Also, I tryed it in the header and it worked. but...
I moved it to the Navbar Template, so I can get the nice circle around the breadcrumb.
Look for
<!-- breadcrumb, login, pm info -->
and add
$navbar2
just above it.
I hope you get it working, Good luck!
chrisvonc
08-02-2004, 07:26 AM
My only deviation from the directions were that I put it under the breadcrumbs so it would be directly ontop of the existing navbar. Let me give it a try in the original postion and see if it work as it should.
Thanks!
chrisvonc
08-02-2004, 08:42 AM
Ok.. got to try it and the forums are calling it OK in both postions but CMPS still wont. I also noticed that vBAdavanced Links RC 3 will not display this additional navbar either for me in either spot.
Anything else you might think of that could be blocking this?
Brian, can you think of any ideas?
Thank you again!
Popsicle Pete
08-02-2004, 12:39 PM
hey man, i was having the same problem, but then i put this line in eval('$navbar2 = "' . fetch_template('navbar2') . '";');
right above this
eval('$navbar = "' . fetch_template('navbar') . '";');
put it in the vba_cmps_includes_bottom.php file.
works perfect now :)
chrisvonc
08-02-2004, 01:01 PM
Pete, thanks for that tip, I will give it a try.
Brian
08-02-2004, 01:05 PM
Maybe I'm missing something, but what exactly is the point of this hack anyways? Could you not just modify your navbar template and add the code in there? I haven't really looked at that hack much so I may be missing something, but I was just curious why it's better to add this instead of just adding the code to your navbar template.
chrisvonc
08-02-2004, 01:30 PM
If you know what you are doing, yes I suppose simply going to town modifying the original navbar could do the trick. Unfortanatly, I am not one of those that can just sit down and do that. Something like this narrows down what I need to work with, and if I bomb it, all the native stuff is still working as it should. But you do bring up a good point, I have the code to the additional navbar component I want at home, I guess it really would not hurt to simply add it to the existing navbar.
Thanks
Popsicle Pete
08-02-2004, 02:13 PM
i want it because i want to have separate nav bars for the forums and the home page, but on the home page to have both.
it certainly accomplishes what i was looking for it to do?
yes i could do it with code, but, this is written for me :)
chrisvonc
08-02-2004, 03:22 PM
Pete, that did it! Thanks!! :)
hey man, i was having the same problem, but then i put this line in eval('$navbar2 = "' . fetch_template('navbar2') . '";');
right above this
eval('$navbar = "' . fetch_template('navbar') . '";');
put it in the vba_cmps_includes_bottom.php file.
works perfect now :)
tomshawk
08-02-2004, 03:41 PM
Strange, none-the-less congrats on getting it working ;)
chrisvonc
08-02-2004, 03:56 PM
Ahh... it didnt fix the vBA Links navbar, so after all this, I took a stab at modifiying the original navbar as Brian suggested and it worked, across all pages, all add-ons. :)
Thank you Tomhawk, Pete, and Brian!
wintermute
08-28-2004, 08:51 PM
Used the original suggestion, worked like a charm!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.