Hi Fillip,
Sorry to bother you again....
In the Netherlands we use different decimal punctuation. To separate thousands we use a dot in stead of a comma and to separate decimals we use comma's in stead of a dot.
While installing the new 2.0.6 version of this hack, I've noticed that the average stats that are placed under the forum statistics on Forum Home, used the English decimal system.
To correct this I've changed "forumhome_complete.php" a little bit.
I've added the vb_number_format function to three lines of code, starting from line 551:
Code:
$averages["$key"]['day'] = vb_number_format(round(($vbulletin->userstats["total{$key}"] / $difference), 2), 2);
$averages["$key"]['week'] = vb_number_format(round(($vbulletin->userstats["total{$key}"] / ($difference / 7)), 2), 2);
$averages["$key"]['month'] = vb_number_format(round(($vbulletin->userstats["total{$key}"] / ($difference / 30)), 2), 2);
This way the numbers are formatted correctly, depending on the language you choose for your forum. I've tested both the English and Dutch languages, and this works fine.
I do not use the Top X blocks of this hack, but I've enabled them for testing purposes. The number formatting "problem" is not present in this part of the hack.
Could you please correct this in a future release of this hack.
And thank you for correcting my other problem
Greetz,
Rob