Announcement

Collapse
No announcement yet.

Conditionals

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

  • Conditionals

    I am having a problem making an if statement that will display a certain thing if the post is not the first one in the thread.

  • #2
    Basically I seperated posts in postbit, and I want an image to appear over each post unless it is the first post in a thread, since the first post already has an image over it.

    I tried:
    PHP Code:
     <if condition="$post[postid] != 1">
    <
    tr valign="top">
    <
    td class="tcat" colspan="10"><span>&nbsp;</span></td>
    </
    tr>
    </if> 
    I am sure that $post[postid] is the post id that is shown over ouse over, so I am looking for if post is the first post in the thread instead. I am also not sure if != is the right ting to use, I just assumed so.

    You can see my intention here: http://www.grabageek.com/forums/show...stid=11#post11

    Thank you.

    Comment


    • #3
      I got it, it was $post[postcount]

      Comment


      • #4
        Yes use:

        <if condition="$post['postcount'] > 1">

        Comment


        • #5
          It works how I have it, but I will remember that if I have any problems.

          Thanks.

          Comment


          • #6
            UHN_ED

            Could you share how you separated each post in postbit? I have been looking but the old way of doing things in VB2 doesn't work!

            Cheers
            vBulletin Owner since 2002!

            Comment


            • #7
              There is a template mod for that over at www.vbulletintemplates.com

              Comment


              • #8
                Thanks - Got it.....
                vBulletin Owner since 2002!

                Comment

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