What is the name of this variable/tag?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hankster
    Senior Member
    • Feb 2002
    • 890

    What is the name of this variable/tag?

    I am looking to tie some conditionals to the forum name but am not sure what variable/tag is used to define the forum name? I want to display an advertisment only in posts for a single forum but need to find a way to know a post is in that forum. See below attachments. TIA



  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    In most major templates you can reference this variable:

    Code:
    $forumid
    For example, the forumid of this forum is 135. You can see it in the URL:



    In some other templates (like the postbit) you need to use:

    Code:
    $GLOBALS[forumid]

    Comment

    • hankster
      Senior Member
      • Feb 2002
      • 890

      #3
      Thanks, is there a way to get the forum's name instead of the ID number?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        The forum name is not as available. But it is much better to use the forumid to identify a forum.

        Comment

        • hankster
          Senior Member
          • Feb 2002
          • 890

          #5
          Thanks Jake, the number will work.

          Comment

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