Announcement

Collapse
No announcement yet.

Looking for a variable...

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

  • Looking for a variable...

    Hello guys I would like to ask if does exist a variable where the number of moderators per forum is stored because I need to create a condition like the following one:

    Code:
    IF forum_x has one or more moderators
    
    DO SOMETHING
    
    CLOSE IF
    Thank you for your time!


    Regards
    Last edited by Virtex-II; Thu 31st Aug '06, 11:17pm.
    If you are italian send me a pm!

    (Se sei italiano contattami in privato!)

  • #2
    On which page are you planning to use that test?
    Want to take your board beyond the standard vBulletin features?
    Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

    Comment


    • #3
      On forumdisplay. Thanks
      If you are italian send me a pm!

      (Se sei italiano contattami in privato!)

      Comment


      • #4
        Anyone?
        If you are italian send me a pm!

        (Se sei italiano contattami in privato!)

        Comment


        • #5
          Try using the variable '$totalmods'. So for example in a condition:
          Code:
          <if condition="$totalmods > 0">
          ...your code.....
          </if>
          Want to take your board beyond the standard vBulletin features?
          Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

          Comment


          • #6
            Thanks Marco van Herwaarden, I used this one:

            Code:
            <if condition="$forum[moderators] != '' ">
            ...my code...
            <if>
            and it works quite well, but two options are better than one
            If you are italian send me a pm!

            (Se sei italiano contattami in privato!)

            Comment

            Loading...
            Working...
            X