Quote:
Originally Posted by Owen
the percentages in your forumdisplay hack seem to be fine, whats different about these?
|
Believe it or not, they are the same code.
Ok, if you want to try something, i "may" have stumbled on to a fix. let's cross our fingers and try this again.
Replace:
PHP Code:
$statscache['topthreadspercent'] = round(100 * ($topstarter[count] / $totalthreads), 2);
with:
PHP Code:
$statscache['topthreadspercent'] = vb_number_format(($topstarter[count] / $totalthreads) * 100, 2) . '%';
and take out:
PHP Code:
if (($statscache['topthreadspercent'] % 10) == 0)
$statscache['topthreadspercent'] = vb_number_format($statscache['topthreadspercent']) . '%';
else
$statscache['topthreadspercent'] = vb_number_format($statscache['topthreadspercent'], 2) . '%';
You will have to set the update time to 0 and refresh the stats. Do it once or twice and see if that fixes our problem. Let me know as soon as possible so i can either bang my head against the wall or post the rest of the fixes.