diff --git a/contribution/bbcode/type.php b/contribution/bbcode/type.php index ff7d89cc4..9af3098dc 100644 --- a/contribution/bbcode/type.php +++ b/contribution/bbcode/type.php @@ -77,9 +77,9 @@ protected function configure() 'explain' => 'REVISION_BBCODE_USE_EXPLAIN', ), 'revision_bbc_help_line' => array( - 'type' => 'input', + 'type' => 'textarea', 'name' => 'REVISION_HELP_LINE', - 'explain' => '', + 'explain' => 'REVISION_HELP_LINE_EXPLAIN', ), 'revision_bbc_demo' => array( 'type' => 'textarea', diff --git a/language/en/types/bbcode.php b/language/en/types/bbcode.php index e2da7be04..e6e869078 100644 --- a/language/en/types/bbcode.php +++ b/language/en/types/bbcode.php @@ -85,8 +85,8 @@ 'PUBLIC_ATTR_WAIVED' => 'Public performance attribution has been waived.', 'REVISION_HTML_REPLACE' => 'HTML Replacement', 'REVISION_BBCODE_USE' => 'BBCode Usage', - 'REVISION_HELP_LINE' => 'Help Line', + 'REVISION_HELP_LINE' => 'BBCode Help', 'REVISION_HTML_REPLACE_EXPLAIN' => 'Here you define the default HTML replacement.', 'REVISION_BBCODE_USE_EXPLAIN' => 'Here you define how to use the BBCode.', - 'REVISION_HELP_LINE_EXPLAIN' => 'This field contains the bbcode help that shows when mouse over text of the BBCode', + 'REVISION_HELP_LINE_EXPLAIN' => 'The help text shown in the posting editor when hovering over the BBCode button.', )); diff --git a/migrations/bbcode_help_text.php b/migrations/bbcode_help_text.php new file mode 100644 index 000000000..b4cdb6928 --- /dev/null +++ b/migrations/bbcode_help_text.php @@ -0,0 +1,57 @@ + +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +namespace phpbb\titania\migrations; + +/** + * Class bbcode_help_text + * Extends the BBCode help line to a text column, following phpBB 3.3.5's + * extension of bbcode_helpline (PHPBB3-16804). + * @package phpbb\titania\migrations + */ +class bbcode_help_text extends base +{ + static public function depends_on() + { + return array( + '\phpbb\titania\migrations\release_1_1_0', + '\phpbb\titania\migrations\release_1_1_1', + ); + } + + public function update_schema() + { + $table_prefix = $this->get_titania_table_prefix(); + + return array( + 'change_columns' => array( + $table_prefix . 'revisions' => array( + 'revision_bbc_help_line' => array('TEXT_UNI', ''), + ), + ), + ); + } + + public function revert_schema() + { + $table_prefix = $this->get_titania_table_prefix(); + + return array( + 'change_columns' => array( + $table_prefix . 'revisions' => array( + 'revision_bbc_help_line' => array('VCHAR:255', ''), + ), + ), + ); + } +} diff --git a/styles/prosilver/template/common/contribution_details.html b/styles/prosilver/template/common/contribution_details.html index 0a07244d7..4d1aa2bc8 100644 --- a/styles/prosilver/template/common/contribution_details.html +++ b/styles/prosilver/template/common/contribution_details.html @@ -208,7 +208,7 @@
{{ CONTRIB_BBC_HTML_REPLACEMENT }}{{ CONTRIB_BBC_HELPLINE }}{{ CONTRIB_BBC_HELPLINE|nl2br }}{{ revisions.BBC_HTML_REPLACEMENT }}{{ revisions.BBC_HELPLINE }}{{ revisions.BBC_HELPLINE|nl2br }}