Hi...
hab des jetzt irgendwie wegbekommen... aber dafür sind andere fehler meldungen aufgetaucht.
Admin --> Quiz --> Quizfrage manuell stellen
wenn ich da eins auswähle und weiter klick kommt die fehler meldung:
Code: Alles auswählen
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use 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 ('Quiz frage #1 ...', 3, 1090071841, 9, 0, 0, 0, 1 // ADDED , topic_quiz AND , 1 BY Quiz Hack)
Line : 280
File : ...../../htdocs/forum/includes/functions_post.php
das steht bei mir in der zeile 270 bis 290. ist da ein fehler? wenn ja was?
Code: Alles auswählen
remove_search_post($post_id);
}
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);
}
if ($mode == 'newtopic')
{
$topic_id = $db->sql_nextid();
}
}
$edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";
nächster fehler wäre:
Admin --> Quiz ---> importieren
Code: Alles auswählen
Warning: opendir(../quiz_export/): failed to open dir: No such file or directory in /home/vhosts/5000125586/tobecool.de/htdocs/forum/admin/admin_quiz.php on line 831
Warning: readdir(): supplied argument is not a valid Directory resource in /home/vhosts/5000125586/tobecool.de/htdocs/forum/admin/admin_quiz.php on line 832
Warning: closedir(): supplied argument is not a valid Directory resource in /home/vhosts/5000125586/tobecool.de/htdocs/forum/admin/admin_quiz.php on line 839
und in der datei seht von zeile 823 bis 548 das hier:
Code: Alles auswählen
else
{
$server_file_select = '<select name="file_name"><option value="">--</option>';
@umask(0111);
if ( !@is_dir($phpbb_root_path . $quiz_data_dir) )
{
@mkdir($phpbb_root_path . $quiz_data_dir, 0777);
}
$dir = opendir($phpbb_root_path . $quiz_data_dir);
while ( $file = readdir($dir) )
{
if ( $file != '.' && $file != '..' && $file != 'index.htm' && is_file($phpbb_root_path . $quiz_data_dir . $file) )
{
$server_file_select .= '<option>' . $file . '</option>';
}
}
closedir($dir);
$server_file_select .= '</select>';
$sql = "SELECT *
FROM " . QUIZ_CONFIG_TABLE . "
WHERE config_name = 'libraries'";
if ( !($result = $db->sql_query($sql)) )
ich hab natürlich auch geschaut und meine install sachen noch mal nach geschaut aber... irgendwie hab ich nichts falsches finden können.. hoffe, einer von euch hatte mehr glück als ich und kann mir da helfen.
P.S.: nur so neben bei... wo kann man dann den quiz machen? wo tauchen die fragen auf? gibs kein button oder so wo es dann zu quiz-fragen geht... wo man dann quiz machen kann?
MfG Werbung
Der Meister sprach: "Lernen ist eine Tätigkeit, bei der man das Ziel nie erreicht und zugleich immer fürchten muss, das schon Erreichte wieder zu verlieren."