From 1d4c040d4f7b38370c0b0f08581cb54ea1a3792f Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 11 Aug 2014 19:49:04 +0800 Subject: [PATCH] [ticket/12969] Add template events around username link on composing pm Add template event before/after find username link on composing pm to allow extensions perform additional actions on user finding. PHPBB3-12969 --- phpBB/docs/events.md | 16 ++++++++++++++++ .../prosilver/template/posting_pm_header.html | 2 ++ phpBB/styles/subsilver2/template/ucp_header.html | 2 ++ 3 files changed, 20 insertions(+) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 4f39e71c3c..d4c27183c7 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -732,6 +732,22 @@ posting_editor_subject_before * Since: 3.1.0-a2 * Purpose: Add field (e.g. textbox) to the posting screen before the subject +posting_pm_header_find_username_after +=== +* Locations: + + styles/prosilver/template/posting_pm_header.html + + styles/subsilver2/template/ucp_header.html +* Since: 3.1.0-RC4 +* Purpose: Add content after the find username link on composing pm + +posting_pm_header_find_username_before +=== +* Locations: + + styles/prosilver/template/posting_pm_header.html + + styles/subsilver2/template/ucp_header.html +* Since: 3.1.0-RC4 +* Purpose: Add content before the find username link on composing pm + quickreply_editor_panel_after === * Locations: diff --git a/phpBB/styles/prosilver/template/posting_pm_header.html b/phpBB/styles/prosilver/template/posting_pm_header.html index dea50b5daf..032d8c6a6f 100644 --- a/phpBB/styles/prosilver/template/posting_pm_header.html +++ b/phpBB/styles/prosilver/template/posting_pm_header.html @@ -15,7 +15,9 @@
+ {L_FIND_USERNAME} +
diff --git a/phpBB/styles/subsilver2/template/ucp_header.html b/phpBB/styles/subsilver2/template/ucp_header.html index e3aaef6943..dff2841b54 100644 --- a/phpBB/styles/subsilver2/template/ucp_header.html +++ b/phpBB/styles/subsilver2/template/ucp_header.html @@ -25,11 +25,13 @@ {L_USERNAMES}{L_COLON} +
[ {L_FIND_USERNAME} ] +