Quiz Mod 0.2.1 Einbauproblem
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.
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.
einige anweisungen in der installationsanleitung stimmen bei mir nicht überein. zum beispiel diese beiden hier:
bei mir sieht die zeile aber so aus:
das soll man tun:
ich habe aber nur das hier:
was muss ich tun?
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------
#
if ($mode == 'newtopic' || $mode == 'reply')
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( !isset($post_data['flood_control_off']) && ( $mode == 'newtopic' || $mode == 'reply' ) ) // ADDED ' !isset($post_data['flood_control_off']) && ( ' AND ')' BY Quiz Hack
Code: Alles auswählen
if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
das soll man tun:
Code: Alles auswählen
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$order_sql = ( !isset($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, [...]
ich habe aber nur das hier:
Code: Alles auswählen
$order_sql = ( empty($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title,.....
beim ersten fall mach einfach folgendes
und beim 2. fall kanst du so tun als wäre der code so wie in der anleitung...
ah
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------
#
if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( !isset($post_data['flood_control_off']) && ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost') ) // ADDED ' !isset($post_data['flood_control_off']) && ( ' AND ')' BY Quiz Hack
und beim 2. fall kanst du so tun als wäre der code so wie in der anleitung...
ah
habe nun alles gemacht...wenn ich die install datei ausführen will kommt das hier:
Could not get quiz config information
DEBUG MODE
SQL Error : 1146 Table 'usr_web15_2.phpbb_quiz_config' doesn't exist
SELECT config_name, config_value FROM phpbb_quiz_config WHERE config_name IN ('next_quiz','last_start_time','disable')
Line : 198
File : /html/forum/common.php
Could not get quiz config information
DEBUG MODE
SQL Error : 1146 Table 'usr_web15_2.phpbb_quiz_config' doesn't exist
SELECT config_name, config_value FROM phpbb_quiz_config WHERE config_name IN ('next_quiz','last_start_time','disable')
Line : 198
File : /html/forum/common.php
liegt daran das du nicht eingeloggt bist...
entferne einfach folgenden teil aus der install:
ah
entferne einfach folgenden teil aus der install:
Code: Alles auswählen
if ( !$userdata['session_logged_in'] )
{
if ( function_exists('redirect') )
{
redirect(append_sid("login.$phpEx?redirect=" . basename(__FILE__), true));
}
else
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . './' . append_sid("login.$phpEx?redirect=" . basename(__FILE__), true));
exit;
}
}
else if ( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}