Hi,
if you have an user on your ignore list, and get a PM from him, you can't see the PM of him but the Gauge Hack counts it to the number of total PMs.
On the start page (index.php) you don't see this PM, because the the ignored users are excluded.
To fix this you should replace (in private.php):
PHP Code:
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid]");
with
PHP Code:
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
You also will never get a 'red' image until you change this:
PHP Code:
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";
}
to this:
PHP Code:
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";
}
Greetings,
Mystics