frankenberrie
10-29-2004, 10:00 PM
V3Arcade - So long 0 score posting
If you are like me, you have to hate those games that submit scores of zero - Apply this hack and if the game score is zero when the player hits submit, the player will be taken directly to the high score page for that game. No score or comment will be written!
File to mod: ARCADE.PHP (please backup file first)
FIND:// This query gets all the information about the session, and the game which was played
$game = $DB_site->query_first("SELECT gamesessions.*, games.* FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
LEFT JOIN " . TABLE_PREFIX . "games AS games ON games.shortname=gamesessions.gamename
WHERE sessionid=$id
AND userid=$bbuserinfo[userid] LIMIT 1");
Directly below that add: if ($game[score] < 1) {
echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=./arcade.php?do=scores&name=$game[shortname]\">";
$validatesession = 0;
exit;
}
Simple as that! Please click install if you use.
If you are like me, you have to hate those games that submit scores of zero - Apply this hack and if the game score is zero when the player hits submit, the player will be taken directly to the high score page for that game. No score or comment will be written!
File to mod: ARCADE.PHP (please backup file first)
FIND:// This query gets all the information about the session, and the game which was played
$game = $DB_site->query_first("SELECT gamesessions.*, games.* FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
LEFT JOIN " . TABLE_PREFIX . "games AS games ON games.shortname=gamesessions.gamename
WHERE sessionid=$id
AND userid=$bbuserinfo[userid] LIMIT 1");
Directly below that add: if ($game[score] < 1) {
echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=./arcade.php?do=scores&name=$game[shortname]\">";
$validatesession = 0;
exit;
}
Simple as that! Please click install if you use.