Subforum Page title question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fxm
    New Member
    • Feb 2009
    • 29
    • 3.8.x

    Subforum Page title question

    Lets say one has vb3 forum called: Cars Forum (i.e. this is the name of the site/forum itself)

    Then it's first main forum is called: BMW and then a subforum called "5 Series"

    When clicking on the "5 Series" subforum, how do I get the Page Title to be: "5 Series - BMW - Cars Forum", as opposed to just "5 Series - Cars Forum"

    I know in the Showthread template I can add: $foruminfo[title_clean] but where is the template for the subforum?

    Many thanks.
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24325
    • 5.7.X

    #2
    It's the same 'FORUMDISPLAY' template, there isn't a separate one for sub-forums.
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • fxm
      New Member
      • Feb 2009
      • 29
      • 3.8.x

      #3
      Thanks, I'm just checking that template and come across a few places where title can be inserted. Would I have to place it here?

      <td class="tcat" width="100%">$vbphrase[subforums]<span class="normal"> : $foruminfo[title]</span></td>


      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73976

        #4
        The page title is defined by the <title> tag within the <head> of the page.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • fxm
          New Member
          • Feb 2009
          • 29
          • 3.8.x

          #5
          Thanks, I just tried that, but I get a repeat of the actual subforum title. So now the page title says: "5 Series - 5 Series - Cars Forum"

          Whereas I'd like: "5 Series - BMW - Cars Forum"

          Any further help would be appreciated.

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73976

            #6
            Tried what? What is the actual code you changed?
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • fxm
              New Member
              • Feb 2009
              • 29
              • 3.8.x

              #7
              Originally posted by Wayne Luke
              Tried what? What is the actual code you changed?
              Sorry, I changed this:


              Code:
              <head>
              $headinclude
              <title>$foruminfo[title_clean] <if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
              <if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
              </head>


              to this:


              Code:
              <head>
              $headinclude
              <title>$foruminfo[title_clean] - $foruminfo[title_clean] <if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
              <if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
              </head>

              I didn't think that would work, heh.

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 73976

                #8
                It wouldn't work because $foruminfo[title_clean] isn't going to change because it is added in the second time. You will most likely need code to retrieve the name of the parent forum. Unfortunately, I don't know what that is off the top of my head. Maybe someone at vBulletin.org can help. My post was mainly to tell you what needs to be edited on the page to change the page title.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • fxm
                  New Member
                  • Feb 2009
                  • 29
                  • 3.8.x

                  #9
                  Originally posted by Wayne Luke
                  It wouldn't work because $foruminfo[title_clean] isn't going to change because it is added in the second time. You will most likely need code to retrieve the name of the parent forum. Unfortunately, I don't know what that is off the top of my head. Maybe someone at vBulletin.org can help. My post was mainly to tell you what needs to be edited on the page to change the page title.
                  Okay cool - thanks.

                  Comment

                  Related Topics

                  Collapse

                  Working...