The Arcive of vBulletin Modifications Site. |
|
V3Arcade - So long 0 score posting Details »»
|
|||||||||||||||||||||||||
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");
Code:
if ($game[score] < 1) {
echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=./arcade.php?do=scores&name=$game[shortname]\">";
$validatesession = 0;
exit;
}
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
how can i remove all 0 score games then...i assume this wont do that auto for me?
|
|
#3
|
||||
|
||||
|
If you have existing scores that are Zero - you can remove them from your Arcade adminCP - score settings
Once this little mod is installed, zero scores will no longer be saved. |
|
#4
|
||||
|
||||
|
i love you for this... thnkfully my arcade is new so it doesn't have many and thnk god now it never will :-p
|
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
From what I know, V3arcade does not handle scores under 0
|
|
#7
|
|||
|
|||
|
never mind
|
|
#8
|
||||
|
||||
|
Good thinking Watson
![]() [high]* ChuanSE clicks install[/high] |
|
#9
|
||||
|
||||
|
Nice little addition... Thanks!
|
|
#10
|
|||
|
|||
|
Thanks Buddy!!!
|
![]() |
|
|