好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 網站建設 > 建站知識 > dede評論功能游客可以對文章進行評論

dede評論功能游客可以對文章進行評論

POST TIME:2017-10-25 10:23

首先找到dede默認模板里的article_article.htm文件,找出其中的
<div class="comment">
            <!–評論:標題–>
            <div class="commenttitle">
                <div class="title"><strong>最新評論</strong>共有 {dede:field name=’postnum’/} 位網友發表了評論 </div>
                <div class="gotopost"><a href="{dede:field name=’phpurl’/}/feedback.php?arcID={dede:field name=ID/}">查看所有評論</a></div>
            </div>
            <!–評論內容–>
            <div class="commentbox">
                <script src="{dede:field name=’phpurl’/}/feedback_js.php?arcID={dede:field name=’ID’/}"></script>
            </div>
            <!–發表評論:標題–>
            <div class="posttitle"><strong>發表評論</strong></div>
            <!–發表評論–>
            <form action="{dede:field name=’phpurl’/}/feedback.php?action=send" method="post" name="feedback">
            <input type="hidden" name="arcID" value="{dede:field name="id"/}">
            <div class="postbox">
                <div class="txtbox">
                    <strong>評論內容:</strong>不能超過250字,需審核,請自覺遵守互聯網相關政策法規。

                    <textarea name="msg" cols="60" rows="6"></textarea>
                </div>
                <div class="userbox">
                    <dl>
                        <dd>
                            <strong>用戶名:</strong><input name="username" class="username" type="text" maxlength="20" />
                            <strong>密碼:</strong><input name="pwd" class="password" type="password" maxlength="20" />
                        </dd>
                        <dd></dd>
                        <dd class="mtop"><input name="notuser" type="checkbox" value="1" /> <strong>匿名?</strong></dd>
                        <dd><input name="sb" type="button" class="submit" value="發表評論" onClick=’javascript:if(document.feedback.msg.value!="") document.feedback.submit(); else alert("評論內容不能為空!");’/>
                      </dd>
                        <dd class="mtop"><a href="{dede:field name=’memberurl’/}/index_do.php?fmdo=user&dopost=regnew" target="_blank">注冊</a></dd>
                    </dl>
            </div>
            </div></form>
        </div>
    </div>
(這些就是評論那一塊的所有代碼)
2,找到以上代碼中的
<strong>密碼:</strong><input name="pwd" class="password" type="password" maxlength="20" />
然后刪除。
找到
<strong>匿名?</strong>
然后刪除。
找到
<input name="notuser" type="checkbox" value="1" />
,然后更改為<input name="notuser" type="hidden" value="1" />.最后提交保存,OK了,大功告成!


收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266