############################################################## ## Add-On Title: Anti Bot Question MOD - Advanced Quick Reply Add-On ## Add-On Author: MagMo < N/A > (N/A) http://phpbb.mwegner.de/ ## Add-On Description: EN: ## If you allow guests to post and you use the Advanced Quick Reply MOD and the Anti Bot Question MOD, this Add-On is ## necessary. This Add-On adds the anti-bot-question to the Advanced-Quick-Reply-form. ## Without this Add-On guests cannot use the Advanced-Quick-Reply-form! ## DE: ## Bei Benutzung des Advanced Quick Reply MOD in Kombination mit dem Anti Bot Question MOD ist dieses Add-On ## notwendig, wenn der Botschutz für Gästebeiträge aktiviert werden soll. Dieses Add-On fügt dem Advanced-Quick-Reply-Formular ## die Anti-Bot-Frage hinzu, nur so können Gäste die Frage richtig beantworten und somit den Advanced Quick Reply MOD nutzen. ## FR: ## Si vous autorisez les invités à poster et que vous utilisez les MODs Advanced Quick Reply MOD et Anti Bot Question cet ## Add-on est nécessaire. Il ajoute la question anti-robot au formulaire de réponse rapide du MOD Advanced-Quick-Reply. Sans ## cet add-on, les invités ne peuvent pas utiliser le formulaire ! ## ## Add-On Version: 1.0.1 ## ## Required MODs: Advanced Quick Reply MOD 1.1.1 ## Anti Bot Question MOD 1.0.2 ## ## Installation Level: easy ## Installation Time: 5 Minutes ## ## Files To Edit: 2 ## quick_reply.php ## templates/subSilver/quick_reply.tpl ## ## Included Files: - ## ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## ## Author Notes: ## #### EN: ## ## If you use the Advanced Quick Reply MOD 1.1.1 you need this add-on. ## #### DE: ## ## Wenn du den Advanced Quick Reply MOD 1.1.1 verwendest, dann benötigst du dieses Add-On. ## #### FR: ## ## Si vous utilisez le MOD Advanced Quick Reply MOD 1.1.1 vous avez besoin de cet add-on. ## ############################################################## ## ## Add-On History: ## ## 2006-06-12 - Version 1.0.0 ## - Initial Release ## ## 2006-06-14 - Version 1.0.1 ## - Da die Bildausgabe über die Datei bild.php nicht auf allen Servern funktioniert (abhängig von der Server-Konfiguration) kann die Funktion an-/ausgeschaltet werden. ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # quick_reply.php # #-----[ FIND ]------------------------------------------------ # $template->assign_block_vars('quick_reply', array( 'POST_ACTION' => append_sid("posting.$phpEx"), 'TOPIC_ID' => $topic_id, 'SID' => $userdata['session_id']) ); # #-----[ AFTER, ADD ]------------------------------------------------ # // Anti Bot Question Mod - Advanced Quick Reply AddOn - Start $abq_quest = ''; $abq_image = ''; $hidden_form_fields = ''; if ($board_config['anti_bot_quest_guest'] && !$userdata['session_logged_in']) { if (!isset($abq_id)) { $abq_id = 0; } if ($abq_id > 0) { $sql = 'SELECT * FROM ' . ANTI_BOT_QUEST_TABLE . ' WHERE lang = \'' . $board_config['default_lang'] . '\' AND id != ' . $abq_id . ' ORDER BY RAND() LIMIT 1'; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not obtain anti-bot-question information', '', __LINE__, __FILE__, $sql); } if ($db->sql_numrows($result) < 1) { $abq_id = 0; } } if ($abq_id <= 0) { $sql = 'SELECT * FROM ' . ANTI_BOT_QUEST_TABLE . ' WHERE lang = \'' . $board_config['default_lang'] . '\' ORDER BY RAND() LIMIT 1'; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not obtain anti-bot-question information', '', __LINE__, __FILE__, $sql); } } if ($db->sql_numrows($result) > 0) { $abqrow = $db->sql_fetchrow($result); $abq_quest = $abqrow['question']; $abq_image = $abqrow['anti_bot_img']; if ($abq_image != '') { if ($board_config['anti_bot_quest_bild']) { $abq_imfak = $userdata['session_id']; $abq_imfak = preg_replace('/[^0-9]/','',$abq_imfak); $abq_imfak = preg_replace('/^0+/','',$abq_imfak); if (strlen($abq_imfak) > 6) { $abq_imfak = substr($abq_imfak,0,6); } $abq_imfak = intval($abq_imfak); if ($abq_imfak < 100000) { $abq_imfak = 673758; } $abq_bildid = $abq_imfak + $abqrow['id']; $abq_image = '
'; } else { $abq_image = '
'; } } $hidden_form_fields = ''; $template->assign_block_vars('quick_reply.switch_anti_bot_question', array()); } } // Anti Bot Question Mod - Advanced Quick Reply AddOn - End # #-----[ FIND ]------------------------------------------------ # 'L_NO_TEXT_SELECTED' => $lang['Qreply_no_text_selected'], # #-----[ AFTER, ADD ]------------------------------------------------ # // Anti Bot Question Mod - Advanced Quick Reply AddOn - Start 'L_ABQ_Quest' => $abq_quest, 'L_ABQ_EXPLAIN' => ($board_config['anti_bot_quest_casesen']) ? $lang['ABQ_post_explain'].' '.$lang['ABQ_explain2'] : $lang['ABQ_post_explain'], 'L_ABQ_IMAGE' => $abq_image, 'L_ABQ_QUESTION' => $lang['ABQ_Question'], 'L_ABQ_ANSWER' => $lang['ABQ_Answer'], 'L_ABQ_VARNAME' => $board_config['anti_bot_quest_get'], 'L_ABQ_HIDDEN' => $hidden_form_fields, // Anti Bot Question Mod - Advanced Quick Reply AddOn - End # #-----[ OPEN ]------------------------------------------ # templates/subSilver/quick_reply.tpl # #-----[ FIND ]------------------------------------------------ #
{L_ATTACH_SIGNATURE}
{L_NOTIFY_ON_REPLY}

# #-----[ AFTER, ADD ]------------------------------------------------ # {L_ABQ_QUESTION}:{L_ABQ_HIDDEN}
{L_ABQ_EXPLAIN} {L_ABQ_Quest}{L_ABQ_IMAGE} {L_ABQ_ANSWER}: # #-----[ SAVE/CLOSE ALL FILES ]-------------------------------- # # EoM