diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 0ff9d63ec9..7ea4eb26c2 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -127,6 +127,7 @@
[Change] Quote BBCode no longer requires the f_reply permission. (Bug #16079)
[Change] Banning/unbanning users now generates an entry in their user notes (Bug #21825 - Patch by nickvergessen)
[Change] Smilies no longer require the f_bbcode permission. (Bug #26545)
+ [Change] Ability to define column split in FAQ/BBCode help (Bug #31405)
[Feature] Backported 3.2 captcha plugins.
[Feature] Introduced new ACM plugins:
diff --git a/phpBB/faq.php b/phpBB/faq.php
index da064e4452..04353de50f 100644
--- a/phpBB/faq.php
+++ b/phpBB/faq.php
@@ -38,15 +38,28 @@ switch ($mode)
}
// Pull the array data from the lang pack
+$switch_column = $found_switch = false;
$help_blocks = array();
foreach ($user->help as $help_ary)
{
if ($help_ary[0] == '--')
{
- $template->assign_block_vars('faq_block', array(
- 'BLOCK_TITLE' => $help_ary[1])
- );
+ if ($help_ary[1] == '--')
+ {
+ $switch_column = true;
+ $found_switch = true;
+ continue;
+ }
+ $template->assign_block_vars('faq_block', array(
+ 'BLOCK_TITLE' => $help_ary[1],
+ 'SWITCH_COLUMN' => $switch_column,
+ ));
+
+ if ($switch_column)
+ {
+ $switch_column = false;
+ }
continue;
}
@@ -58,9 +71,11 @@ foreach ($user->help as $help_ary)
// Lets build a page ...
$template->assign_vars(array(
- 'L_FAQ_TITLE' => $l_title,
- 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'])
-);
+ 'L_FAQ_TITLE' => $l_title,
+ 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'],
+
+ 'SWITCH_COLUMN_MANUALLY' => (!$found_switch) ? true : false,
+));
page_header($l_title);
diff --git a/phpBB/language/en/help_bbcode.php b/phpBB/language/en/help_bbcode.php
index ed6fea96d3..df5f950e3e 100644
--- a/phpBB/language/en/help_bbcode.php
+++ b/phpBB/language/en/help_bbcode.php
@@ -78,6 +78,11 @@ $help = array(
0 => 'Creating an Ordered list',
1 => 'The second type of list, an ordered list, gives you control over what is output before each item. To create an ordered list you use [list=1][/list] to create a numbered list or alternatively [list=a][/list] for an alphabetical list. As with the unordered list, items are specified using [*]. For example:
[list=1]
[*]Go to the shops
[*]Buy a new computer
[*]Swear at computer when it crashes
[/list]
will generate the following:- Go to the shops
- Buy a new computer
- Swear at computer when it crashes
Whereas for an alphabetical list you would use:
[list=a]
[*]The first possible answer
[*]The second possible answer
[*]The third possible answer
[/list]
giving- The first possible answer
- The second possible answer
- The third possible answer
'
),
+ // This block will switch the FAQ-Questions to the second template column
+ array(
+ 0 => '--',
+ 1 => '--'
+ ),
array(
0 => '--',
1 => 'Creating Links'
diff --git a/phpBB/language/en/help_faq.php b/phpBB/language/en/help_faq.php
index 89ac845021..88b2cc273d 100644
--- a/phpBB/language/en/help_faq.php
+++ b/phpBB/language/en/help_faq.php
@@ -202,6 +202,11 @@ $help = array(
0 => 'What are topic icons?',
1 => 'Topic icons are author chosen images associated with posts to indicate their content. The ability to use topic icons depends on the permissions set by the board administrator.'
),
+ // This block will switch the FAQ-Questions to the second template column
+ array(
+ 0 => '--',
+ 1 => '--'
+ ),
array(
0 => '--',
1 => 'User Levels and Groups'
diff --git a/phpBB/styles/prosilver/template/faq_body.html b/phpBB/styles/prosilver/template/faq_body.html
index 78c2fc11b7..36d677a505 100644
--- a/phpBB/styles/prosilver/template/faq_body.html
+++ b/phpBB/styles/prosilver/template/faq_body.html
@@ -7,7 +7,7 @@