I am trying to add this tot he bottom of my postbit, but it isn't working as expected. It's suppose to display the praises if the total amount of praises for that post (which is stored in the table post, field praises) is above 0. However it is displaying the td on every post for the user that has a praise for one post. I have checked the mysql table and it has zero's for all posts that were not praised. I have tried using $post & $postinfo as well as != '0' instead of > 0
Code:
<if condition="$post['praises'] > 0"><tr>
<td class="thead" style="font-weight:normal" colspan="2">This Post Has Been Praised $post[praises] time<if condition="$post['praises'] > 1">s</if> by the following user<if condition="$post['praises'] > 1">s</if>: $praisers</td>
</tr></if>
Why is this not working on a per post basis as do all the other $post & $postinfo variables in the postbit?
Nevermind, I have fixed the problem. I'm retarded and had the same field name in the table post and the table user (praises).