[ticket/14091] Add mcp_topic_subject_* template events

Add some options (field, checkbox, ...) before/after the subject
field when split a subject

PHPBB3-14091
This commit is contained in:
Zoddo 2015-07-16 15:03:31 +02:00
parent 972f04ec6a
commit 146c4b1624
3 changed files with 22 additions and 2 deletions

View file

@ -568,6 +568,22 @@ mcp_post_additional_options
* Since: 3.1.5-RC1 * Since: 3.1.5-RC1
* Purpose: Add content within the list of post moderation actions * Purpose: Add content within the list of post moderation actions
mcp_topic_options_after
===
* Locations:
+ styles/prosilver/template/mcp_topic.html
+ styles/subsilver2/template/mcp_topic.html
* Since: 3.1.6-RC1
* Purpose: Add some options (field, checkbox, ...) after the subject field when split a subject
mcp_topic_options_before
===
* Locations:
+ styles/prosilver/template/mcp_topic.html
+ styles/subsilver2/template/mcp_topic.html
* Since: 3.1.6-RC1
* Purpose: Add some options (field, checkbox, ...) before the subject field when split a subject
mcp_warn_post_add_warning_field_after mcp_warn_post_add_warning_field_after
=== ===
* Locations: * Locations:

View file

@ -54,10 +54,12 @@
</dl> </dl>
<!-- ENDIF --> <!-- ENDIF -->
<!-- EVENT mcp_topic_options_before -->
<dl> <dl>
<dt><label for="subject">{L_SPLIT_SUBJECT}{L_COLON}</label></dt> <dt><label for="subject">{L_SPLIT_SUBJECT}{L_COLON}</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SPLIT_SUBJECT}" title="{L_SPLIT_SUBJECT}" class="inputbox" /></dd> <dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SPLIT_SUBJECT}" title="{L_SPLIT_SUBJECT}" class="inputbox" /></dd>
</dl> </dl>
<!-- EVENT mcp_topic_options_after -->
<dl> <dl>
<dt><label>{L_SPLIT_FORUM}{L_COLON}</label></dt> <dt><label>{L_SPLIT_FORUM}{L_COLON}</label></dt>
<dd><select name="to_forum_id">{S_FORUM_SELECT}</select></dd> <dd><select name="to_forum_id">{S_FORUM_SELECT}</select></dd>
@ -153,9 +155,9 @@
<div class="action-bar bottom"> <div class="action-bar bottom">
<div class="pagination"> <div class="pagination">
{TOTAL_POSTS} {TOTAL_POSTS}
<!-- IF .pagination --> <!-- IF .pagination -->
<!-- INCLUDE pagination.html --> <!-- INCLUDE pagination.html -->
<!-- ELSE --> <!-- ELSE -->
&bull; {PAGE_NUMBER} &bull; {PAGE_NUMBER}
<!-- ENDIF --> <!-- ENDIF -->
</div> </div>

View file

@ -10,10 +10,12 @@
<tr> <tr>
<td class="row2" colspan="3" align="center"><span class="gensmall">{L_SPLIT_TOPIC_EXPLAIN}</span></td> <td class="row2" colspan="3" align="center"><span class="gensmall">{L_SPLIT_TOPIC_EXPLAIN}</span></td>
</tr> </tr>
<!-- EVENT mcp_topic_options_before -->
<tr> <tr>
<td class="row1" nowrap="nowrap"><span class="gen">{L_SPLIT_SUBJECT}</span></td> <td class="row1" nowrap="nowrap"><span class="gen">{L_SPLIT_SUBJECT}</span></td>
<td class="row2" colspan="2"><input class="post" style="width: 350px" type="text" size="35" maxlength="124" name="subject" value="{SPLIT_SUBJECT}" /></td> <td class="row2" colspan="2"><input class="post" style="width: 350px" type="text" size="35" maxlength="124" name="subject" value="{SPLIT_SUBJECT}" /></td>
</tr> </tr>
<!-- EVENT mcp_topic_options_after -->
<tr> <tr>
<td class="row1" nowrap="nowrap"><span class="gen">{L_SPLIT_FORUM}</span></td> <td class="row1" nowrap="nowrap"><span class="gen">{L_SPLIT_FORUM}</span></td>
<td class="row2" colspan="2"><select name="to_forum_id">{S_FORUM_SELECT}</select></td> <td class="row2" colspan="2"><select name="to_forum_id">{S_FORUM_SELECT}</select></td>