Forum level Conditional?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Acido
    Member
    • Sep 2003
    • 45

    Forum level Conditional?

    I can't find any. Exist a conditional to use to define the forum level? Example: <vb:if condition="forumlevel == 1"> I need take some action in sub forums. Any help will be appreciated.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74132

    #2
    There is no such thing as a forum level in the database so there is no conditional for such.

    You can try something like <vb:if condition="in_array($foruminfo['parentid'], array(X,Y,Z))">

    X, Y, Z would be the list of parents your sub-forums reside in.
    Translations provided by Google.

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

    Comment

    • Acido
      Member
      • Sep 2003
      • 45

      #3
      Very useful tip Wayne. Thank you !

      Comment

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