summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-16 21:08:01 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-16 21:08:01 +1000
commitb666886416f793074669a7e2bc1d7cc3c2b4746a (patch)
treee5f69f4279621ce72747707e164aa358354b084c /inc/config.php
parent88dff2a683ea580930b95ffa33cccdf648d89cab (diff)
A few modifications:
1. Finally, clean up some of the crappy code in inc/display.php; no more extreme clutter. new Thread() and new Post() take an array as the first parameter now. 2. Poster country flags. Currently requires the "geoip" extension. 3. Give post images a classname. This was also long-overdue.
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index 2634f719..5e215fca 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -386,6 +386,11 @@
// When true, a blank password will be used for files (not usable for deletion).
$config['field_disable_password'] = false;
+ // Attach country flags to posts. Requires the PHP "geoip" extension to be installed:
+ // http://www.php.net/manual/en/intro.geoip.php. In the future, maybe I will find and include a proper
+ // pure-PHP geolocation library.
+ $config['country_flags'] = 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;
@@ -726,6 +731,17 @@
// Optional HTML to append to "You are banned" pages. For example, you could include instructions and/or
// a link to an email address or IRC chat room to appeal the ban.
$config['ban_page_extra'] = '';
+
+ // Display flags (when available). This config option has no effect unless poster flags are enabled (see
+ // $config['country_flags']). Disable this if you want all previously-assigned flags to be hidden.
+ $config['display_flags'] = true;
+
+ // Location of post flags/icons (where "%s" is the flag name). Defaults to static/flags/%s.png.
+ // $config['uri_flags'] = 'http://static.example.org/flags/%s.png';
+
+ // Width and height of post flags:
+ $config['flag_width'] = 16;
+ $config['flag_height'] = 11;
/*
* ====================