That doesn't make sense. Let's say we have 3 users. A, B, and C. A has 20 posts and thus one raffle ticket. B has 10 posts and no raffle tickets. C has 15 posts and no raffle tickets.
Total posts = 45
Total raffle tickets = 1
if (totalPosts%20 > 9)
(posts/20) - 1 = 2 (rounded)
else
posts/20 = 2 (rounded)
^Still inaccurate according to my above example.
2 != 1
Also, go into your statistics template and get the variable. ($totalposts)
|