summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorJano Slota <jano@alokal.eu>2014-07-04 02:47:24 +0200
committerczaks <marcin@6irc.net>2014-07-06 01:29:12 +0200
commitdb3c7f4ee984002fccb86e0cb3fda45edde74351 (patch)
tree3559fe5daab91f50f134e8bb9a12cb1ac9c7595e /inc/config.php
parent4adf893c3906bebb29fc1720793366291da87b58 (diff)
Rework the GeoIP code, add country-based poster names
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index 4ffff767..1dbec895 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -773,9 +773,14 @@
// $config['board_path'] if you wish to change the URL.
$config['board_abbreviation'] = '/%s/';
- // The default name (ie. Anonymous). Can be an array - in that case it's picked randomly from the array.
+ // The default name (e.g. Anonymous). Can be an array - in that case it's picked randomly from the array.
// Example: $config['anonymous'] = array('Bernd', 'Senpai', 'Jonne', 'ChanPro');
$config['anonymous'] = 'Anonymous';
+ // Pick the default name based on the poster's country. Can contain subarrays and is picked randomly from the them.
+ // If the user posts from a country you have not set a name for, his name is going to be whatever you set in $config['anonymous'].
+ // Example 1: $config['country_anonymous'] = array('cz' => 'Pepik', 'pl' => 'Karol Wojtyla', 'de' => 'Bernd', 'fi' => 'Jonne');
+ // Example 2: $config['country_anonymous'] = array('cz' => array('Pepik', 'Bohus', 'Lada'), 'pl' => array('Karol Wojtyla', 'Demon Pedofyl');
+ $config['country_anonymous'] = false;
// Number of reports you can create at once.
$config['report_limit'] = 3;