Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1099332
in-bulletin
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 14, 7:29 PM
Size
20 KB
Mime Type
text/x-diff
Expires
Sat, Aug 16, 7:29 PM (13 h, 6 m)
Engine
blob
Format
Raw Data
Handle
711784
Attached To
rMINB Modules.In-Bulletin
in-bulletin
View Options
Index: branches/5.1.x/themes/default2009/in-bulletin/my_account/private_messages/new_message.tpl
===================================================================
--- branches/5.1.x/themes/default2009/in-bulletin/my_account/private_messages/new_message.tpl (revision 12149)
+++ branches/5.1.x/themes/default2009/in-bulletin/my_account/private_messages/new_message.tpl (revision 12150)
@@ -1,76 +1,77 @@
<!--##
<NAME>Write Private Message</NAME>
<DESC>Write Private Message Form</DESC>
<SECTION>My Account||Private Messages</SECTION>
##-->
<inp2:m_RequireLogin login_template="platform/login/register"/>
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_NewPrivateMessage"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-bulletin/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_MyAccount,lu_title_PrivateMessages,lu_title_NewPrivateMessage" templates="platform/my_account/my_account,in-bulletin/my_account/private_messages/private_messages,in-bulletin/my_account/private_messages/new_message"/>
</div>
<div class="movable-element">
<!-- new private message -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_NewPrivateMessage"/>
</inp2:m_Capture>
<inp2:private-message_PresetFormFields/>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="private-message_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<inp2:m_include template="in-bulletin/elements/forms.elm"/>
<form method="post" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
<inp2:m_RenderElement name="inp_edit_box" prefix="private-message" field="ToId" title="lu_fld_To"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="private-message" field="Subject" title="lu_fld_Subject"/>
<inp2:m_RenderElement name="inp_edit_textarea_bb" prefix="private-message" field="Body" cols="50" rows="10" title="lu_fld_MessageBody"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="private-message" field="DisableBBCodes" title="lu_fld_DisableBBCodes"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="private-message" field="DisableSmileys" title="lu_fld_DisableSmileys"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="private-message" field="ShowSignatures" title="lu_fld_ShowSignatures" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="next_template" value="in-bulletin/my_account/private_messages/add_confirm"/>
- <input class="button" type="submit" name="events[private-message][OnCreate]" value="<inp2:m_phrase label="lu_btn_Create"/>"/>
+ <input class="button" type="submit" name="events[private-message][OnCreate]" value="<inp2:m_phrase label='lu_btn_Create' html_escape='1'/>"/>
+ <input class="button" type="submit" name="events[private-message][OnPreview]" value="<inp2:m_Phrase label='lu_btn_Preview' html_escape='1'/>"/>
<input class="button" type="button" onclick="redirect('<inp2:m_Link template="in-bulletin/my_account/private_messages/private_messages"/>');" value="<inp2:m_Phrase label="lu_btn_Cancel"/>"/>
</inp2:m_RenderElement>
</table>
</form>
</inp2:m_RenderElement>
<!-- // new private message -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/5.1.x/themes/default2009/in-bulletin/topics/new_topic_reply.tpl
===================================================================
--- branches/5.1.x/themes/default2009/in-bulletin/topics/new_topic_reply.tpl (revision 12149)
+++ branches/5.1.x/themes/default2009/in-bulletin/topics/new_topic_reply.tpl (revision 12150)
@@ -1,81 +1,82 @@
<!--##
<NAME>Topic Reply</NAME>
<DESC>Topic Reply Form</DESC>
<SECTION>Platform||Topics</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_NewTopicReply"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-bulletin/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="__item__,lu_title_NewTopicReply" templates="__default__,in-bulletin/topics/new_topic_reply" show_category="1"/>
</div>
<div class="movable-element">
<!-- new topic reply -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_NewTopicReply"/>
</inp2:m_Capture>
<inp2:m_if check="bb-post_HasPermission" permissions="TOPIC.REPLY.ADD">
<inp2:bb-post_PresetFormFields/>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="bb-post_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<inp2:m_include template="in-bulletin/elements/forms.elm"/>
<form method="post" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
<inp2:m_RenderElement name="inp_label" prefix="bb" field="TopicText" title="lu_fld_Subject"/>
<inp2:m_RenderElement name="inp_label" prefix="bb" field="PostedBy" title="lu_fld_Author"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="bb-post" field="Subject" title="lu_fld_Subject" style="width: 300px"/>
<inp2:m_RenderElement name="inp_edit_textarea_bb" prefix="bb-post" field="PostingText" cols="50" rows="10" title="lu_fld_MessageBody" style="width: 400px"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb-post" field="DisableBBCodes" title="lu_fld_DisableBBCodes"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb-post" field="DisableSmileys" title="lu_fld_DisableSmileys"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb-post" field="ShowSignatures" title="lu_fld_ShowSignatures" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="next_template" value="__default__"/>
- <input class="button" type="submit" name="events[bb-post][OnCreate]" value="<inp2:m_phrase label="lu_btn_Create"/>"/>
- <input class="button" type="button" value="<inp2:m_phrase label="lu_btn_Cancel"/>" onclick="redirect('<inp2:bb_TopicLink template="__default__"/>');"/>
+ <input class="button" type="submit" name="events[bb-post][OnCreate]" value="<inp2:m_phrase label='lu_btn_Create' html_escape='1'/>"/>
+ <input class="button" type="submit" name="events[bb-post][OnPreview]" value="<inp2:m_Phrase label='lu_btn_Preview' html_escape='1'/>"/>
+ <input class="button" type="button" value="<inp2:m_phrase label='lu_btn_Cancel'/>" onclick="redirect('<inp2:bb_TopicLink template="__default__"/>');"/>
</inp2:m_RenderElement>
</table>
</form>
<inp2:m_else/>
<inp2:m_phrase name="lu_text_NoNewTopicReplyPermission"/>
</inp2:m_if>
</inp2:m_RenderElement>
<!-- // new topic reply -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/5.1.x/themes/default2009/in-bulletin/topics/new_topic.tpl
===================================================================
--- branches/5.1.x/themes/default2009/in-bulletin/topics/new_topic.tpl (revision 12149)
+++ branches/5.1.x/themes/default2009/in-bulletin/topics/new_topic.tpl (revision 12150)
@@ -1,81 +1,82 @@
<!--##
<NAME>New Topic</NAME>
<DESC>New Topic Form</DESC>
<SECTION>Platform||Topics</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_NewTopic"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-bulletin/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_NewTopic" templates="in-bulletin/topics/new_topic" show_category="1"/>
</div>
<div class="movable-element">
<!-- new topic -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_NewTopic"/>
</inp2:m_Capture>
<inp2:m_if check="bb_HasPermission" permissions="TOPIC.ADD|TOPIC.ADD.PENDING">
<inp2:bb_PresetFormFields/>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="bb_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<inp2:m_include template="in-bulletin/elements/forms.elm"/>
<form method="post" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
<inp2:m_RenderElement name="inp_edit_box" prefix="bb" field="TopicText" title="lu_fld_Subject" style="width: 300px"/>
<inp2:m_RenderElement name="inp_edit_textarea_bb" prefix="bb" field="PostingText" cols="70" rows="13" title="lu_fld_MessageBody" style="width: 400px"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb" field="DisableBBCodes" title="lu_fld_DisableBBCodes"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb" field="DisableSmileys" title="lu_fld_DisableSmileys"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb" field="ShowSignatures" title="lu_fld_ShowSignatures"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb" field="NotifyOwnerOnChanges" title="lu_fld_NotifyOwnerOnChanges" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="suggest_confirm_template" value="in-bulletin/topics/add_confirm"/>
<input type="hidden" name="suggest_pending_confirm_template" value="in-bulletin/topics/add_pending_confirm"/>
- <input class="button" type="submit" name="events[bb][OnCreate]" value="<inp2:m_phrase label="lu_btn_Create"/>"/>
+ <input class="button" type="submit" name="events[bb][OnCreate]" value="<inp2:m_phrase label='lu_btn_Create' html_escape='1'/>"/>
+ <input class="button" type="submit" name="events[bb][OnPreview]" value="<inp2:m_Phrase label='lu_btn_Preview' html_escape='1'/>"/>
<input class="button" type="button" value="<inp2:m_phrase label="lu_btn_Cancel"/>" onclick="redirect('<inp2:m_Link template="__default__"/>');"/>
</inp2:m_RenderElement>
</table>
</form>
<inp2:m_else/>
<inp2:m_phrase name="lu_text_NoNewTopicPermission"/>
</inp2:m_if>
</inp2:m_RenderElement>
<!-- // new topic -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Index: branches/5.1.x/themes/default2009/in-bulletin/topics/modify_post.tpl
===================================================================
--- branches/5.1.x/themes/default2009/in-bulletin/topics/modify_post.tpl (revision 12149)
+++ branches/5.1.x/themes/default2009/in-bulletin/topics/modify_post.tpl (revision 12150)
@@ -1,80 +1,81 @@
<!--##
<NAME>Post Modify Form</NAME>
<DESC>Post Modification Form</DESC>
<SECTION>Platform||Topics</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_TopicPostModify"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-bulletin/elements/side_boxes/action_box.elm" design="blue_box"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="__item__,lu_title_TopicPostModify" templates="__default__,in-bulletin/topics/modify_post" show_category="1"/>
</div>
<div class="movable-element">
<!-- modify post -->
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_TopicPostModify"/>
</inp2:m_Capture>
<inp2:m_if check="bb-post_HasPermission" permissions="TOPIC.REPLY.MODIFY|TOPIC.REPLY.OWNER.MODIFY">
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_if check="bb-post_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<inp2:m_include template="in-bulletin/elements/forms.elm"/>
<form method="post" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
<inp2:m_RenderElement name="inp_label" prefix="bb" field="TopicText" title="lu_fld_Subject"/>
<inp2:m_RenderElement name="inp_label" prefix="bb" field="PostedBy" title="lu_fld_Author"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="bb-post" field="Subject" title="lu_fld_Subject" style="width: 300px;"/>
<inp2:m_RenderElement name="inp_edit_textarea_bb" prefix="bb-post" field="PostingText" cols="70" rows="13" title="lu_fld_MessageBody" style="width: 400px;"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb-post" field="DisableBBCodes" title="lu_fld_DisableBBCodes"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb-post" field="DisableSmileys" title="lu_fld_DisableSmileys"/>
<inp2:m_RenderElement name="inp_edit_checkbox" prefix="bb-post" field="ShowSignatures" title="lu_fld_ShowSignatures" is_last="1"/>
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="next_template" value="__default__"/>
- <input class="button" type="submit" name="events[bb-post][OnUpdate]" value="<inp2:m_phrase label="lu_btn_Update"/>"/>
+ <input class="button" type="submit" name="events[bb-post][OnUpdate]" value="<inp2:m_Phrase label='lu_btn_Update' html_escape='1'/>"/>
+ <input class="button" type="submit" name="events[bb-post][OnPreview]" value="<inp2:m_Phrase label='lu_btn_Preview' html_escape='1'/>"/>
<input class="button" type="button" value="<inp2:m_phrase label="lu_btn_Cancel"/>" onclick="redirect('<inp2:bb_TopicLink template="__default__"/>');"/>
</inp2:m_RenderElement>
</table>
</form>
<inp2:m_else/>
<inp2:m_phrase name="lu_text_NoTopicPostModifyPermission"/>
</inp2:m_if>
</inp2:m_RenderElement>
<!-- // modify post -->
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>elements/html_head
\ No newline at end of file
Index: branches/5.1.x/themes/default2009/in-bulletin/elements/forms.elm.tpl
===================================================================
--- branches/5.1.x/themes/default2009/in-bulletin/elements/forms.elm.tpl (revision 12149)
+++ branches/5.1.x/themes/default2009/in-bulletin/elements/forms.elm.tpl (revision 12150)
@@ -1,32 +1,47 @@
<inp2:m_DefineElement name="inp_edit_textarea_bb" style="" is_last="0">
<tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
<inp2:m_RenderElement name="inp_edit_field_caption" prefix="$prefix" field="$field" title="$title"/>
<td class="field-value">
+ <inp2:m_if check="m_Param" name="prefix" equals_to="private-message">
+ <inp2:m_include template="in-bulletin/elements/private_messages.elm"/>
+ <inp2:$prefix_MessageBody smiley_render_as="smiley_element" bbcode_render_as="bbcode_element" result_to_var="preview"/>
+ <inp2:m_else/>
+ <inp2:m_include template="in-bulletin/elements/posts.elm"/>
+ <inp2:$prefix_PostBody quote_render_as="post_quote_element" smiley_render_as="smiley_element" bbcode_render_as="bbcode_element" result_to_var="preview"/>
+ </inp2:m_if>
+
+ <inp2:m_if check="m_Param" name="preview">
+ <inp2:m_Phrase name="lu_MessagePreview"/>:<br/>
+ <div style="border: 1px solid #7091B9; padding: 4px; margin-bottom: 4px;">
+ <inp2:m_Param name="preview"/>
+ </div>
+ </inp2:m_if>
+
<a href="<inp2:m_Link/>" onclick="insertTags('[B]', '[/B]', 'bold text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
<img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/bold_icon.png" border="0"/>
</a>
<a href="<inp2:m_Link/>" onclick="insertTags('[I]', '[/I]', 'italic text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
<img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/italic_icon.png" border="0"/>
</a>
<a href="<inp2:m_Link/>" onclick="insertTags('[U]', '[/U]', 'underlined text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
<img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/underline_icon.png" border="0"/>
</a>
<a href="<inp2:m_Link/>" onclick="insertTags('[URL HREF=', ']link name[/URL]', 'link url', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
<img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/link_icon.png" border="0"/>
</a>
<a href="<inp2:m_Link/>" onclick="insertTags('[IMG BORDER=1 SRC=', '][/IMG]', 'image url', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
<img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/image_icon.png" border="0"/>
</a>
<a href="<inp2:m_Link/>" onclick="insertTags('[CODE]', '[/CODE]', 'code text', '<inp2:{$prefix}_InputName field="$field"/>'); return false;">
<img src="<inp2:m_TemplatesBase module="in-bulletin"/>img/toolbar/code_icon.png" border="0"/>
</a>
<br />
<inp2:m_if check="{$prefix}_HasError" field="$field">
<span class="field-error"><inp2:{$prefix}_Error field="$field"/></span><br />
</inp2:m_if>
<textarea class="input-textarea" tabindex="<inp2:m_get param="tab_index"/>" name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>" cols="<inp2:m_param name="cols"/>" rows="<inp2:m_param name="rows"/>" style="<inp2:m_param name="style"/>"><inp2:{$prefix}_Field field="$field"/></textarea>
</td>
</tr>
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="$is_last"/>
</inp2:m_DefineElement>
\ No newline at end of file
Event Timeline
Log In to Comment