All Games in Dropdown List (phpqa MOD)

This addon gives your arcade a dropdown list of links to all games listed alphabetically. This will allow your users to find and play all games easier.
[Demo Here]
Instructions:

Open Arcade.php and find:(around line 439)

$parse_stamp = gmdate($datestamp, $s[5]+3600*$settings['timezone']);
echo "<a href='Arcade.php?action=profile&amp;user=$s[1]'>$s[1]</a></i> scored <i>$s[2]</i> in <a href='Arcade.php?id=$s[6]'><i>$s[7]</i></a> on $parse_stamp<hr>";
}
?>

Right After Add:

<center>
<?php
$list_files_query = mysql_query("SELECT gameid, game FROM phpqa_games ORDER BY game");
echo '<strong>Quick List:</strong><br />
<select name="games" WIDTH="150" STYLE="width: 150px" id="games" onchange="switchme()">
<option selected>Select Game</option>';
while ($list_files_row = mysql_fetch_array($list_files_query)) {
echo '
<option WIDTH="150" STYLE="width: 150px" value="Arcade.php?play='.($list_files_row['gameid']) .'#game">'. $list_files_row['game'] .'</option>';
}
echo '</select>';
?>
<script type="text/javascript">
function switchme(){
if(document.getElementById('games').value != "){
window.location = document.getElementById('games').value;
}
}
</script>
</center>

Save and upload the file.

4 Responses to “All Games in Dropdown List (phpqa MOD)”

Trackbacks

  •