DEDECMS允許游客輸入自己的呢稱
來源:易賢網(wǎng) 閱讀:1185 次 日期:2016-07-07 09:59:37
溫馨提示:易賢網(wǎng)小編為您整理了“DEDECMS允許游客輸入自己的呢稱”,方便廣大網(wǎng)友查閱!

在論壇里看到很多朋友都在問怎樣才能使游客可以對文章進行評論,并且游客可以輸入自己的名字,而不是顯示游客,在評論后又怎樣跳轉(zhuǎn)回正在瀏覽的內(nèi)容頁面。

針對以上情況,本帖寫出解決方法,以求和大家分享,希望對朋友們有用!

首先找到dede默認(rèn)模板里的article_article.htm文件,找出其中的

<div class="comment">

<!--評論:標(biāo)題-->

<div class="commenttitle">

<div class="title"><strong>最新評論</strong>共有 {dede:field name='postnum'/} 位網(wǎng)友發(fā)表了評論 </div>

<div class="gotopost"><a href="{dede:field name='phpurl'/}/feedback.php?arcID={dede:field name=ID/}">查看所有評論</a></div>

</div>

<!--評論內(nèi)容-->

<div class="commentbox">

<script src="{dede:field name='phpurl'/}/feedback_js.php?arcID={dede:field name='ID'/}"></script>

</div>

<!--發(fā)表評論:標(biāo)題-->

<div class="posttitle"><strong>發(fā)表評論</strong></div>

<!--發(fā)表評論-->

<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>評論內(nèi)容:</strong>不能超過250字,需審核,請自覺遵守互聯(lián)網(wǎng)相關(guān)政策法規(guī)。

<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="發(fā)表評論" onClick='javascript:if(document.feedback.msg.value!="") document.feedback.submit(); else alert("評論內(nèi)容不能為空!");'/>

</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了,大功告成!

更多信息請查看CMS教程
易賢網(wǎng)手機網(wǎng)站地址:DEDECMS允許游客輸入自己的呢稱
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
相關(guān)閱讀CMS教程
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
云南網(wǎng)警備案專用圖標(biāo)
聯(lián)系電話:0871-65317125(9:00—18:00) 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報警專用圖標(biāo)