Moin zusammen,
xervas hat geschrieben:nur ein kleines problem habe ich da.
wenn ich bei mir auf die 1. bundesliga klicke werden die punkte in der Spieler Ranking nicht richtig sortiert.
das ist mir damals wohl durchgerutscht!

ich bin mir eigentlich sicher, dass ich das angeschaut habe, aber wahrscheinlich waren die beiden Ranglisten bei mir gleich, tja und hinterher guckt man nicht mehr hin
Wie heisst es so schön "Nobody is perfect!" noch nicht mal ich
könnte man das so ändern das wenn man 0 wählt das die Tabelle inklusiv der Extra Spiel Punkte erstellt wird.
Ich versuch´s mal:
öffne bundesliga.php und finde
Code: Alles auswählen
if (($board_config['tipp_anzranking']== '0'))
{
$sql = "SELECT user_id, username, tipp_punkte, tipp_treffer, tipp_getippt, tipp_lastpos FROM ". USERS_TABLE ." WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte DESC, tipp_treffer DESC, username asc ";
}
else
{
$sql = "SELECT user_id, username, tipp_punkte, tipp_treffer, tipp_getippt, tipp_lastpos FROM ". USERS_TABLE ." WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte DESC, tipp_treffer DESC, username asc LIMIT 0, " . $board_config['tipp_anzranking'] . " ";
}
ersetze das Ganze mit
Code: Alles auswählen
if (($board_config['tipp_anzranking']== '0'))
{
if (($board_config['tipp_extra_calc']== '0'))
{
$sql = "SELECT user_id, username, tipp_punkte, tipp_extrapunkte, tipp_treffer, tipp_getippt, tipp_lastpos FROM ". USERS_TABLE ." WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte + (case when tipp_extrapunkte is null then 0 else tipp_extrapunkte End) DESC, tipp_treffer DESC, username asc ";
}
else
{
$sql = "SELECT user_id, username, tipp_punkte, tipp_treffer, tipp_getippt, tipp_lastpos FROM ". USERS_TABLE ." WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte DESC, tipp_treffer DESC, username asc ";
}
}
else
{
if (($board_config['tipp_extra_calc']== '0'))
{
$sql = "SELECT user_id, username, tipp_punkte, tipp_extrapunkte, tipp_treffer, tipp_getippt, tipp_lastpos FROM ". USERS_TABLE ." WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte + (case when tipp_extrapunkte is null then 0 else tipp_extrapunkte End) DESC, tipp_treffer DESC, username asc LIMIT 0, " . $board_config['tipp_anzranking'] . " ";
}
else
{
$sql = "SELECT user_id, username, tipp_punkte, tipp_treffer, tipp_getippt, tipp_lastpos FROM ". USERS_TABLE ." WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte DESC, tipp_treffer DESC, username asc LIMIT 0, " . $board_config['tipp_anzranking'] . " ";
}
}
Das kann man wahrscheinlich eleganter lösen, aber wenn´s funktioniert....
und immer schön weiter Fehler melden, denn selber wird ja man ja schnell "betriebsblind"
und hoffentlich fegt mein VFL die Bayern weg
