Announcement

Collapse
No announcement yet.

What is the name of this variable/tag?

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

  • 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




  • #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:

    http://www.vbulletin.com/forum/forumdisplay.php?f=135

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

    Code:
    $GLOBALS[forumid]

    Comment


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

      Comment


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

        Comment


        • #5
          Thanks Jake, the number will work.

          Comment

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