I also made this mod. What I wanted was if there was a tie for a certain place then everyone should get that trophy. So if there is a tie for first then both users should have a gold, there would then be no silver and the next prize would be bronze.
If there is a three way (or more tie) then they would all get gold and there would be no silver or bronze. I believe I have this working properly, but it is hard to tell for sure. So maybe some other users that have a tie for first, second, or third could test this.
Here is the whole mod for arcade.php
PHP Code:
// ######################### ARCADE LEADER BOARD ###########################
if ($_GET['do'] == "lboard") {
$globaltemplates = array(
'ARCADE',
'arcade_header',
'arcade_kings',
'arcade_kings_bit'
);
require_once('./global.php');
require_once('./includes/functions_user.php');
require_once('./includes/functions_arcade.php');
$navbits = array("arcade.php?$session[sessionurl]" => "Arcade");
$navbits[""] = "Leader Board";
$highscorers = $DB_site->query("
SELECT COUNT(games.highscorerid) AS count, user.username, user.userid FROM " . TABLE_PREFIX . "games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
WHERE user.userid IS NOT NULL
GROUP BY user.username, user.userid ORDER BY count DESC, user.username ASC LIMIT 10
");
$row = '0';
$awards = '0';
$leaders = '0';
while ($kings = $DB_site->fetch_array($highscorers)) {
$leaders++;
if ($awards<>$kings[count]){
$row=$leaders;
}
$awards=$kings[count];
eval('$listkings .= "' . fetch_template('arcade_kings_bit') . '";');
}
$DB_site->free_result($highscorers);
eval('$arcadebody = "' . fetch_template('arcade_kings') . '";');
}