Skip to content

Commit

Permalink
[ticket/11972] Add posting_editor_message_before template event
Browse files Browse the repository at this point in the history
PHPBB3-11972
  • Loading branch information
imkingdavid committed Nov 2, 2013
1 parent 3be5fe5 commit b8eeca7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions phpBB/docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ overall_header_navigation_prepend
* Since: 3.1.0-a1
* Purpose: Add links before the navigation links in the header

posting_editor_message_before
===
* Locations:
+ styles/prosilver/template/posting_editor.html
+ styles/subsilver2/template/posting_body.html
* Purpose: Add field (e.g. textbox) to the posting screen before the message

posting_editor_options_prepend
===
* Locations:
Expand Down
2 changes: 2 additions & 0 deletions phpBB/styles/prosilver/template/posting_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@
<!-- ENDIF -->
</div>

<!-- EVENT posting_editor_message_before -->

<div id="message-box">
<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
</div>
Expand Down
1 change: 1 addition & 0 deletions phpBB/styles/subsilver2/template/posting_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ <h2><!-- IF TOPIC_TITLE --><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<!-- INCLUDE posting_buttons.html -->
<!-- EVENT posting_editor_message_before -->
<tr>
<td valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" style="width: 700px; height: 270px; min-width: 98%; max-width: 98%;">{MESSAGE}</textarea></td>
<!-- IF S_BBCODE_ALLOWED -->
Expand Down

0 comments on commit b8eeca7

Please sign in to comment.