One last little bug.
This calculation works perfectly unless the members post count is 1000 or more. In that case it just repeats the users reputation points in the "User rating" location.
Join Date: Jan 2007
Posts: 999
Rep points: 300
User rating: 0.30
Join Date: Jan 2007
Posts: 1,000
Rep points: 300
User rating: 300.00
Anybody know why this is?
UPDATE: the comma in 1,000 posts is causing the problem.
Quote:
|
$post['posts'] is already run though the number formatter, you need to strip it for your personal use, or use another hook location to grab it before that happens.
|
Any suggestions as to how to "strip" it down?