婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網(wǎng)站建設 > 建站知識 > DEDECMS允許游客輸入自己的呢稱

DEDECMS允許游客輸入自己的呢稱

POST TIME:2020-04-08 22:38

關鍵字描述:自己 輸入 游客 允許 < " name > class 評論

  在論壇里看到很多朋友都在問怎樣才能使游客可以對文章進行評論,并且游客可以輸入自己的名字,而不是顯示游客,在評論后又怎樣跳轉回正在瀏覽的內(nèi)容頁面。
  
  針對以上情況,本帖寫出解決方法,以求和大家分享,希望對朋友們有用!
  
  ,首先找到dede默認模板里的article_article.htm文件,找出其中的
  
  <div class="comment">
  
  <!--評論:標題-->
  
  <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ā)表評論:標題-->
  
  <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ī)。
  
  <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了,大功告成!


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

  • 400-1100-266
主站蜘蛛池模板: 皋兰县| 富宁县| 义乌市| 清原| 新民市| 阳西县| 阳高县| 武安市| 昌江| 启东市| 阿克陶县| 景谷| 云浮市| 古蔺县| 塘沽区| 双辽市| 奉新县| 祁阳县| 竹北市| 吉林省| 牡丹江市| 上高县| 镶黄旗| 乳源| 西乌珠穆沁旗| 开封县| 澄城县| 房山区| 柳江县| 颍上县| 五常市| 额尔古纳市| 长治县| 顺昌县| 嵊州市| 黄冈市| 定西市| 区。| 忻城县| 巫山县| 阳江市|