mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
Ticket# 11477 - Allow customisation of "Board index"
This commit is contained in:
parent
b583f6d8d9
commit
9e5cde7f66
5 changed files with 7 additions and 1 deletions
|
@ -55,6 +55,7 @@ class acp_board
|
||||||
'site_desc' => array('lang' => 'SITE_DESC', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => false),
|
'site_desc' => array('lang' => 'SITE_DESC', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => false),
|
||||||
'site_home_url' => array('lang' => 'SITE_HOME_URL', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true),
|
'site_home_url' => array('lang' => 'SITE_HOME_URL', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true),
|
||||||
'site_home_text' => array('lang' => 'SITE_HOME_TEXT', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true),
|
'site_home_text' => array('lang' => 'SITE_HOME_TEXT', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true),
|
||||||
|
'board_home_text' => array('lang' => 'BOARD_HOME_TEXT', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true),
|
||||||
'board_disable' => array('lang' => 'DISABLE_BOARD', 'validate' => 'bool', 'type' => 'custom', 'method' => 'board_disable', 'explain' => true),
|
'board_disable' => array('lang' => 'DISABLE_BOARD', 'validate' => 'bool', 'type' => 'custom', 'method' => 'board_disable', 'explain' => true),
|
||||||
'board_disable_msg' => false,
|
'board_disable_msg' => false,
|
||||||
'default_lang' => array('lang' => 'DEFAULT_LANGUAGE', 'validate' => 'lang', 'type' => 'select', 'function' => 'language_select', 'params' => array('{CONFIG_VALUE}'), 'explain' => false),
|
'default_lang' => array('lang' => 'DEFAULT_LANGUAGE', 'validate' => 'lang', 'type' => 'select', 'function' => 'language_select', 'params' => array('{CONFIG_VALUE}'), 'explain' => false),
|
||||||
|
|
|
@ -108,6 +108,8 @@ class phpbb_db_migration_data_310_dev extends phpbb_db_migration
|
||||||
array('config.add', array('site_home_url', '')),
|
array('config.add', array('site_home_url', '')),
|
||||||
array('config.add', array('site_home_text', '')),
|
array('config.add', array('site_home_text', '')),
|
||||||
|
|
||||||
|
array('config.add', array('board_home_text', '')),
|
||||||
|
|
||||||
array('permission.add', array('u_chgprofileinfo', true, 'u_sig')),
|
array('permission.add', array('u_chgprofileinfo', true, 'u_sig')),
|
||||||
|
|
||||||
array('module.add', array(
|
array('module.add', array(
|
||||||
|
|
|
@ -5292,7 +5292,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||||
'BOARD_URL' => $board_url,
|
'BOARD_URL' => $board_url,
|
||||||
|
|
||||||
'L_LOGIN_LOGOUT' => $l_login_logout,
|
'L_LOGIN_LOGOUT' => $l_login_logout,
|
||||||
'L_INDEX' => $user->lang['FORUM_INDEX'],
|
'L_INDEX' => ($config['board_home_text'] !== '') ? $config['board_home_text'] : $user->lang['FORUM_INDEX'],
|
||||||
'L_SITE_HOME' => ($config['site_home_text'] !== '') ? $config['site_home_text'] : $user->lang['HOME'],
|
'L_SITE_HOME' => ($config['site_home_text'] !== '') ? $config['site_home_text'] : $user->lang['HOME'],
|
||||||
'L_ONLINE_EXPLAIN' => $l_online_time,
|
'L_ONLINE_EXPLAIN' => $l_online_time,
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email', 'add
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email_form', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email_form', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email_sig', '{L_CONFIG_BOARD_EMAIL_SIG}');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_email_sig', '{L_CONFIG_BOARD_EMAIL_SIG}');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_hide_emails', '1');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_hide_emails', '1');
|
||||||
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_home_text', '');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_timezone', 'UTC');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_timezone', 'UTC');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('browser_check', '1');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('browser_check', '1');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_interval', '10');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('bump_interval', '10');
|
||||||
|
|
|
@ -37,6 +37,8 @@ if (empty($lang) || !is_array($lang))
|
||||||
// Board Settings
|
// Board Settings
|
||||||
$lang = array_merge($lang, array(
|
$lang = array_merge($lang, array(
|
||||||
'ACP_BOARD_SETTINGS_EXPLAIN' => 'Here you can determine the basic operation of your board, give it a fitting name and description, and among other settings adjust the default values for timezone and language.',
|
'ACP_BOARD_SETTINGS_EXPLAIN' => 'Here you can determine the basic operation of your board, give it a fitting name and description, and among other settings adjust the default values for timezone and language.',
|
||||||
|
'BOARD_HOME_TEXT' => 'Board index text',
|
||||||
|
'BOARD_HOME_TEXT_EXPLAIN' => 'This text is displayed as the board index in the board’s breadcrumbs. If not specified, it will default to “Board index”.',
|
||||||
'CUSTOM_DATEFORMAT' => 'Custom…',
|
'CUSTOM_DATEFORMAT' => 'Custom…',
|
||||||
'DEFAULT_DATE_FORMAT' => 'Date format',
|
'DEFAULT_DATE_FORMAT' => 'Date format',
|
||||||
'DEFAULT_DATE_FORMAT_EXPLAIN' => 'The date format is the same as the PHP <code>date</code> function.',
|
'DEFAULT_DATE_FORMAT_EXPLAIN' => 'The date format is the same as the PHP <code>date</code> function.',
|
||||||
|
|
Loading…
Add table
Reference in a new issue