Quote:
Originally Posted by sticky
One glitch I noticed.
When switching the Rep system to decimal value if a user has, say, 2.6, and I give them +1, it will just make it a whole number, 3.0, and they will lose the decimal value, it won't add it making it 3.6.
Any idea?
|
Actually, yes I do. The user data manager runs an intval() on reputation, dropping the decimal point. Easiest way to deal with this is probably a code change, just remember that you'll have to re-apply it whenever you upgrade vBulletin.
In /includes/class_dm_user.php, find:
PHP Code:
$reputation = intval($reputation);
Replace with:
PHP Code:
$reputation = strval($reputation) + 0;
Save, close, upload, etc.
There's probably a way to make a clever plugin achieve the same goal, but that should get the job done for now.