Navigation parent not highlighted when child is clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Schmike
    Member
    • Jan 2011
    • 48
    • 4.0.x

    [Forum] Navigation parent not highlighted when child is clicked

    I've setup the navigation in my test site with a tab containing few links. However, when I click on the links, the parent tab is not highlighted. Instead, "Forum" is highlighted.

    Running on version 4.2.0.
  • TheLastSuperman
    Senior Member
    • Sep 2008
    • 1799

    #2
    What do these links... link to? A forum thread/post or other?


    Former vBulletin Support Staff
    Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
    Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

    Comment

    • Matthew Gordon
      Senior Member
      • May 2002
      • 3243
      • 1.1.x

      #3
      There are three ways to have it highlight the correct tab.
      1. First, and easiest (but most limited) is to set the "Append 'tabid' to URL" to "Yes" when editing the tab in the navigation manager. This generally will work in pretty much all cases, but any subsequent links on the actual page won't include the tabid, so you're back to the default tab for that page.
      2. If you are including whole scripts in your tab (i.e. all the social group stuff, the memberlist, calendar, faq, usercp, things like this) is to set the Tab Script(s) option to the THIS_SCRIPT value of the scripts the tab is using. In most cases, this will be the name of the script you see when browsing the page without the .php at the end. Since this page is showthread.php, the THIS_SCRIPT value would be just showthread. Seperate multiple scripts with a period, e.g.: memberlist.group.calendar.faq.
      3. Finally, a third-party plugin can usually do the trick where the above two fail. Search/ask over at vBulletin.org for help with this.

      Comment

      • Schmike
        Member
        • Jan 2011
        • 48
        • 4.0.x

        #4
        I did use the append tabid to url. The tab is working fine but not the links under the tab.

        The links are used for non forum pages.

        I was using a third party plugin previously. Seems like I have to revert to what I was using.

        Comment

        • Matthew Gordon
          Senior Member
          • May 2002
          • 3243
          • 1.1.x

          #5
          The links are used for non-forum pages, but they show the navbar? What pages are you talking about specifically?

          Comment

          • Eve_Ra
            Senior Member
            • Nov 2007
            • 124
            • 4.2.X

            #6
            Attention! if you speak of the vbSoporte mod, which worked fine with vB 4.1.x and older, it's no longer compatible with vB 4.2.

            - - - Updated - - -

            And I tested locally a tab (on the showgroups for take a vB page), in the sub-nav, I have an external link, a menu with external link, and all work fine!
            Miaouuuu... Ne me caressez pas à rebrousse-poils, ça fait de l'électricité !

            Comment

            • Schmike
              Member
              • Jan 2011
              • 48
              • 4.0.x

              #7
              I have PhotoPost installed and those links are for PhotoPost.

              Comment

              • Eve_Ra
                Senior Member
                • Nov 2007
                • 124
                • 4.2.X

                #8
                PhotoPost is integrated with vB, no? If there is, your links are as other pages of vB, no external links.
                Miaouuuu... Ne me caressez pas à rebrousse-poils, ça fait de l'électricité !

                Comment

                • Schmike
                  Member
                  • Jan 2011
                  • 48
                  • 4.0.x

                  #9
                  It is integrated and I did generate the codes for the menu previously. I was trying to replicate the menu with the new navigation in vb.

                  Comment

                  • Eve_Ra
                    Senior Member
                    • Nov 2007
                    • 124
                    • 4.2.X

                    #10
                    Put relative urls: if your files photopost are in /forum/photopost/ and your vB files in /forum/, put /photopost/file.php in the url.
                    Miaouuuu... Ne me caressez pas à rebrousse-poils, ça fait de l'électricité !

                    Comment

                    • kamran_dotnet
                      Member
                      • Dec 2010
                      • 30
                      • 4.2.X

                      #11
                      i put this on script:
                      THIS_SCRIPT == showthread
                      and i get error:Error: The specified 'script' is invalid.
                      i want when user check forum and all its childs,tab show as highlight
                      what should i do?

                      Comment

                      • Eve_Ra
                        Senior Member
                        • Nov 2007
                        • 124
                        • 4.2.X

                        #12
                        You must only put:
                        showthread
                        in the case Script.
                        In what tab do you want this? the default tab Forum need nothing for highlight.
                        Miaouuuu... Ne me caressez pas à rebrousse-poils, ça fait de l'électricité !

                        Comment

                        • kamran_dotnet
                          Member
                          • Dec 2010
                          • 30
                          • 4.2.X

                          #13
                          tnx
                          Eve_Ra
                          i create new tab and i want one of my forums show in that tab
                          for example
                          Target URL :forumdisplay.php?143
                          and i want all threads in that forum display tab as highlight

                          Comment

                          • Eve_Ra
                            Senior Member
                            • Nov 2007
                            • 124
                            • 4.2.X

                            #14
                            If it's a forumdisplay, showthread don't work. It's forumdisplay for the case Script.
                            Miaouuuu... Ne me caressez pas à rebrousse-poils, ça fait de l'électricité !

                            Comment

                            • kamran_dotnet
                              Member
                              • Dec 2010
                              • 30
                              • 4.2.X

                              #15
                              Originally posted by Eve_Ra
                              If it's a forumdisplay, showthread don't work. It's forumdisplay for the case Script.
                              tnx Eve now it works perfect

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...