man kann dort nur zwischen 1968 und 1972 einstellen
hat niemand einen ahnung??
Wenn ich eine Frage
Quizfrage manuell stellen will, kommt folgende Fehlermeldung:
Code: Alles auswählen
Warning: Missing argument 21 for submit_post() in /usr/local/httpd/htdocs/971/903/forum/includes/functions_post.php on line 222
Allgemeiner Fehler
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near ' , 1)' at line 1
INSERT INTO phpbbol_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, topic_quiz) VALUES ('Quiz Frage #1 ...', 2, 1040472501, 21, 0, 0, 0, , , 1)
Line : 268
File : /usr/local/httpd/htdocs/971/903/forum/includes/functions_post.php
Powered by phpBB 2.0.3 © 2001 phpBB Group
Code aus der functions_post.php
Code: Alles auswählen
//
// Post a new topic/reply/poll or edit existing post/poll
//
Zeile 222: function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length, &$MsgIcon)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
Nur die Zeile 256 bis 275
Code: Alles auswählen
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$topic_vote = ( !empty($poll_title) && count($poll_options) >= 2 ) ? 1 : 0;
// BEGINN Quiz Hack
$quiz_sql1 = !empty($post_data['topic_quiz']) ? ', topic_quiz' : '';
$quiz_sql2 = !empty($post_data['topic_quiz']) ? ', 1' : '';
// END Quiz Hack
$sql = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, topic_quiz) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, , $quiz_sql2)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $MsgIcon WHERE topic_id = $topic_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ( $mode == 'newtopic' )
{
$topic_id = $db->sql_nextid();
}
}