[ticket/17326] Change column length of icon and update ACP language

PHPBB-17326
This commit is contained in:
Daniel James 2024-08-12 20:57:23 +01:00 committed by Marc Alexander
parent 1729e3f52b
commit c2725b441c
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
4 changed files with 10 additions and 9 deletions

View file

@ -50,7 +50,7 @@
<fieldset> <fieldset>
<legend>{{ lang('APPEARANCE') }}</legend> <legend>{{ lang('APPEARANCE') }}</legend>
<dl> <dl>
<dt><label for="bbcode_font_icon">{{ lang('BBCODE_FONT_ICON') }}</label><br /><span>{{ lang('BBCODE_FONT_ICON_EXPLAIN') }}</span></dt> <dt><label for="bbcode_font_icon">{{ lang('BBCODE_FONT_ICON') }}</label><br /><span>{L_BBCODE_FONT_ICON_EXPLAIN}</span></dt>
<dd> <dd>
<input type="text" name="bbcode_font_icon" id="bbcode_font_icon" value="{{ BBCODE_FONT_ICON }}" /> <input type="text" name="bbcode_font_icon" id="bbcode_font_icon" value="{{ BBCODE_FONT_ICON }}" />
{{ Icon('font', BBCODE_FONT_ICON, '', false, '', {'id':'bbcode_icon_preview'}) }} {{ Icon('font', BBCODE_FONT_ICON, '', false, '', {'id':'bbcode_icon_preview'}) }}

View file

@ -105,6 +105,7 @@ class acp_bbcodes
'U_ACTION' => $this->u_action . '&amp;action=' . (($action == 'add') ? 'create' : 'modify') . (($bbcode_id) ? "&amp;bbcode=$bbcode_id" : ''), 'U_ACTION' => $this->u_action . '&amp;action=' . (($action == 'add') ? 'create' : 'modify') . (($bbcode_id) ? "&amp;bbcode=$bbcode_id" : ''),
'L_BBCODE_USAGE_EXPLAIN' => sprintf($user->lang['BBCODE_USAGE_EXPLAIN'], '<a href="#down">', '</a>'), 'L_BBCODE_USAGE_EXPLAIN' => sprintf($user->lang['BBCODE_USAGE_EXPLAIN'], '<a href="#down">', '</a>'),
'L_BBCODE_FONT_ICON_EXPLAIN' => sprintf($user->lang['BBCODE_USAGE_EXPLAIN'], '<a href="https://fontawesome.com/v6/icons/" target="_blank">', '</a>'),
'BBCODE_MATCH' => $bbcode_match, 'BBCODE_MATCH' => $bbcode_match,
'BBCODE_TPL' => $bbcode_tpl, 'BBCODE_TPL' => $bbcode_tpl,
'BBCODE_HELPLINE' => $bbcode_helpline, 'BBCODE_HELPLINE' => $bbcode_helpline,

View file

@ -54,7 +54,7 @@ $lang = array_merge($lang, array(
'BBCODE_HELPLINE_TEXT' => 'Help line text', 'BBCODE_HELPLINE_TEXT' => 'Help line text',
'BBCODE_HELPLINE_TOO_LONG' => 'The help line you entered is too long.', 'BBCODE_HELPLINE_TOO_LONG' => 'The help line you entered is too long.',
'BBCODE_FONT_ICON' => 'BBCode icon', 'BBCODE_FONT_ICON' => 'BBCode icon',
'BBCODE_FONT_ICON_EXPLAIN' => 'Enter the name of a Font Awesome icon (without the fa prefix) to display instead of the BBCode name appearing on the button. <a href="https://fontawesome.com/v6/icons/" target="_blank">Click here</a> to view the list of available icons.', 'BBCODE_FONT_ICON_EXPLAIN' => 'Enter the name of a Font Awesome icon (without the fa prefix) to display instead of the BBCode name appearing on the button. %1$sClick here%2$s to view the list of available icons. Only solid style icons are supported.',
'BBCODE_FONT_ICON_TOO_LONG' => 'The icon name you have entered is too long.', 'BBCODE_FONT_ICON_TOO_LONG' => 'The icon name you have entered is too long.',
'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.', 'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.',

View file

@ -32,7 +32,7 @@ class add_bbcode_font_icon extends \phpbb\db\migration\migration
return [ return [
'add_columns' => [ 'add_columns' => [
$this->table_prefix . 'bbcodes' => [ $this->table_prefix . 'bbcodes' => [
'bbcode_font_icon' => ['VCHAR:50', ''], 'bbcode_font_icon' => ['VCHAR:64', ''],
], ],
], ],
]; ];