Seite 34 von 111

Verfasst: 17.01.2003 15:58
von Markocat
Ja genau das selbe Problem ist bei mir auch noch als einziges
das keine Zeitgesteuerten Quizfragen gestartet werden

Verfasst: 17.01.2003 16:01
von saerdnaer
@sqrt: du hast den quiz teil an der falschen stelle eingefügt: suche
//
// 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

}
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...
ah

Verfasst: 17.01.2003 16:05
von SQRT
:D *peinlich*

TAUSEND DANK, es funzt jetzt! 8) Das beste Mod, was es bis jetzt für phpBB gab! Noch besser als das BirthdayMod!

Verfasst: 17.01.2003 16:13
von Markocat
ja hier

...

Verfasst: 17.01.2003 16:54
von Patricia

...

Verfasst: 17.01.2003 17:36
von Patricia
welcher code in diesem mod ist denn für das automatische posten verantwortlich?

Verfasst: 17.01.2003 18:35
von Gast
Nein leider, im Administratorenbereich hatte sich nichts verändert.
Deiner Frage entnehme ich, dass es das wohl sollte?

Hmmm? Habe ich bei der Installation was falsch gemacht?

Mandy

Verfasst: 17.01.2003 19:45
von SQRT
Nicht alle durcheinander, da wird man ja verrückt! Zitiert doch mal die Antwort zu der Frage und auch andersherum!!!

Wollte noch ein Erweiterungsvorschlag los werden!!!

Also ich wollte es mal so machen, dass ich ein Bild im Post zeige oder eine SOund-Datei, zu der ich dann eine Frage stelle! Wäre es möglich dies mit dem AttachmentMod zu verknüpfen? wenn nicht wäre es denn möglich so ein Feld hinzuzufügen, wo man dann entweder ein Foto hochlädt?

cu

SQRT

Re: ...

Verfasst: 17.01.2003 22:15
von Patricia
---> TOTER LINK:
Patricia hat geschrieben:common.txt
---> Für die nächsten 24h: common.txt

Verfasst: 18.01.2003 00:18
von Gast
kann mir jemand nun sagen, wie ich den Quiz_hack richtig installiere?

Mandy