Merge pull request #1821 from imkingdavid/ticket/11972

[ticket/11972] Add template events to posting page
This commit is contained in:
Nils Adermann 2013-11-02 15:31:01 -07:00
commit 8f88ff093e
3 changed files with 45 additions and 2 deletions

View file

@ -157,14 +157,46 @@ overall_header_navigation_prepend
* Since: 3.1.0-a1 * Since: 3.1.0-a1
* Purpose: Add links before the navigation links in the header * Purpose: Add links before the navigation links in the header
posting_editor_message_after
===
* Locations:
+ styles/prosilver/template/posting_editor.html
+ styles/subsilver2/template/posting_body.html
* Since: 3.1.0-a2
* Purpose: Add field (e.g. textbox) to the posting screen after the message
posting_editor_message_before
===
* Locations:
+ styles/prosilver/template/posting_editor.html
+ styles/subsilver2/template/posting_body.html
* Since: 3.1.0-a2
* Purpose: Add field (e.g. textbox) to the posting screen before the message
posting_editor_options_prepend posting_editor_options_prepend
=== ===
* Locations: * Locations:
+ styles/prosilver/template/posting_editor.html + styles/prosilver/template/posting_editor.html
+ styles/prosilver/template/posting_body.html + styles/subsilver2/template/posting_body.html
* Since: 3.1.0-a1 * Since: 3.1.0-a1
* Purpose: Add posting options on the posting screen * Purpose: Add posting options on the posting screen
posting_editor_subject_after
===
* Locations:
+ styles/prosilver/template/posting_editor.html
+ styles/subsilver2/template/posting_body.html
* Since: 3.1.0-a2
* Purpose: Add field (e.g. textbox) to the posting screen after the subject
posting_editor_subject_before
===
* Locations:
+ styles/prosilver/template/posting_editor.html
+ styles/subsilver2/template/posting_body.html
* Since: 3.1.0-a2
* Purpose: Add field (e.g. textbox) to the posting screen before the subject
simple_footer_after simple_footer_after
=== ===
* Locations: * Locations:

View file

@ -86,6 +86,8 @@
</dl> </dl>
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT posting_editor_subject_before -->
<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT --> <!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
<dl style="clear: left;"> <dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}{L_COLON}</label></dt> <dt><label for="subject">{L_SUBJECT}{L_COLON}</label></dt>
@ -97,6 +99,8 @@
<!-- ENDIF --> <!-- ENDIF -->
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT posting_editor_subject_after -->
<!-- INCLUDE posting_buttons.html --> <!-- INCLUDE posting_buttons.html -->
<div id="smiley-box"> <div id="smiley-box">
@ -129,9 +133,13 @@
<!-- ENDIF --> <!-- ENDIF -->
</div> </div>
<!-- EVENT posting_editor_message_before -->
<div id="message-box"> <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> <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> </div>
<!-- EVENT posting_editor_message_after -->
</fieldset> </fieldset>
<!-- IF $EXTRA_POSTING_OPTIONS eq 1 --> <!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->

View file

@ -163,11 +163,12 @@
</tr> </tr>
<!-- ENDIF --> <!-- ENDIF -->
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT posting_editor_subject_before -->
<tr> <tr>
<td class="row1" width="22%"><b class="genmed">{L_SUBJECT}{L_COLON}</b></td> <td class="row1" width="22%"><b class="genmed">{L_SUBJECT}{L_COLON}</b></td>
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td> <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
</tr> </tr>
<!-- EVENT posting_editor_subject_after -->
<tr> <tr>
<td class="row1" valign="top"><b class="genmed">{L_MESSAGE_BODY}{L_COLON}</b><br /><span class="gensmall">{L_MESSAGE_BODY_EXPLAIN}&nbsp;</span><br /><br /> <td class="row1" valign="top"><b class="genmed">{L_MESSAGE_BODY}{L_COLON}</b><br /><span class="gensmall">{L_MESSAGE_BODY_EXPLAIN}&nbsp;</span><br /><br />
<!-- IF S_SMILIES_ALLOWED --> <!-- IF S_SMILIES_ALLOWED -->
@ -202,6 +203,7 @@
<table width="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0">
<!-- INCLUDE posting_buttons.html --> <!-- INCLUDE posting_buttons.html -->
<!-- EVENT posting_editor_message_before -->
<tr> <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> <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 --> <!-- IF S_BBCODE_ALLOWED -->
@ -214,6 +216,7 @@
</td> </td>
<!-- ENDIF --> <!-- ENDIF -->
</tr> </tr>
<!-- EVENT posting_editor_message_after -->
</table> </table>
</td> </td>
</tr> </tr>