you are completely right, this appears to be a bug in the original pm gauge hack:
in your private.php FIND:
EDIT: this forum parses the bbcode, so i cant insert it. you MUST take out the space between the { and the imagesfolder} in both the code to find and to paste.
PHP Code:
if ($pmpercent>50) {
$barimg="{ imagesfolder}/yellow.gif";
} elseif ($pmpercent>75) {
$barimg="{ imagesfolder}/red.gif";
notice that if the pm box is full, the first condition (%>50) is true, so the second condition (%>75) isnt queried at all and the image will always be yellow.
so REPLACE that with:
PHP Code:
if ($pmpercent>75) {
$barimg="{ imagesfolder}/red.gif";
} elseif ($pmpercent>50) {
$barimg="{ imagesfolder}/yellow.gif";
and you should be done, worked for me.
ZIP in first post will be updated in a minute.
thx for the bug-posting.
kreftt