Announcement

Collapse
No announcement yet.

Problem With Navbar Links & Highlighting the Correct Tab

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LenKaiser
    replied
    I'm needing the code for what the original poster was trying to do. Does anyone have the plugin to make the tabs highlight with the correct CMS pages?

    Leave a comment:


  • Redrum81
    replied
    Originally posted by kh99 View Post
    Try entering "album" (without the quotes) in the Tab Script(s) entry for that tab.
    That did it. Thank you!

    Leave a comment:


  • kh99
    replied
    Try entering "album" (without the quotes) in the Tab Script(s) entry for that tab.

    Leave a comment:


  • Redrum81
    replied
    Bump. Anything?

    Leave a comment:


  • Redrum81
    replied
    I'm having this same issue. I want a tab for my Photo Albums so they are more prominent on the site. I can get the initial tab to high light but once you click on any sub links or photos etc it goes back to highlighting the Forum tab instead. Is there a way to fix this? My forums are located at: http://4wheeler.ca/forum.php

    I've turned the Photo Album tab off for now because I don't want to display it until I can get this working how I want.

    Leave a comment:


  • zero477
    replied
    Originally posted by kh99 View Post
    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.
    Hello kh99,

    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,
    Eddie

    Leave a comment:


  • spencerp
    replied
    Originally posted by kh99 View Post
    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).
    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!

    Leave a comment:


  • kh99
    replied
    Originally posted by spencerp View Post
    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.
    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).

    Leave a comment:


  • spencerp
    replied
    Originally posted by kh99 View Post
    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).
    Yeah, I've also noticed that when not even clicking on one of those tabs... and just going into random forums... the first "forumdisplay" (this_script) tab gets selected too lol! I had used the sstab_advanced_205 plugin before, but was having some issues with that too. I'll check out that plugin/modification you linked there once.. see what that does. Thanks man!

    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.

    Leave a comment:


  • metalguy639
    replied
    Originally posted by kh99 View Post
    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.
    Thanks the idea you had works perfectly

    Leave a comment:


  • kh99
    replied
    Originally posted by spencerp View Post
    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.

    Leave a comment:


  • spencerp
    replied
    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
    Originally posted by kh99 View Post
    Try editing that tab in the navigation manager and setting "Append 'tabid' to URL" to yes.
    This seems to work, but the tabid on url looks messy lol

    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.

    Leave a comment:


  • kh99
    replied
    Originally posted by metalguy639 View Post
    Look at the screen shot I placed, I have already ticked this to yes.
    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.
    Last edited by kh99; Fri 27 Jul '12, 7:25am.

    Leave a comment:


  • metalguy639
    replied
    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 - - -

    Originally posted by kh99 View Post
    Try editing that tab in the navigation manager and setting "Append 'tabid' to URL" to yes.
    Look at the screen shot I placed, I have already ticked this to yes.

    Leave a comment:


  • kh99
    replied
    Originally posted by metalguy639 View Post
    There is no THIS_SCRIPT value as this is a static page I made in the CMS.

    Try editing that tab in the navigation manager and setting "Append 'tabid' to URL" to yes.

    Leave a comment:

Related Topics

Collapse

Working...
X