In diesem Forum können Mod-Autoren ihre Mods vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
Forumsregeln phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
overunder hat geschrieben:in der formel.php sind doch die Top-Spieler aufgeführt. Statt der 1 würde ich gerne ein geeignetes Bild einfügen evtl. in Form eines Pokals.
// Show users toplist
else
{
$stat_table_title = $user->lang['formel_user_stats'];
// Get all tips and fill top10
$sql = 'SELECT sum(tipp_points) AS total_points, tipp_user
FROM ' . FORMEL_TIPPS_TABLE . '
GROUP BY tipp_user
ORDER BY total_points DESC';
$result = $db->sql_query($sql);
// Show users toplist
else
{
$stat_table_title = $user->lang['formel_user_stats'];
// Get all tips and fill top10
$sql = 'SELECT sum(tipp_points) AS total_points, tipp_user
FROM ' . FORMEL_TIPPS_TABLE . '
GROUP BY tipp_user
ORDER BY total_points DESC';
$result = $db->sql_query($sql);
Du musst nun im Verzeichnis images/formel/ ein Bild mit dem Namen "pokal.gif" hinterlegen.
funktioniert einwandfrei aber halt nur wenn ich die Statistik für die Spieler auf rufe.
Was müßte noch geändert werden damit der Pokal auch in der Formel 1 Web Tipp Übersicht erscheint?
// Get all tips and fill top10
$sql = 'SELECT sum(tipp_points) AS total_points, tipp_user
FROM ' . FORMEL_TIPPS_TABLE . '
GROUP BY tipp_user
ORDER BY total_points DESC LIMIT 5';
$result = $db->sql_query($sql);