plACEbo hat geschrieben:WMUserTipps AddOn: Fehlerhafte Statistik, fehlerhafte Prüfung bei Anzeige der Tipps (Tipps von anderen Tippern dürfen erst nach Spielbeginn öffentlich einsehbar sein)
Und ich weiß auch wieso: WMUserTipps erschien erst, nachdem die Vorrunde der WM schon abgeschlossen war, deswegen erübrigte sich die Abfrage nach dem Datum in der Schleife der Vorrunde.
Folgende Änderungen beheben das Problem:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
em_usertipps.php
#
#-----[ FIND ]------------------------------------------
#
if (($int_tiphome == $int_goalhome) && ($int_tipaway == $int_goalaway)) { $arr_userpkt[0]++; }
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ($row_games['game_time'] < time()) { $arr_userpkt[3]++; }
else if (($int_tiphome == $int_goalhome) && ($int_tipaway == $int_goalaway)) { $arr_userpkt[0]++; }
#
#-----[ FIND ]------------------------------------------
#
'TIPP_HOME' => $int_tiphome,
'TIPP_AWAY' => $int_tipaway,
#
#-----[ REPLACE WITH ]------------------------------------------
#
'TIPP_HOME' => (($row_games['game_time'] < time()) || (($admin_sees_all == true) && ($userdata['user_level'] == ADMIN))) ? $int_tiphome : '-',
'TIPP_AWAY' => (($row_games['game_time'] < time()) || (($admin_sees_all == true) && ($userdata['user_level'] == ADMIN))) ? $int_tipaway : '-',
#
#-----[ FIND ]------------------------------------------
#
if (($int_tiphome == $int_goalhome) && ($int_tipaway == $int_goalaway)) { $arr_userpkt[0]++; }
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ($row_games['game_time'] > time()) { $arr_userpkt[3]++; }
else if (($int_tiphome == $int_goalhome) && ($int_tipaway == $int_goalaway)) { $arr_userpkt[0]++; }
Jepp, die Zeile "if ($row_games['game_time'] > time()) { $arr_userpkt[3]++; }" ist ZWEImal zu finden (man beachte den Abstand davor).
B.