How to tell if a forum is a child of another forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dylan Leblanc
    Member
    • Jul 2002
    • 40
    • 5.6.4

    How to tell if a forum is a child of another forum

    Is there a function that can be used to determin wether a forum is a child of another forum? I think this would work, but I am wondering if there is a better solution, one where I wouldn't have to state every possible forum that would be a child of another forum. Just use the one forumid for the parent forum to test if the current forum is a child of it.

    Code:
    <if condition="!in_array($forumid, array([B]X, Y[/B]))">
    I want to put custom ads in a section of my forum that contains many sub-sections.
  • jluerken
    Senior Member
    • Jul 2003
    • 494
    • 4.2.X

    #2
    I don't know any if condition statement that can check if a forum is parent or child or another forum.

    Try vb.org, there are many coders around, maybe they know a smart solution for you.

    Comment

    • Dylan Leblanc
      Member
      • Jul 2002
      • 40
      • 5.6.4

      #3
      Thanks J.

      Comment

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