Log in

View Full Version : Test if thread is sticky with <if> statement


gdguide
06-07-2009, 11:42 PM
I'd like to wrap a bit of code in an <if> statement so that it does not display in sticky threads. The code is in the postbit_legacy template, so I'm not sure if I'd use $post or $thread. Something like this is what I had in mind:

<if condition="!$threadinfo['sticky'] == 1">
CODE
</if>

Is there an easy way to accomplish this?

Edit: Sorted! Here's how I accomplished it, if anyone is curious:

<if condition="!$threadinfo['sticky']">
CODE
</if>