Das geht
Verfasst: 15.11.2002 15:57
So weit so gut ...
Die function_post.php läuft nun habe Ich aber ein anderes Problem:
Nun kommt folgende Fehlermeldung :
Allgemeiner Fehler
Could not obtain topic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near ' COUNT(p2.post_id) AS prev_posts .= ', t.topic_first_post_id, t.topic_quiz'; // ' at line 6
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, COUNT(p2.post_id) AS prev_posts FROM TRN_phpbb_topics t, TRN_phpbb_forums f, TRN_phpbb_posts p, TRN_phpbb_posts p2 WHERE p.post_id = 9 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 9 AND f.forum_id = t.forum_id GROUP BY p.post_id, t.topic_id, t.topic_title, , COUNT(p2.post_id) AS prev_posts .= ', t.topic_first_post_id, t.topic_quiz'; // ADDED BY Quiz Hack t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC
Line : 147
File : /Forum/viewtopic.php
Die viewtopic.php schaut bei mir so aus:
140 $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
141 FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
142 WHERE $join_sql
143 AND f.forum_id = t.forum_id
144 $order_sql";
145 if ( !($result = $db->sql_query($sql)) )
146 {
147 message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
148 }
Wie meinst Du
Die function_post.php läuft nun habe Ich aber ein anderes Problem:
Nun kommt folgende Fehlermeldung :
Allgemeiner Fehler
Could not obtain topic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near ' COUNT(p2.post_id) AS prev_posts .= ', t.topic_first_post_id, t.topic_quiz'; // ' at line 6
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, COUNT(p2.post_id) AS prev_posts FROM TRN_phpbb_topics t, TRN_phpbb_forums f, TRN_phpbb_posts p, TRN_phpbb_posts p2 WHERE p.post_id = 9 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 9 AND f.forum_id = t.forum_id GROUP BY p.post_id, t.topic_id, t.topic_title, , COUNT(p2.post_id) AS prev_posts .= ', t.topic_first_post_id, t.topic_quiz'; // ADDED BY Quiz Hack t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC
Line : 147
File : /Forum/viewtopic.php
Die viewtopic.php schaut bei mir so aus:
140 $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
141 FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
142 WHERE $join_sql
143 AND f.forum_id = t.forum_id
144 $order_sql";
145 if ( !($result = $db->sql_query($sql)) )
146 {
147 message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
148 }
Wie meinst Du
Code: Alles auswählen
???
Kenne mich mit sowas fast garnet aus :( !
ich war eigentlich froh das das Forum lief !!
Naja Irgendwie klappt das ja auch wieder ! :D
Viellen Dank das Du mir soweit schon geholfen hast !
Gruss
Deathwish