From fe72d874609c0b15dece23d506050fd7771dbf89 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 4 Dec 2018 01:48:09 +0100 Subject: [PATCH 1/4] [ticket/15901] Add mcp_post_ template events PHPBB3-15901 --- phpBB/docs/events.md | 14 ++++++++++++++ phpBB/styles/prosilver/template/mcp_post.html | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index de3952cafc..8aad9a5c60 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -995,6 +995,20 @@ mcp_post_additional_options * Since: 3.1.5-RC1 * Purpose: Add content within the list of post moderation actions +mcp_post_text_before +=== +* Locations: + + styles/prosilver/template/mcp_post.html +* Since 3.2.6-RC1 +* Purpose: Add content before the post text + +mcp_post_text_after +=== +* Locations: + + styles/prosilver/template/mcp_post.html +* Since: 3.2.6-RC1 +* Purpose: Add content after the post text + mcp_post_report_buttons_top_after === * Locations: diff --git a/phpBB/styles/prosilver/template/mcp_post.html b/phpBB/styles/prosilver/template/mcp_post.html index cf9d0bd6c1..c2297a8053 100644 --- a/phpBB/styles/prosilver/template/mcp_post.html +++ b/phpBB/styles/prosilver/template/mcp_post.html @@ -108,10 +108,14 @@

+ {% EVENT mcp_post_text_before %} +
{POST_PREVIEW}
+ {% EVENT mcp_post_text_after %} +
{L_ATTACHMENTS}
From 337d5db292e504f6df87eb3e7b4519c5baf49dac Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 4 Dec 2018 01:56:34 +0100 Subject: [PATCH 2/4] [ticket/15901] Alphabetical order After has to be before before. Mind twist. PHPBB3-15901 --- phpBB/docs/events.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 8aad9a5c60..c1760c34d7 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -995,13 +995,6 @@ mcp_post_additional_options * Since: 3.1.5-RC1 * Purpose: Add content within the list of post moderation actions -mcp_post_text_before -=== -* Locations: - + styles/prosilver/template/mcp_post.html -* Since 3.2.6-RC1 -* Purpose: Add content before the post text - mcp_post_text_after === * Locations: @@ -1009,6 +1002,13 @@ mcp_post_text_after * Since: 3.2.6-RC1 * Purpose: Add content after the post text +mcp_post_text_before +=== +* Locations: + + styles/prosilver/template/mcp_post.html +* Since 3.2.6-RC1 +* Purpose: Add content before the post text + mcp_post_report_buttons_top_after === * Locations: From 4554376ac85f09bce3815fb2af6f7665a6ebb5b2 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 4 Dec 2018 02:31:14 +0100 Subject: [PATCH 3/4] [ticket/15901] Add missing semi-colon PHPBB3-15901 --- phpBB/docs/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index c1760c34d7..e587b0d39a 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -1006,7 +1006,7 @@ mcp_post_text_before === * Locations: + styles/prosilver/template/mcp_post.html -* Since 3.2.6-RC1 +* Since: 3.2.6-RC1 * Purpose: Add content before the post text mcp_post_report_buttons_top_after From fe382708f5d8dae6a49d5032d874bdfc6b26a2f2 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 4 Dec 2018 03:22:20 +0100 Subject: [PATCH 4/4] [ticket/15901] Alphabetical order PHPBB3-15901 --- phpBB/docs/events.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index e587b0d39a..8b38d554a3 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -995,20 +995,6 @@ mcp_post_additional_options * Since: 3.1.5-RC1 * Purpose: Add content within the list of post moderation actions -mcp_post_text_after -=== -* Locations: - + styles/prosilver/template/mcp_post.html -* Since: 3.2.6-RC1 -* Purpose: Add content after the post text - -mcp_post_text_before -=== -* Locations: - + styles/prosilver/template/mcp_post.html -* Since: 3.2.6-RC1 -* Purpose: Add content before the post text - mcp_post_report_buttons_top_after === * Locations: @@ -1023,6 +1009,20 @@ mcp_post_report_buttons_top_before * Since: 3.2.4-RC1 * Purpose: Add content before report buttons +mcp_post_text_after +=== +* Locations: + + styles/prosilver/template/mcp_post.html +* Since: 3.2.6-RC1 +* Purpose: Add content after the post text + +mcp_post_text_before +=== +* Locations: + + styles/prosilver/template/mcp_post.html +* Since: 3.2.6-RC1 +* Purpose: Add content before the post text + mcp_topic_options_after === * Locations: