Jump to content

Как отключить "Быстрый ответ" в теме?

Featured Replies

Как отключить "Быстрый ответ" в теме?

Link to comment
https://ipbmafia.ru/topic/2290-kak-otklyuchit-bystryj-otvet-v-teme/
Share on other sites

Отредактировать шаблон Темы --> topicViewTemplate

Найти:


<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'>{$this->lang->words['topic_add_reply']}</h1>
<if test="isLockedFR:|:$topic['state'] == 'closed'"><span class='error'>{$this->lang->words['locked_reply_fr']}</span><br /></if>
<br />
<if test="isMember:|:$this->memberData['member_id']">
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}' class='ipsUserPhotoLink left'><img src='{$this->memberData['pp_small_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$this->memberData['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_medium' /></a>
<else />
<div class='left'>{IPSMember::buildNoPhoto(0, 'small' )}</div>
</if>
<div class='ipsBox_withphoto clearfix'>
<form action="{parse url="" base="public"}" method="post" id='ips_fastReplyForm'>
<input type="hidden" name="app" value="forums" />
<input type="hidden" name="module" value="post" />
<input type="hidden" name="section" value="post" />
<input type="hidden" name="do" value="reply_post_do" />
<input type="hidden" name="f" value="{$forum['id']}" />
<input type="hidden" name="t" value="{$topic['tid']}" />
<input type="hidden" name="st" value="{$this->request['st']}" />
<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
<input type="hidden" name="fast_reply_used" value="1" />
<input type="hidden" name="enableemo" value="yes" />
<input type="hidden" name="enablesig" value="yes" />
<if test="$this->memberData['auto_track']">
<input type="hidden" name="enabletrack" value="1" />
<else />
<input type="hidden" name="enabletrack" value="{$topic['_isLiked']}" />
</if>
<if test="is_array($topic['_fastReplyStatusMessage']) AND count($topic['_fastReplyStatusMessage']) AND strlen($topic['_fastReplyStatusMessage'][0])">
<div class='message'>{parse expression="implode( '<br />', $topic['_fastReplyStatusMessage'] )"}</div>
</if>
{parse editor="Post" options="array( 'type' => 'full', 'minimize' => 1, 'isTypingCallBack' => 'ipb.topic.isTypingCallBack', 'height' => 180, 'legacyMode' => 'off', 'autoSaveKey' => 'reply-' . $topic[tid], 'warnInfo' => 'fastReply', 'modAll' => $topic['_fastReplyModAll'] )"}
<br />

<fieldset class='right' id='fast_reply_controls'>
<input type='submit' name="submit" class='input_submit' value='{$this->lang->words['qr_post']}' tabindex='50' accesskey='s' id='submit_post' />&nbsp;&nbsp;<input type='submit' name="preview" class='input_submit alt' value='{$this->lang->words['qr_more_opts']}' tabindex='51' id='full_compose' />
</fieldset>
</form>
</div>
<div id='ips_HasReplies'></div>
</div>
</div>
<script type='text/javascript'>
ipb.topic.fastReplyId = '{$this->settings['_lastEditorId']}';
</script>
<else />
<if test="loadJsManually:|:$displayData['load_editor_js']">
{parse template="editorLoadJs" group="editors" params="array( 'smilies' => $displayData['smilies'] )"}
</if>
</if>
Заменить на:

<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'>{$this->lang->words['topic_add_reply']}</h1>
<if test="isLockedFR:|:$topic['state'] == 'closed'"><span class='error'>{$this->lang->words['locked_reply_fr']}</span><br /></if>
<br />
<if test="isMember:|:$this->memberData['member_id']">
<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}' class='ipsUserPhotoLink left'><img src='{$this->memberData['pp_small_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$this->memberData['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_medium' /></a>
<else />
<div class='left'>{IPSMember::buildNoPhoto(0, 'small' )}</div>
</if>
<div class='ipsBox_withphoto clearfix'>
<form action="{parse url="" base="public"}" method="post" id='ips_fastReplyForm'>
<input type="hidden" name="app" value="forums" />
<input type="hidden" name="module" value="post" />
<input type="hidden" name="section" value="post" />
<input type="hidden" name="do" value="reply_post_do" />
<input type="hidden" name="f" value="{$forum['id']}" />
<input type="hidden" name="t" value="{$topic['tid']}" />
<input type="hidden" name="st" value="{$this->request['st']}" />
<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
<input type="hidden" name="fast_reply_used" value="1" />
<input type="hidden" name="enableemo" value="yes" />
<input type="hidden" name="enablesig" value="yes" />

<fieldset class='right' id='fast_reply_controls'>
<input type='submit' name="preview" class='input_submit alt' value='{$this->lang->words['qr_more_opts']}' tabindex='51' id='full_compose' />
</fieldset>
</form>
</div>
<div id='ips_HasReplies'></div>
</div>
</div>
<script type='text/javascript'>
ipb.topic.fastReplyId = '{$this->settings['_lastEditorId']}';
</script>
<else />
<if test="loadJsManually:|:$displayData['load_editor_js']">
{parse template="editorLoadJs" group="editors" params="array( 'smilies' => $displayData['smilies'] )"}
</if>
</if>
[/code]

Link to comment
https://ipbmafia.ru/topic/2290-kak-otklyuchit-bystryj-otvet-v-teme/?&do=findComment&comment=15294
Share on other sites

Проблема в том, что пользователь может все таки вернуть его обратно, так что это скорее сокрытие, чем отключение.

Но другого варианта нет.

Link to comment
https://ipbmafia.ru/topic/2290-kak-otklyuchit-bystryj-otvet-v-teme/?&do=findComment&comment=15328
Share on other sites
Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.