Verfasst: 17.01.2003 15:58
Ja genau das selbe Problem ist bei mir auch noch als einziges
das keine Zeitgesteuerten Quizfragen gestartet werden
das keine Zeitgesteuerten Quizfragen gestartet werden
ersetzen durch//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
if (isset($board_config['board_disable_text']) && (trim($board_config['board_disable_text']) != ""))
{
message_die(CRITICAL_MESSAGE, $board_config['board_disable_text'], 'Information');
}
else
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
// BEGIN Quiz Hack
$sql = "SELECT config_name, config_value FROM " . QUIZ_CONFIG_TABLE . " WHERE config_name IN ('next_quiz','last_start_time','disable')";
if ( !$quiz_result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not get quiz config information", "", __LINE__, __FILE__, $sql);
}
while ( $quiz_row = $db->sql_fetchrow($quiz_result) )
{
$quiz_config[$quiz_row['config_name']] = $quiz_row['config_value'];
}
$current_time = time();
if( !$quiz_config['disable'] && $quiz_config['next_quiz'] <= $current_time && $quiz_config['last_start_time'] + 30 <= $current_time )
{
include($phpbb_root_path . 'includes/quiz.'.$phpEx);
if ( $quiz->set_last_start_time() )
{
if ( $quiz->make_question_post( $quiz->get_random_quiz_id() ) )
{
$quiz->set_next_quiz_time();
}
}
}
// END Quiz Hack
}
@Markocat: zeig deine common.php auch mal als .txt mit link...//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
if (isset($board_config['board_disable_text']) && (trim($board_config['board_disable_text']) != ""))
{
message_die(CRITICAL_MESSAGE, $board_config['board_disable_text'], 'Information');
}
else
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
}
// BEGIN Quiz Hack
$sql = "SELECT config_name, config_value FROM " . QUIZ_CONFIG_TABLE . " WHERE config_name IN ('next_quiz','last_start_time','disable')";
if ( !$quiz_result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not get quiz config information", "", __LINE__, __FILE__, $sql);
}
while ( $quiz_row = $db->sql_fetchrow($quiz_result) )
{
$quiz_config[$quiz_row['config_name']] = $quiz_row['config_value'];
}
$current_time = time();
if( !$quiz_config['disable'] && $quiz_config['next_quiz'] <= $current_time && $quiz_config['last_start_time'] + 30 <= $current_time )
{
include($phpbb_root_path . 'includes/quiz.'.$phpEx);
if ( $quiz->set_last_start_time() )
{
if ( $quiz->make_question_post( $quiz->get_random_quiz_id() ) )
{
$quiz->set_next_quiz_time();
}
}
}
// END Quiz Hack
---> Für die nächsten 24h: common.txtPatricia hat geschrieben:common.txt