Let's say you had 2000 posts, which would be: 2,000, the script first strips comma's, leaving: 2000
Next this number is divided by 100, leaving: 20
Using the if/else statement, the final outcome is:
$post['starsc'] equals 1
$post['s_ext'] equals green
So you have 1 green star.
I can't see the problem, i'm using the exact same code on my vb forum (3.0.7), and it's working as it should, perhaps something else you installed which collides with this?
- Zero Tolerance
|