/* For SMF Arcade 2.5 */
/* Block is c/o Underdog @ askusaquestion.net */
/* Latest High Scores with Icons - Using javascript marquee */
global $boardurl;
/* For these dimensions... Set width to what suits your block, set height to what is needed for your images +5 */
$mar_width = 1400;
$mar_height = 55;
$mar_speed = 3;
$mar_pause = 1;
/* Thumbnail dimensions */
$width = 50;
$height = 50;
/* Number of scores to display, games folder, enable thumbnail display */
$no_games = 29; /* Set 1 to 29 games to display */
$gamesUrl = $boardurl.'/Games/';
$show_thumbnail = true;
if ($mar_width > 1400) {$mar_width = 1400;}
if ($no_games > 29) {$no_games = 29;}
if ($no_games < 1) {$no_games = 1;}
/* Execute the function and start the display */
$display = latest_scores2($no_games,$gamesUrl, $width, $height, $show_thumbnail);
echo javascript_marquee($display, $mar_width, $mar_height, $mar_speed, $mar_pause);
function javascript_marquee($display2, $mar_width, $mar_height, $mar_speed, $mar_pause)
{
/* START - javascript marquee function */
?>
$start,
'count' => $count,
'empty' => '',
)
);
while ($game = $smcFunc['db_fetch_assoc']($result))
{
$game_thumb = $gamesUrl.$game['game_directory'].'/'.$game['thumbnail'];
$scoring = 'Scored: '.$game['score'].'<\/a>';
$thumb = false;
if ($show_thumbnail == true)
{$thumb = '
<\/a>'.$space3;}
$display .= $thumb.''.$game['game_name'].'<\/a>...'.$game['real_name'].'<\/a>...'.$scoring.$space2;
}
$smcFunc['db_free_result']($result);
return $display;
}