From 7205801ced0f3b09166f388362f253a613b5ceb2 Mon Sep 17 00:00:00 2001 From: ctrlcctrlv Date: Thu, 8 Aug 2013 19:30:05 +0000 Subject: [PATCH] Optionally use email selectbox --- inc/config.php | 3 +++ templates/post_form.html | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/inc/config.php b/inc/config.php index 8e733f2e..b65c13ba 100644 --- a/inc/config.php +++ b/inc/config.php @@ -383,6 +383,9 @@ // When true, a blank password will be used for files (not usable for deletion). $config['field_disable_password'] = false; + // When true, users are instead presented a selectbox for email. Contains, blank, noko and sage. + $config['field_email_selectbox'] = false; + // Require users to see the ban page at least once for a ban even if it has since expired. $config['require_ban_view'] = true; diff --git a/templates/post_form.html b/templates/post_form.html index 12f1186b..fad81e85 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -25,11 +25,16 @@ {{ antibot.html() }} + {% if config.field_email_selectbox %} + + {% else %} - {{ antibot.html() }} - {% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %} - {% if config.spoiler_images %} {% endif %} {% endif %} + {{ antibot.html() }} {% endif %} {% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}