![]() |
postbit $post[] problem
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> Nevermind, I have fixed the problem. I'm retarded and had the same field name in the table post and the table user (praises). |
All times are GMT. The time now is 01:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|