Hab aber schon bei der Installation Probleme:
und zwar ist in meiner modcp.php das#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, p.*, pt.post_text, pt.bbcode_uid, pt.post_subject, p.post_username
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time ASC";
#
#-----[ IN-LINE, FIND ]------------------------------------------
#
pt.post_subject,
#
#-----[ IN-LINE, AFTER, ADD ]------------------------------------------
#
pt.quiz_answer,
#
#-----[ IN-LINE, FIND ]------------------------------------------
#
p.post_time ASC
#
#-----[ IN-LINE, AFTER, ADD ]------------------------------------------
#
, p.post_id ASC
#
#-----[ AFTER, ADD ]------------------------------------------
#
// ADDED pt.quiz_answer, AND , p.post_id ASC WITH Quiz Hack
#
#-----[ FIND ]------------------------------------------
#
$message = str_replace("\n", '<br />', $message);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// BEGIN Quiz Hack
if ( !empty($topic_row['topic_quiz']) )
{
if ( $i == 0 )
{
if ( !isset($quiz) )
{
include($phpbb_root_path . 'includes/quiz.'.$phpEx);
}
$message = $quiz->insert_block(QUIZ_QUESTION, $message, $topic_id, true);
}
else if ( !empty($postrow[$i]['quiz_answer']) )
{
if ( !isset($quiz) )
{
include($phpbb_root_path . 'includes/quiz.'.$phpEx);
}
$message = $quiz->insert_block(QUIZ_ANSWER, $message, $topic_id, $postrow[$i]);
}
}
// END Quiz Hack
#
#-----[ FIND ]------------------------------------------
und das$sql = "SELECT u.username, p.*, pt.post_text, pt.bbcode_uid, pt.post_subject, p.post_username
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time ASC";
Code: Alles auswählen
$message = str_replace("\n", '<br />', $message);
Und:
in meiner posting_pody.tpl
Code: Alles auswählen
/templates/xxx/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
formErrors = "{L_EMPTY_MESSAGE}";
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_quiz_answer_js -->
{switch_quiz_answer_js.JS}
<!-- END switch_quiz_answer_js -->
Code: Alles auswählen
formErrors = "{L_EMPTY_MESSAGE}";
}