Added: /pol/-like flags based on a953229de7
Conflicts: inc/config.php templates/post_form.html
This commit is contained in:
@@ -531,6 +531,21 @@
|
||||
$config['country_flags_condensed'] = true;
|
||||
$config['country_flags_condensed_css'] = 'static/flags/flags.css';
|
||||
|
||||
// Let the user choose a /pol/-like user_flag that will be shown in the post. For the user flags, please be aware
|
||||
// that you will have to disable BOTH country_flags and contry_flags_condensed optimization (at least on a board
|
||||
// where they are enabled).
|
||||
$config['user_flag'] = false;
|
||||
|
||||
// List of user_flag the user can choose. Flag must be placed in the directory set by $config['uri_flags']
|
||||
$config['user_flags'] = [];
|
||||
/* example:
|
||||
$config['user_flags'] = array (
|
||||
'nz' => 'Nazi',
|
||||
'cm' => 'Communist',
|
||||
'eu' => 'Europe'
|
||||
);
|
||||
*/
|
||||
|
||||
/*
|
||||
* ====================
|
||||
* Ban settings
|
||||
|
@@ -201,6 +201,10 @@ function loadConfig() {
|
||||
$config['additional_javascript_url'] = $config['root'];
|
||||
if (!isset($config['uri_flags']))
|
||||
$config['uri_flags'] = $config['root'] . 'static/flags/%s.png';
|
||||
if (!isset($config['user_flag']))
|
||||
$config['user_flag'] = false;
|
||||
if (!isset($config['user_flags']))
|
||||
$config['user_flags'] = [];
|
||||
|
||||
if ($config['root_file']) {
|
||||
chdir($config['root_file']);
|
||||
|
Reference in New Issue
Block a user