From db3c7f4ee984002fccb86e0cb3fda45edde74351 Mon Sep 17 00:00:00 2001 From: Jano Slota Date: Fri, 4 Jul 2014 02:47:24 +0200 Subject: Rework the GeoIP code, add country-based poster names --- inc/config.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'inc/config.php') 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; -- cgit v1.3