Hallo,
ich hab mir auch mal den schönen Quiz Mod installiert bekomm aber wenn ich im Adminpanel Quizfrage Manuell stellen will eine Fehlermeldung
Code: Alles auswählen
Warning: Missing argument 21 for submit_post() in d:\apache group\www\phpBB2\includes\functions_post.php on line 491
Warning: Missing argument 22 for submit_post() in d:\apache group\www\phpBB2\includes\functions_post.php on line 491
Allgemeiner Fehler
Error in posting
DEBUG MODE
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, is_disapproved, enable_html, enable_smilies, enable_sig, post_icon) VALUES (51, 1, 2, 'Quiz Frage #1 ...', 1040556370, '7f000001', 1, 0, 1, 0, 25efb6e9aa, '')
Line : 600
File : d:\apache group\www\phpBB2\includes\functions_post.php
und das sind die zeilen aus der functions_post.php
Code: Alles auswählen
$edited_sql = ( $mode == 'editpost' && !$post_data['last_post'] ) ? ", post_edit_user = $user_id, post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";
$sql = ( $mode != "editpost" ) ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, is_disapproved, enable_html, enable_smilies, enable_sig, post_icon) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $auto_disapprove, $html_on, $smilies_on, $attach_sig, '$MsgIcon')" : "UPDATE " . POSTS_TABLE . " SET enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . ", post_icon = $MsgIcon WHERE post_id = $post_id";
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ( $mode != 'editpost' )
{
$post_id = $db->sql_nextid();
}
// BEGINN Quiz Hack
$quiz_sql1 = !empty($post_data['quiz_answer']) ? ', quiz_answer' : '';
$quiz_sql2 = !empty($post_data['quiz_answer']) ? ( ", '" . $post_data['quiz_answer'] . "'" ) : '';
// END Quiz Hack
$sql = ( $mode != 'editpost' ) ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text $quiz_sql1) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message' $quiz_sql2)" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}