The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
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> <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> Nevermind, I have fixed the problem. I'm retarded and had the same field name in the table post and the table user (praises). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|