Jucausii.Net - Just play it!
[Tutorial] Disable fast reply - Printable Version

+- Jucausii.Net - Just play it! (https://jucausii.net/forum)
+-- Forum: Zona IT & Web / IT & Web Area (https://jucausii.net/forum/forum-169.html)
+--- Forum: Resurse, stiinte si tehnologie / Resources , Science and Technology (https://jucausii.net/forum/forum-171.html)
+---- Forum: Platforme Web / Web platform (https://jucausii.net/forum/forum-173.html)
+----- Forum: IPB (https://jucausii.net/forum/forum-249.html)
+------ Forum: Tutoriale / Tutorials (https://jucausii.net/forum/forum-255.html)
+------ Thread: [Tutorial] Disable fast reply (/thread-9207.html)



[Tutorial] Disable fast reply - dirtyaim - 26-03-2016

A few people have expressed an interest in removing the fast reply from topic view. Here is a simple skin edit to do that.

Its in two parts as part 1 involves removing the fast reply window and part 2 adds the 'post reply' button to the end of the page, otherwise you'd have to scroll to the top to add a reply.


ACP > Look / Feel > Skin Manager > (choose skin) > Templates / CSS > Topic View > TopicViewTemplate


Part One, remove the fast reply box:

Find...

 
 
<if test="fastReply:|:$displayData['fast_reply'] && $displayData['reply_button']['url']"><hr><div class="ipsBox" id="fast_reply_wrapper">    <div class="ipsBox_container ipsPad">        <h1 class="ipsType_subtitle">{$thisArrowlangArrowwords['topic_add_reply']}</h1>        <if test="isLockedFR:|:$topic['state'] == 'closed'"><span class="error">{$thisArrowlangArrowwords['locked_reply_fr']}</span></if>                <if test="isMember:|:$thisArrowmemberData['member_id']">            <a href="%7Bparse%20url=" showuser="{$this-">memberData['member_id']}" seotitle="{$thisArrowmemberData['members_seo_name']}" template="showuser" base="public"}" title='{$thisArrowlangArrowwords['your_profile']}' class='ipsUserPhotoLink left'><img src="%7B$this-%3EmemberData[" pp_small_photo']}'="" alt="{parse expression=" sprintf($this-="">langArrowwords['users_photo'],$thisArrowmemberData['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_medium' /></a>        <else>            <div class="left">{IPSMember::buildNoPhoto(0, 'small' )}</div>        </else></if>        <div class="ipsBox_withphoto clearfix">            <form action="{parse url=" "="" base="public" }"="" method="post" id="ips_fastReplyForm">                <input name="app" value="forums" type="hidden">                <input name="module" value="post" type="hidden">                <input name="section" value="post" type="hidden">                <input name="do" value="reply_post_do" type="hidden">                <input name="f" value="{$forum['id']}" type="hidden">                <input name="t" value="{$topic['tid']}" type="hidden">                <input name="st" value="{$thisArrowrequest['st']}" type="hidden">                <input name="auth_key" value="{$thisArrowmemberArrowform_hash}" type="hidden">                <input name="fast_reply_used" value="1" type="hidden">                <input name="enableemo" value="yes" type="hidden">                <input name="enablesig" value="yes" type="hidden">                <if test="$thisArrowmemberData['auto_track']">                    <input name="enabletrack" value="1" type="hidden">                </if>                <if test="is_array($topic['_fastReplyStatusMessage']) AND count($topic['_fastReplyStatusMessage']) AND strlen($topic['_fastReplyStatusMessage'][0])">                    <div class="message">{parse expression="implode( '', $topic['_fastReplyStatusMessage'] )"}</div>                </if>                {parse editor="Post" options="array( 'type' => 'full', 'minimize' => 1, 'isTypingCallBack' => 'ipb.topic.isTypingCallBack', 'height' => 180, 'autoSaveKey' => 'reply-' . $topic[tid] )"}                                                <fieldset class="right" id="fast_reply_controls">                    <input name="submit" class="input_submit" value="{$thisArrowlangArrowwords[" qr_post']}'="" tabindex="0" accesskey="s" id="submit_post" type="submit">&nbsp;&nbsp;<input name="preview" class="input_submit alt" value="{$thisArrowlangArrowwords[" qr_more_opts']}'="" tabindex="0" id="full_compose" type="submit">                            </fieldset>            </form>        </div>        <div id="ips_HasReplies"></div>    </div></div><else>    <if test="loadJsManually:|:$displayData['load_editor_js']">        {parse template="editorLoadJs" group="editors" params="$displayData['smilies']"}    </if></else></if>
 
 
Comment it out by adding a <!-- to the start and a -Arrow to the end (do not remove the code)


Part two, add 'post reply' to the end of the page.

Immediately after the code you have removed, you'll see this line:

 
 
<!-- Close topic -Arrow
 
Add the following code just above that 'close topic' line but after the code you commented out:
 
 
<ul class="topic_buttons">        <if test="closedButton:|:$displayData['reply_button']['image'] == 'locked'">            <li class="important">                <if test="pollOnly:|:isset($displayData['poll_data']['poll']['poll_only']) && $displayData['poll_data']['poll']['poll_only']">                    <if test="closedButtonLink:|:$displayData['reply_button']['url']">                        <a href="%7B$displayData[" reply_button']['url']}'="" accesskey="r">{parse replacement="lock_icon"} {$thisArrowlangArrowwords['top_poll_only_reply']}</a>                    <else>                        <span>{parse replacement="lock_icon"} {$thisArrowlangArrowwords['top_poll_only']}</span>                    </else></if>                <else>                    <if test="closedButtonLink:|:$displayData['reply_button']['url']">                        <a href="%7B$displayData[" reply_button']['url']}'="" accesskey="r">{parse replacement="lock_icon"} {$thisArrowlangArrowwords['top_locked_reply']}</a>                    <else>                        <span>{parse replacement="lock_icon"} {$thisArrowlangArrowwords['top_locked']}</span>                    </else></if>                </else></if>            </li>        <else>            <if test="replyButton:|:$displayData['reply_button']['image']">                <if test="replyButtonLink:|:$displayData['reply_button']['url']">                    <li><a href="%7B$displayData[" reply_button']['url']}'="" title="{$thisArrowlangArrowwords[" topic_add_reply']}'="" accesskey="r">{$thisArrowlangArrowwords['topic_add_reply']}</a></li>                <else>                    <li class="disabled"><span>{$thisArrowlangArrowwords['top_cannot_reply']}</span></li>                </else></if>            </if>        </else></if>    </ul>
 
 
Save.