Announcement

Collapse
No announcement yet.

Conditional to check if it's Forumhome

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

  • [Forum] Conditional to check if it's Forumhome

    Hi, I'm trying to add a piece a code to the footer but only want it to display in all pages except forumhome. Is there anyway to do it such as using a conditional?

    Thanks!

  • #2
    I don't know about vBulletin 4, but in vb3 you can use <if condition=""><else /></if> and you can use THIS_SCRIPT define to check against index.php

    <if condition="THIS_SCRIPT == 'index'">we're on forumhome<else />we're not.</if>.

    Maybe it is like <vb: if (THIS_SCRIPT == 'index')> .. in vb4, i honestly don't know. vBulletin.org has some articles on this I am sure.

    Comment


    • #3
      Thanks it works.

      Comment

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