Verfasst: 22.01.2005 01:43
Hallo,
ich hoffe das ist der richtige Thread zum Quiz Mod, denn hier gibt es ja einige.
Mein Problem:
Es taucht eine Fehlermeldung auf wenn ich eine Quizfrage manuell stellen will:
Was ist da wieder falsch?
Die Zeile 261 - 269 sehen so aus:
Wenn ich die Index Seite oder Threads im Forum öffne erscheint ab und zu auch diese Fehlermeldung. Sie verschwindet wenn ich den Brwoser aktualisiere.
Grundsätzlich warum tauchen die Quizfragen nicht im Forum auf obwohl ich diese Freigegeben habe?
Und wenn ich sie nochmal aktiviere dann kommt "Sie können diese Quizfrage(n) nicht freigeben, da sie bereits freigegeben sind."
Kann mir jemand helfen?
Wer kann mir helfen?
ich hoffe das ist der richtige Thread zum Quiz Mod, denn hier gibt es ja einige.
Mein Problem:
Es taucht eine Fehlermeldung auf wenn ich eine Quizfrage manuell stellen will:
Code: Alles auswählen
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near '/ ADDED , topic_quiz AND , 1 BY Quiz Hack)' at line 1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_quiz) VALUES ('', 2, 1106349067, 20, 0, 0, 0, 1// ADDED , topic_quiz AND , 1 BY Quiz Hack)
Line : 268
File : /www/htdocs/...../forum/includes/functions_post.php
Die Zeile 261 - 269 sehen so aus:
Code: Alles auswählen
if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$topic_vote = (!empty($poll_title) && count($poll_options) >= 2) ? 1 : 0;
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_quiz) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, " . ( empty($post_data['topic_quiz']) ? '0' : '1' ) . "// ADDED , topic_quiz AND , " . ( empty($post_data['topic_quiz']) ? '0' : '1' ) . " BY Quiz Hack)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
Grundsätzlich warum tauchen die Quizfragen nicht im Forum auf obwohl ich diese Freigegeben habe?
Und wenn ich sie nochmal aktiviere dann kommt "Sie können diese Quizfrage(n) nicht freigeben, da sie bereits freigegeben sind."
Kann mir jemand helfen?
Wer kann mir helfen?