Quote:
Originally Posted by dbfury
This hack is messy; I have people who have stats and other who haven't at all. Seems like that when people have written a lot of messages (superior to 1000 or something like that) the stats are screwed... The level should be based on messages... But for someone who have 2000 postcount, he is still level 1. And about another who have 200 postcount, it seems working...
|
It because your language settings use a space for the thousand separator.
In the 'RPG Stats' plugin, find this:
PHP Code:
$rpglvl = str_replace(array(' ', ',', '.'), '', $post[posts]);
And replace by this:
PHP Code:
$rpglvl = str_replace(array(' ', ',', '.'), '', $post[posts]);