Back to vBulletin 3.0 Add-Ons

V3Arcade - So long 0 score posting
Mod Version: 1.00, by frankenberrie

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 46
Released: 30 Oct 2004 Last Update: Never Downloads: 4
Not Supported  

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:
Code:
// 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:
Code:
	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.

Download

No files for download.

Similar Mods

V3arcade - Show Last Score News vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024