Quiz Hack

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.
Markocat
Mitglied
Beiträge: 245
Registriert: 16.05.2002 18:57
Wohnort: Bad Dürrenberg
Kontaktdaten:

Beitrag von Markocat »

Ja genau das selbe Problem ist bei mir auch noch als einziges
das keine Zeitgesteuerten Quizfragen gestartet werden
Benutzeravatar
saerdnaer
Ehemaliges Teammitglied
Beiträge: 4268
Registriert: 21.04.2001 02:00

Beitrag 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
Zuletzt geändert von saerdnaer am 17.01.2003 16:05, insgesamt 1-mal geändert.
SQRT
Mitglied
Beiträge: 452
Registriert: 17.05.2002 15:10
Wohnort: Köln
Kontaktdaten:

Beitrag 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!
Markocat
Mitglied
Beiträge: 245
Registriert: 16.05.2002 18:57
Wohnort: Bad Dürrenberg
Kontaktdaten:

Beitrag von Markocat »

ja hier
Patricia

...

Beitrag von Patricia »

Patricia

...

Beitrag von Patricia »

welcher code in diesem mod ist denn für das automatische posten verantwortlich?
Gast

Beitrag 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
SQRT
Mitglied
Beiträge: 452
Registriert: 17.05.2002 15:10
Wohnort: Köln
Kontaktdaten:

Beitrag 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
Patricia

Re: ...

Beitrag von Patricia »

---> TOTER LINK:
Patricia hat geschrieben:common.txt
---> Für die nächsten 24h: common.txt
Gast

Beitrag von Gast »

kann mir jemand nun sagen, wie ich den Quiz_hack richtig installiere?

Mandy
Gesperrt

Zurück zu „phpBB 2.0: Mod Support“