濮阳杆衣贸易有限公司

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

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

POST TIME:2020-04-08 22:38

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

  在論壇里看到很多朋友都在問怎樣才能使游客可以對文章進(jìn)行評論,并且游客可以輸入自己的名字,而不是顯示游客,在評論后又怎樣跳轉(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了,大功告成!


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

  • 400-1100-266
双鸭山市| 唐山市| 虎林市| 旺苍县| 昭平县| 天水市| 万载县| 温宿县| 梧州市| 塘沽区| 甘谷县| 万安县| 五家渠市| 呈贡县| 渑池县| 密云县| 磐安县| 兴业县| 波密县| 疏勒县| 紫云| 佳木斯市| 天台县| 溆浦县| 景泰县| 华坪县| 广州市| 县级市| 巧家县| 阿坝县| 泗阳县| 中西区| 富顺县| 乌审旗| 长宁县| 万安县| 云霄县| 察隅县| 乌海市| 克山县| 江山市|