I'm using the built in navigation system for vb 4.2 P1. I have a custom tab that I created in the navigational manager and then I have links to that tab that I created. The problem I have is that when I click on one of the links to that tab it opens the page for the link fine but the tab that the link is associated with is not highlighted. Instead it highlights the default tab which is my "Home" tab. I have not made any changes to the navbar template at all. How do I get the links to correspond with the tab that are supposed to be a part of?
Problem With Navbar Links & Highlighting the Correct Tab
Collapse
X
-
-
-
There is no THIS_SCRIPT value as this is a static page I made in the CMS.
I followed the following steps...
1. I created a new section in the CMS called "Portfolio"
2. I made sure to tick the "Published" link in the drop down.
3. Then I created 2 new categories for my section. "vBulletin 3.X" & "vBulletin 4.X".
4. I created a new static page for the portfolio for the category and published the page.
5. I then created the portfolio tab in the navigational manager. I have the settings that I made for it in the screenshot below.
6. Then I created the links "vBulletin 3.X" & "vBulletin 4.X" with the following settings.
Now when I click on the "Portfolio" link in the tabs this is what I see...
As you can see the tab works just fine on this page and is acting according to how it should be. But when I click on one of the links...(shown below)
The "Portfolio" tab is no longer highlighted and its just the "Home" tab that is now highlighted. I want the "Portfolio" tab to be highlighted when I click on the secondary links for that section.
You can see the "Home" tab highlight here and you can see that I'm in the portfolio category I created below...
Comment
-
Enter the THIS_SCRIPT value in the 'Tab Script(s)' fieldComment
-
Seriously? I just said there is no THIS_SCRIPT for this. Its NOT a SCRIPT, its not photopost or something like that. So I do not understand what THIS_SCRIPT has to do with this. I made the page INSIDE/WITH the vBulletin CMS. What is the THIS_SCRIPT value for a page made with the vb CMS?
- - - Updated - - -
Look at the screen shot I placed, I have already ticked this to yes.Comment
-
Edit: I think I figured out something that works but I don't want to post it here since it would be considered a modification. I'll PM you.Last edited by kh99; Fri 27 Jul '12, 7:25am.Comment
-
I was just going to post about this issue myself. Every time I made new tabs in Navigation Manager, it doesn't highlight the tabs. However, the built-in "Forum" and "What's New?" tabs work fine... Doesn't make any sense why the new tabs don't work...
- - - Updated - - -
Enter the THIS_SCRIPT value in the 'Tab Script(s)' field
Another edit, i added another URL and did those two things suggested and that tab isn't highlighted..
- - - Updated - - -
I've seemed to found solution in this thread... https://www.vbulletin.com/forum/show...=1#post2299824 which Old Git basically pointed to thread about it: https://www.vbulletin.com/forum/show...wing?p=2315700
- - - Updated - - -
Wait lol I did find a little snag though, when putting "forumdisplay" in there for "Tabs Scripts".. and I have two tabs, linking to separate forums of course... It highlights the FIRST tab properly.. but when clicking second tab for another forum itself.. it just keeps first forum tab link highlighted...Last edited by spencerp; Fri 27 Jul '12, 10:37am.Comment
-
Wait lol I did find a little snag though, when putting "forumdisplay" in there for "Tabs Scripts".. and I have two tabs, linking to separate forums of course... It highlights the FIRST tab properly.. but when clicking second tab for another forum itself.. it just keeps first forum tab link highlighted...
Yeah, you can't list the same THIS_SCRIPT value in more than one tab, because when you go to that page the code won't know which one to select (it will select the first one it finds). You either need to use "add tabid to url" and live with that, or else write a plugin. There's an example plugin in this thread: www.vbulletin.org/forum/showthread.php?t=283498.
There's also this mod on vbulletin.org: www.vbulletin.org/forum/showthread.php?t=283123 that adds more controls for the navigation manager (but I haven't tried it myself and I'm not sure if it will solve your problem, but you might want to look at it).Last edited by kh99; Fri 27 Jul '12, 12:25pm.Comment
-
Yeah, sorry, that's pretty much as bad as not reading the thread at all. Anyway, I think you'd need a plugin to do that, and I tried to write one for you but I don't know how you'd check for your "vBulletin 3.X" and "vBulletin 4.X" pages.
Edit: I think I figured out something that works but I don't want to post it here since it would be considered a modification. I'll PM you.Comment
-
Yeah, you can't list the same THIS_SCRIPT value in more than one tab, because when you go to that page the code won't know which one to select (it will select the first one it finds). You either need to use "add tabid to url" and live with that, or else write a plugin. There's an example plugin in this thread: www.vbulletin.org/forum/showthread.php?t=283498.
There's also this mod on vbulletin.org: www.vbulletin.org/forum/showthread.php?t=283123 that adds more controls for the navigation manager (but I haven't tried it myself and I'm not sure if it will solve your problem, but you might want to look at it).
PS: And with that "forumdisplay" (this_script) option for tabs for forum link/tabs... they also had the tabid's attached to them as well and it's still quirky, guess cause like you said.. it's the same "this_script" being used more than once.Comment
-
Having a tabid on the url should override the this_script setting, but only when you click on the tab - setting "add tabid" for a tab won't do anything if you browse to the forum in a different way (but the this_script setting or a plugin can).Comment
-
Thanks! I removed the "forumdisplay" This_Script from those "forum link tabs" ... and just left "tabid" on it, and they all select properly now.. and when browsing into other random forums, the "home/forum/index" is still selected like normal. Working great now!Comment
-
Yeah, sorry, that's pretty much as bad as not reading the thread at all. Anyway, I think you'd need a plugin to do that, and I tried to write one for you but I don't know how you'd check for your "vBulletin 3.X" and "vBulletin 4.X" pages.
Edit: I think I figured out something that works but I don't want to post it here since it would be considered a modification. I'll PM you.
I have the same problem as metalguy639. I added a section in the CMS with subsections and articles ... I would like that the navbar highlights the correct tab whenever someone is in the section page, subsection pages or articles ...
Can you PM me your idea too??
Greetings,
EddieComment
Related Topics
Collapse
-
by oldz442I notice that if I create a new navtab (ie. Home - this is after renaming the default Home to 'Forum') and make the URL to the that Home tab to root of my domain (outside of the jailed /forums dir where...
-
Channel: Support Issues & Questions
Tue 4 Dec '12, 10:36pm -
Comment