There's a tiny error in the php code for this hack. Because of this, the colour for 75% and up will never work..
This is the original code:
Quote:
if ($inboxpms < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,2);
}
if ($pmpercent>50) {
$barimg="https://vborg.vbsupport.ru/images/yellow.gif";
} elseif ($pmpercent>75) {
$barimg="https://vborg.vbsupport.ru/images/red.gif";
} else {
$barimg="https://vborg.vbsupport.ru/images/green.gif";
}
|
It should be changed to
Quote:
if ($inboxpms < 1) {
$pmpercent = "1"; // stop divisions by zero
} else {
$pmpercent = round(($inboxpms[messages] / $pmquota) * 100,0);
}
if ($pmpercent>75) {
$barimg="https://vborg.vbsupport.ru/images/red.gif";
} elseif ($pmpercent>50) {
$barimg="https://vborg.vbsupport.ru/images/yellow.gif";
} else {
$barimg="https://vborg.vbsupport.ru/images/green.gif";
}
|
I have tested this.. and it works..