Announcement

Collapse
No announcement yet.

How to make IF setting in "postbit" template?

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

  • How to make IF setting in "postbit" template?

    I want to make an IF setting in the postbit template but cant get it to work, since its not using normal php there.

    I try this


    <if 1="$post[postcount]">
    hello
    </if>

    also tried

    <if $post[postcount]=1>
    hello
    </if>

    I want to do so after the first post i can post some HTMl code , some static ad. Whats the correct syntax here ?

  • #2
    You almost got it right.
    http://www.vbulletin.com/forum/showthread.php?t=198875

    Comment


    • #3
      Thanks!

      One more question, what woulkd the if setting be if i want to do something likke this ?

      I want to make so only the users with less then 100 posts will see the ad, how would that be ?

      Comment


      • #4
        Try:

        Code:
        <if condition="$postcount <= 100">
        Your ad code here...
        </if>

        Comment

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