餅乾工坊

完整版: [Discuz]取消引言強制提示作者
您正在瀏覽簡化版內容。 請點這裡瀏覽完整版。
修改 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