Seite 1 von 1

Debug Error wegen Mini-Statistik-Mod!

Verfasst: 25.10.2007 21:27
von gnol
Siehe:
http://gym.galaxyserver.de

Ich habe den Mini-Statistik-Mod mit Easymod installiert. Nun habe ich diesen Fehler. Unten steht "Line : 188 File : actualstats.php"

Dort finde ich das hier:

Code: Alles auswählen

$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time 
            FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2 
        LEFT JOIN " . FORUMS_TABLE . " f 
        ON t.forum_id=f.forum_id 
            WHERE t.topic_poster = u.user_id 
                    AND p.post_id = t.topic_first_post_id 
                       AND p2.post_id = t.topic_last_post_id 
                       AND u2.user_id = p2.poster_id 
            AND f.auth_view < 2 
           ORDER BY t.topic_last_post_id DESC 
           LIMIT 5"; 
if ( !($result = $db->sql_query($sql)) ) 
{ 
   message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); 
} 
Könnt ihr mir helfen?

Verfasst: 26.10.2007 00:06
von uwe310
Hallo

Was doch eine Suche so findet
http://www.phpbb.de/viewtopic.php?p=761965#761965

Letzter Beitrag

MFG Uwe

Verfasst: 26.10.2007 12:53
von gnol
Es funktioniert immer noch nicht.. hab die Klammern gesetzt.. nun sieht es so aus:

Code: Alles auswählen

$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM (" . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2)
LEFT JOIN " . FORUMS_TABLE . " f
ON t.forum_id=f.forum_id
WHERE t.topic_poster = u.user_id
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
AND u2.user_id = p2.poster_id
AND f.auth_view < 2
ORDER BY t.topic_last_post_id DESC
LIMIT 5";

if ( !($result = $db->sql_query($sql)) ) 
{ 
   message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); 
} 

Verfasst: 26.10.2007 13:13
von gnol
Ahh jetzt gehts! Danke!

Nur ist jetzt die Tabellenstruktur kaputt

Verfasst: 26.10.2007 13:23
von uwe310
hi
Nur ist jetzt die Tabellenstruktur kaputt
Wie, wo ..........???

MFG
Uwe

Verfasst: 26.10.2007 16:29
von gnol
[ externes Bild ]

Und jetzt konnte ich es einigermaßen ausbügeln, nur ist noch so ein komischer Abstand da..

http://gym.galaxyserver.de/index.php