Announcement

Collapse
No announcement yet.

Condition?

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

  • Condition?

    Hey me again lol
    Is there a condition for if no threads in forum don't show this?
    I've seen other people use something which I can assume is this but I can't find this condition.
    Any help given would be really appreciated.

  • #2
    Which template? It matters

    On FORUMDISPLAY (the one that lists the threads in a forum), you can use

    Code:
    <if condition="$show['threads']">Only show this when there are threads</if>

    Comment


    • #3
      Perfect! thanks lol and yes It is for forum display.

      Comment


      • #4
        I have another question lol
        Is there a condition that will show something everywhere BUT inside forums? I need it for the breadcrumb/navigation bar thingy.
        Thanx

        Comment


        • #5
          Code:
          <if condition="THIS_SCRIPT != forumdisplay">
          will stop items from appearing in the forumdisplay pages.
          Kerry-Anne :)

          Twitter Blog

          www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

          Comment


          • #6
            Thanks Kerry-Anne *hugs*

            Comment


            • #7
              quick question related to the condition given by peterska2, how would you change that so it says only show this in private.php? (private messaging)

              Comment


              • #8
                Code:
                <if condition="THIS_SCRIPT == private">

                Comment


                • #9
                  Thats what I thought, thanks lol

                  Comment

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