diff options
author | rxu <rxu@mail.ru> | 2014-08-11 19:49:04 +0800 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2014-09-02 01:02:17 +0800 |
commit | 1d4c040d4f7b38370c0b0f08581cb54ea1a3792f (patch) | |
tree | 8562dd125716935ae724341cb606452bcc403614 | |
parent | 91df95a90dd3266f4beeb7df7534f75882909581 (diff) | |
download | forums-1d4c040d4f7b38370c0b0f08581cb54ea1a3792f.tar forums-1d4c040d4f7b38370c0b0f08581cb54ea1a3792f.tar.gz forums-1d4c040d4f7b38370c0b0f08581cb54ea1a3792f.tar.bz2 forums-1d4c040d4f7b38370c0b0f08581cb54ea1a3792f.tar.xz forums-1d4c040d4f7b38370c0b0f08581cb54ea1a3792f.zip |
[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
-rw-r--r-- | phpBB/docs/events.md | 16 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/posting_pm_header.html | 2 | ||||
-rw-r--r-- | phpBB/styles/subsilver2/template/ucp_header.html | 2 |
3 files changed, 20 insertions, 0 deletions
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 @@ <dd class="recipients"> <input type="submit" name="add_to" value="{L_ADD}" class="button2" tabindex="1" /> <input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" tabindex="1" /> + <!-- EVENT posting_pm_header_find_username_before --> <span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span> + <!-- EVENT posting_pm_header_find_username_after --> </dd> </dl> <!-- ENDIF --> 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 @@ <tr> <td class="row1"><b class="genmed">{L_USERNAMES}{L_COLON}</b></td> </tr> + <!-- EVENT posting_pm_header_find_username_before --> <tr> <td class="row2"><textarea name="username_list" rows="5" cols="22" tabindex="1"></textarea><br /> [ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ] </td> </tr> + <!-- EVENT posting_pm_header_find_username_after --> <!-- ENDIF --> <!-- IF S_GROUP_OPTIONS --> <tr> |