餅乾工坊
[Discuz]取消引言強制提示作者 - 可列印版本

+- 餅乾工坊 (http://ninja.s12.xrea.com/mybb)
+-- 版面: 電腦網路 (http://ninja.s12.xrea.com/mybb/forumdisplay.php?fid=2)
+--- 版面: 網頁相關 (http://ninja.s12.xrea.com/mybb/forumdisplay.php?fid=13)
+--- 主題: [Discuz]取消引言強制提示作者 (/showthread.php?tid=500)



[Discuz]取消引言強制提示作者 - NINJA - 05-08-2010

修改 templates/default/post.htm
找到,並剪下這一段
程式碼:
<!--{if $action == 'reply'}-->
        <input type="hidden" name="noticeauthor" value="$noticeauthor" />
        <input type="hidden" name="noticetrimstr" value="$noticetrimstr" />
        <input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" />
    <!--{/if}-->
找到
程式碼:
<p><input type="checkbox" id="allowimgcode" disabled{if $forum['allowimgcode']} checked="checked"{/if} /><label for="allowimgcode">{lang post_imgcode}</label></p>

在下面貼上,並改為
程式碼:
<!--{if $action == 'reply'}-->
        <input type="checkbox" name="noticeauthor" value="$noticeauthor" />{lang notice}{lang author}
        <input type="hidden" name="noticetrimstr" value="$noticetrimstr" />
        <input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" />
    <!--{/if}-->
註:post.htm似乎沒辦法判斷引言是不是引言自己,因為引言自己的內容也會出現勾選框
應該也可以搭配插件來判斷是不是要顯示這個checkbox