建筑资源吧 發表於 2019-7-13 20:30:59

帖子关闭回复情况下,底部回复框提示语优化

默认情况下,当帖子处于关闭状态时,底部回复框将显示“……无权发帖……”,<br />这可能造成一些误会。我们可照以下方法适当调整。<br /><br />打开当前模板目录下 forum/viewthread_fastpost.htm 文件,查找:<br /><ol><li>&lt;!--{else}--&gt;<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {lang no_permission_to_post}&lt;a href=&quot;javascript:;&quot; onclick=&quot;$('fastpostform').submit()&quot; class=&quot;xi2&quot;&gt;{lang click_to_show_reason}&lt;/a&gt;<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--{/if}--&gt;</ol>在其前方加入:<ol><li>&lt;!--{elseif $_G['forum_thread']['closed'] == 1}--&gt;<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 本帖已不再接受新回复。$closed_zixun</ol>打开当前模板目录下 forum/viewthread_node.htm 文件,查找:<ol><li>{lang viewthread_left_sendpm}<br /><li></ol>在该代码的一行下新增:<br /><br /><ol><li>&lt;!--{if $_G['forum_thread']['closed'] == 1 &amp;&amp; $post['first']}--&gt;{eval $closed_zixun = '如有疑问,请 &lt;a href=&quot;home.php?mod=spacecp&amp;ac=pm&amp;op=showmsg&amp;handlekey=showmsg_31&amp;touid=31&amp;pmid=0&amp;daterange=2&amp;pid='.$post.'&amp;tid='.$post.'&quot; onclick=&quot;showWindow(\'sendpm\', this.href);&quot;&gt;咨询总版主&lt;/a&gt;';}&lt;!--{/if}--&gt;</ol>其中的数字31请修改为管理员UID。<br /><br />上传覆盖,更新模板缓存。<br /><br />回复<em>, </em>情况下<em>, </em>帖子<em>, </em>关闭<em>, </em>底部

xukunpeng88888 發表於 2020-4-20 17:43:58

感谢分享<br />
頁: [1]
查看完整版本: 帖子关闭回复情况下,底部回复框提示语优化