Quote:
Originally Posted by divided_by_fear
is there a way you could make this show 2 games? and also show the person who has the high score ?
|
Yes, in the next update i could do it ... but if you want only show 2 games simply find in
adv_portal_5randomgame template:
Code:
<tr><td class="$altbgclass" valign="middle" colspan="1"><center><img src="$vboptions[bburl]/$vboptions[arcadeimages]/$randomimage2" title="$randomdescr2" border=0 width=20 height=20 hspace=10 vspace=1 align=absmiddle><br /><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid2"><font size=1>$randomtitle2</a></center></td></tr>
<tr><td class="$bgclass" valign="middle" colspan="1"><center><img src="$vboptions[bburl]/$vboptions[arcadeimages]/$randomimage3" title="$randomdescr3" border=0 width=20 height=20 hspace=10 vspace=1 align=absmiddle><br /><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid3"><font size=1>$randomtitle3</a></center></td></tr>
<tr><td class="$altbgclass" valign="middle" colspan="1"><center><img src="$vboptions[bburl]/$vboptions[arcadeimages]/$randomimage4" title="$randomdescr4" border=0 width=20 height=20 hspace=10 vspace=1 align=absmiddle><br /><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid4"><font size=1>$randomtitle4</a></center></td></tr>
and erase it
in
v3_5_ra_cmps.php search:
PHP Code:
$result_randomgames = $db->query("SELECT gameid, title, miniimage, description, highscore, highscorerid FROM " . TABLE_PREFIX . "arcade_games ORDER BY RAND() LIMIT 5");
list($randomgameid0, $randomtitle0, $randomimage0, $randomdescr0, $randomhighs0, $randomhigid0) = mysql_fetch_array($result_randomgames);
list($randomgameid1, $randomtitle1, $randomimage1, $randomdescr1, $randomhighs1, $randomhigid1) = mysql_fetch_array($result_randomgames);
list($randomgameid2, $randomtitle2, $randomimage2, $randomdescr2, $randomhighs2, $randomhigid2) = mysql_fetch_array($result_randomgames);
list($randomgameid3, $randomtitle3, $randomimage3, $randomdescr3, $randomhighs3, $randomhigid3) = mysql_fetch_array($result_randomgames);
list($randomgameid4, $randomtitle4, $randomimage4, $randomdescr4, $randomhighs4, $randomhigid4) = mysql_fetch_array($result_randomgames);
$db->free_result($result_randomgames);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_5randomgame') . '";');
and replace for:
PHP Code:
$result_randomgames = $db->query("SELECT gameid, title, miniimage, description, highscore, highscorerid FROM " . TABLE_PREFIX . "arcade_games ORDER BY RAND() LIMIT 2");
list($randomgameid0, $randomtitle0, $randomimage0, $randomdescr0, $randomhighs0, $randomhigid0) = mysql_fetch_array($result_randomgames);
list($randomgameid1, $randomtitle1, $randomimage1, $randomdescr1, $randomhighs1, $randomhigid1) = mysql_fetch_array($result_randomgames);
$db->free_result($result_randomgames);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_5randomgame') . '";');
Quote:
Originally Posted by Michelle
Will install later
|
don't hurry
"definitively my english is very bad" :nervous: