![]() |
Navbar button question
Here's a link to my site.
Question: I have buttons to my various forums on my navbar, but when in these forums only the main FORUMS button stays selected (such as when you're in Tips Archive or Buy & Sell). Other buttons work as they should. How can I make each button stay selected when in the respective forum? I'll bet whizkid Lynne will know how to fix this! :) |
You make them active by creating conditions that say "if on this page, then this one is selected". I don't know how you added them, but I know if you read my article about adding them via a plugin, then that plugin includes the condition line (that you would need to change depending on your own tab).
|
Lynne: I added code I found in a post on vb.com to add a few buttons to my navbar, but I think the problem is the definitions.
If my navbar buttons link to forums, do I need to define them in forumdisplay.php? I made a plugin per your instructions and got it to correctly link to forumdisplay.php?6, but the button doesn't stay selected when in that forum. I think I'm just one or two steps away from making this work correctly. |
If the button isn't staying selected in that forum, then your condition is not valid to make it stay active. What condition did you use that is *unique* to that page?
|
I used your plugin instructions and it worked beautifully! Thank you so much for what you do and for your support.
I did find one bug...I tried to make links for Who's Online and PM's and it produced an error when an apostrophe is used. Not a big deal at all but I thought I'd mention it in case someone else has trouble and thinks they accidentally screwed up the code somewhere (like I thought I did). |
Quote:
What\'s New PM\'s |
Thank you, Lynne. My apologizes for saying it was a bug!
|
All times are GMT. The time now is 11:51 PM. |
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:
|