[gelöst] Arcade statistiken anzeigen

Started by meisterchen, December 03, 2006, 04:54:18 AM

Previous topic - Next topic

meisterchen

ich habe mir gestern das arcade mod installiert und möchte die statistiken in meinem portal anzeigen lassen habe auch schon den phpcode dafür aber leider nur für IBP wie müsste ich den code wegen den tabelleneinträgen in der datenbank umschreiben damit er die aus der smf datenbank ausliest. hier ist der code  :)
<?php
/*
+--------------------------------------------------------------------------
|  MkPortal ibProArcade Latest 10 Games Block 30.12.2004
|  for ibProArcade 2.51 Tubemod
|  and MKP x IPB2
|  by ibProGames <ibprogames.com>
+---------------------------------------------------------------------------
Be sure to change link to your forum so you dont get broken links or images...
*/

$DB->query("SELECT g.gid, g.gtitle, g.gname, g.gcat, cat.password FROM ibf_games_list AS g, ibf_games_cats AS cat WHERE g.active=1 AND g.gcat=cat.c_id AND trim(password)='' ORDER BY g.added DESC LIMIT 10");
$i=0;
while (
$row $DB->fetch_row() ) {

$game $row[gid];
$gtitle $row[gtitle];
$glink[$i] = "<img src='arcade/images/{$row[gname]}2.gif'> <a href='index.php?act=Arcade&do=play&gameid={$game}'>{$gtitle}</a>";
$i++;

}

$content .= "<tr>";
$content .= "<td class='row4'>{$glink[0]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[1]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[2]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[3]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[4]}</td>";
$content .= "</tr>";

$content .= "<td class='row4'>{$glink[5]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[6]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[7]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[8]}</td>";
$content .= "</tr>";
$content .= "<tr>";
$content .= "<td class='row4'>{$glink[9]}</td>";
$content .= "</tr>";


?>




danke schonmal im vorraus  :D

noex

"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

meisterchen

 :D super danke dir bist dein geld wert fg  :)

noex

"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

meisterchen

ich meine damit du hast dir deinen status verdient  :)

noex

*g* achso, freut mich das ich helfen konnte
"Jetzt, wo ich weiß wie es geht, versteh ich auch die Gebrauchsanleitung"

Advertisement: