Quiz Mod 0.2.1 Einbauproblem

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
BrahmA
Mitglied
Beiträge: 2283
Registriert: 25.07.2002 13:31
Wohnort: Münsterland

Beitrag von BrahmA »

Wo liegt denn dein problem?
findest du die entsprechenden einträge net?
musst doch nur finden und dahinter einfügen....
Gast

Beitrag von Gast »

Genau, ich weiß bei mehreren sachen nicht wo hin die sollen.
Wäre das nur eins gewesen wo ich nicht weiß wohin das kommt
hätte ich nur das gefragt, aber der gesamte einbau macht mir Probleme.

Deshalb frage ich euch, o Ihr mir das eben schnell einbauen könnt.
Benutzeravatar
Eclipse16V
Mitglied
Beiträge: 576
Registriert: 27.11.2002 17:04
Wohnort: Gießen
Kontaktdaten:

Beitrag von Eclipse16V »

Und wer kan mir jetzt helfen?
www.Eclipse16V.de
Erste Eclipse16V IG Deutschlands
Gast

Beitrag von Gast »

Kommt Leute, ich warte schon 2 Tage jetzt das mir einer das einbaut:

http://hacken.biz/viewtopic.txt

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
$order_sql = ( !isset($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, [...] 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
$count_sql .= ', t.topic_first_post_id, t.topic_quiz'; // ADDED BY Quiz Hack 
# 
#-----[ FIND ]------------------------------------------ 
# 
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, [...] 
   FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt 
   WHERE p.topic_id = $topic_id 
      $limit_posts_time 
      AND pt.post_id = p.post_id 
      AND u.user_id = p.poster_id 
   ORDER BY p.post_time $post_time_order 
   LIMIT $start, ".$board_config['posts_per_page']; 
# 
#-----[ IN-LINE, FIND ]------------------------------------------ 
# 
pt.bbcode_uid 
# 
#-----[ IN-LINE, AFTER, ADD ]------------------------------------------ 
# 
, pt.quiz_answer 
# 
#-----[ IN-LINE, FIND ]------------------------------------------ 
# 
ORDER BY p.post_time $post_time_order 
# 
#-----[ IN-LINE, AFTER, ADD ]------------------------------------------ 
# 
, p.post_id $post_time_order 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
// ADDED , pt.quiz_answer AND , p.post_id $post_time_order BY Quiz Hack 
# 
#-----[ FIND ]------------------------------------------ 
# 
   $message = str_replace("\n", "\n<br />\n", $message); 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
   // BEGIN Quiz Hack 
   $quiz_img = ''; 
   $quiz_txt = ''; 
   if ( !empty($forum_topic_data['topic_quiz']) ) 
   { 
      if ( $postrow[$i]['post_id'] == $forum_topic_data['topic_first_post_id'] ) 
      { 
         if ( !isset($quiz) ) 
         { 
            include($phpbb_root_path . 'includes/quiz.'.$phpEx); 
         } 
         $message = $quiz->insert_block(QUIZ_QUESTION, $message, $topic_id); 
      } 
      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]); 
      } 

      if ( $is_auth['auth_mod'] ) 
      { 
         switch ( $forum_topic_data['topic_quiz'] ) 
         { 
            case '1': 
               if ( $postrow[$i]['post_id'] != $forum_topic_data['topic_first_post_id'] ) 
               { 
                  $temp_url = append_sid("quiz.$phpEx?mode=manual_ok&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); 
                  $quiz_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quiz2'] . '" alt="' . $lang['Quiz_answer_manual_ok'] . '" title="' . $lang['Quiz_answer_manual_ok'] . '" border="0" /></a>'; 
                  $quiz_txt = '<a href="' . $temp_url . '">' . $lang['Quiz_answer_manual_ok'] . '</a>'; 
               } 
               break; 
            case '2': 
               if ( $postrow[$i]['post_id'] == $forum_topic_data['topic_first_post_id'] ) 
               { 
                  $temp_url = append_sid("quiz.$phpEx?mode=disagree_answer&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); 
                  $quiz_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quiz1'] . '" alt="' . $lang['Quiz_disagree_answer'] . '" title="' . $lang['Quiz_disagree_answer'] . '" border="0" /></a>'; 
                  $quiz_txt = '<a href="' . $temp_url . '">' . $lang['Quiz_disagree_answer'] . '</a>'; 
               } 
               break; 
            case '3': 
               if ( $postrow[$i]['post_id'] != $forum_topic_data['topic_first_post_id'] ) 
               { 
                  if ( !isset($quiz) ) 
                  { 
                     include($phpbb_root_path . 'includes/quiz.'.$phpEx); 
                  } 
                  if ( empty($quiz->quiz_data) ) 
                  { 
                     $quiz->get_quiz_data($topic_id); 
                  } 
                  if ( $postrow[$i]['post_id'] < $quiz->quiz_data['quiz_bot_post_id'] ) 
                  { 
                     $temp_url = append_sid("quiz.$phpEx?mode=correct_answer&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); 
                     $quiz_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quiz2'] . '" alt="' . $lang['Quiz_correct_answer'] . '" title="' . $lang['Quiz_correct_answer'] . '" border="0" /></a>'; 
                     $quiz_txt = '<a href="' . $temp_url . '">' . $lang['Quiz_correct_answer'] . '</a>'; 
                  } 
               } 
               break; 
         } 
      } 
   } 
   // END Quiz Hack 
# 
#-----[ FIND ]------------------------------------------ 
# 
      'DELETE' => $delpost, 
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
      // BEGIN Quiz Hack 
      'QUIZ_IMG' => $quiz_img, 
      'QUIZ' => $quiz_txt, 
      // END Quiz Hack 

#
Benutzeravatar
Eclipse16V
Mitglied
Beiträge: 576
Registriert: 27.11.2002 17:04
Wohnort: Gießen
Kontaktdaten:

Beitrag von Eclipse16V »

Ich glaube auch wenn man sich hier anmeldet bekommt man nicht schneller geholfen.

Melde dich doch einfach mal an.
www.Eclipse16V.de
Erste Eclipse16V IG Deutschlands
Gast

Beitrag von Gast »

Ich glaube eher keiner kann das einbauen :roll:
Benutzeravatar
Schumi
Ehemaliges Teammitglied
Beiträge: 4925
Registriert: 07.10.2002 12:37

Beitrag von Schumi »

Gast

Beitrag von Gast »

danke
Benutzeravatar
Eclipse16V
Mitglied
Beiträge: 576
Registriert: 27.11.2002 17:04
Wohnort: Gießen
Kontaktdaten:

Beitrag von Eclipse16V »

Und ich??? :cry:

Hier mal meine functions_post.php
http://www.eclipse16v.de/functions_post.txt
www.Eclipse16V.de
Erste Eclipse16V IG Deutschlands
Benutzeravatar
saerdnaer
Ehemaliges Teammitglied
Beiträge: 4268
Registriert: 21.04.2001 02:00

Beitrag von saerdnaer »

musst halt warten bis ich wieder da bin...;-))=

suche in der includes/quiz.php:

Code: Alles auswählen

prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
ersetzen durch

Code: Alles auswählen

$amazon = 0;
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $amazon, $poll_title, $poll_options, $poll_length);
suche:

Code: Alles auswählen

submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("'", "''", $username), str_replace("'", "''", $subject), str_replace("'", "''", $message), $poll_title, $poll_options, $poll_length);
ersetzen durch

Code: Alles auswählen

submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("'", "''", $username), str_replace("'", "''", $subject), str_replace("'", "''", $message), $amazon, $poll_title, $poll_options, $poll_length);
dann sollten die fehlermeldungen verschwinden

ah
Antworten

Zurück zu „phpBB 2.0: Mod Support“