What is the variable for forum name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doctorbrains
    New Member
    • Feb 2006
    • 8
    • 3.5.x

    What is the variable for forum name

    What is the PHP variable in vBulletin 3.5 that holds the forum name?

    I need to generate different text depending on the forum I am in.

    I am new to PHP, so I would appreciate a code tip using the switch statement or if/ else.

    I'd like to generate a different line depending on the forum name.

    Here is the line that I need to generate depending on forum name:

    xyz ="4324";

    So, when I write the PHP code, I will need to escape " and ;

    Please help me with an example. Thanks in advance.
    Last edited by doctorbrains; Sun 26 Feb '06, 1:01pm.
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    bbtitle
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • Zachery
      Former vBulletin Support
      • Jul 2002
      • 59097

      #3
      $vbulletin->options['bbtitle'] in files with global.php included
      $vboptions['bbtitle'] for templates.

      Comment

      • doctorbrains
        New Member
        • Feb 2006
        • 8
        • 3.5.x

        #4
        Neither suggestion above works for me, however I figured it out from looking at the code, but need confirmation that I am doing the correct thing.

        Here is what I am doing:
        $forumTitle = $vbulletin->forumcache["$forumID"]['title'];

        This seems to work OK for me, but I want to ensure there is no surprise under some conditions.

        Please let me know if OK to use the above for the forum title.

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          #5
          You asked for the title of the forum ie the entire forums area of the site which is what we thought.

          You mean you actually want the titile of a category or forum for posts and threads?

          Comment

          • doctorbrains
            New Member
            • Feb 2006
            • 8
            • 3.5.x

            #6
            Sorry I did not make myself clear. Here is an example of what I meant by forum name:

            vBulletin 2 'How Do I'

            is the forum name/ topic for this forum.

            What I need to do is capture that string in a variable. Did I do it correctly?

            Comment

            • pondlife
              New Member
              • Jul 2007
              • 6

              #7
              I think this is what I'm after too - If I want the equivalent of the 'f' variable (i.e. the number of the forum) to use when people are looking in threads within a forum how do I call this in my PHP script?

              many thanks, p.
              http://www.AddAnImage.com/

              Comment

              • peterska2
                Senior Member
                • Oct 2003
                • 8869
                • 3.7.x

                #8
                Please post in the correct forum for the version that you are using.

                Comment

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