From 23c73ca83943fb720addebe461286bc4ff3679b9 Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Sat, 20 Sep 2014 15:21:50 +0000 Subject: [PATCH] Allow the user to decide whether or not he wants to display his country --- inc/config.php | 4 ++++ js/quick-reply.js | 2 ++ post.php | 2 +- templates/post_form.html | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/config.php b/inc/config.php index 3dd8eb6c..e2cc2ebd 100644 --- a/inc/config.php +++ b/inc/config.php @@ -274,6 +274,7 @@ 'file_url', 'json_response', 'user_flag', + 'no_country' ); // Enable reCaptcha to make spam even harder. Rarely necessary. @@ -531,6 +532,9 @@ // Attach country flags to posts. $config['country_flags'] = false; + // Allow the user to decide whether or not he wants to display his country + $config['allow_no_country'] = false; + // Load all country flags from one file $config['country_flags_condensed'] = true; $config['country_flags_condensed_css'] = 'static/flags/flags.css'; diff --git a/js/quick-reply.js b/js/quick-reply.js index 93cab334..07fe4aef 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -266,6 +266,8 @@ $postForm.find('input[type="file"]').parent() .removeAttr('colspan') .after($('').append(this, ' ', $('