DedeCMS 仅限会员发表评论的修改方法(2)

<p>验证码:<input name="validate" type="text" id="validate" size="10" style="height:15px;width:50px;margin-right:6px;" class="nb" /> 

<img src='<?php echo $cfg_cmsurl;?>/include/vdimgck.php' width='50' height='20' /> 

<input type="submit" id="submit" value="提交评论" class="button" /> 

<?php if($cfg_feedback_ck=='Y') { ?> 

</p> 

<?php } ?>

3、templets目录下plus里的feedback_templet_js.htm (全部内容):

 

Copy to ClipboardLiehuo.Net Codes引用的内容:[]

{dede:config pagesize='5'/} 

{dede:datalist} 

<?php 

if($fields['userid']!='') $spaceurl = $cfg_basehost.'/member/index.php?uid='.$fields['userid']; 

else $spaceurl = "#"; 

if($fields['username']=='匿名') $spaceurl = "#"; 

$fields['bgimg'] = 'cmt-neu.gif'; 

$fields['ftypetitle'] = '该用户表示中立'; 

if($fields['ftype']=='bad') { 

$fields['bgimg'] = 'cmt-bad.gif'; 

$fields['ftypetitle'] = '该用户表示差评'; 

else if($fields['ftype']=='good') { 

$fields['bgimg'] = 'cmt-good.gif'; 

$fields['ftypetitle'] = '该用户表示好评'; 

?> 

document.write("<div class='decmt-box'>"); 

document.write("<div class='decmt-title'>"); 

document.write("<span class='moodico'><img src='{dede:global.cfg_templeturl/}/images/mood/ico-mood-<?php if($fields['face']>0) echo $fields['face'];?>.gif'/></span>"); 

document.write("<span class='username'><a href='<?php echo $spaceurl;?>'>{dede:field.username/}</a></span>"); 

document.write("<span class='date'>{dede:field.dtime function=GetDateMk(@me)/}</span>"); 

document.write("<span>评论<img src='{dede:global.cfg_templeturl/}/images/{dede:field.bgimg/}' alt='{dede:field.ftypetitle/}' /></span>"); 

document.write("</div>"); 

document.write("<div class='decmt-act'>"); 

document.write("</div>"); 

document.write("<div class='decmt-content'>{dede:field.msg function='jstrim(@me,500)'/}"); 

document.write(" "); 

document.write("<span id='goodfb{dede:field.id/}'><a href=#goodfb{dede:field.id/} onclick=postBadGood('goodfb',{dede:field.id/})>支持</a>[{dede:field.good/}]</span>"); 

document.write("<span id='badfb{dede:field.id/}'><a href=#badfb{dede:field.id/} onclick=postBadGood('badfb',{dede:field.id/})>反对</a>[{dede:field.bad/}]</span>"); 

document.write("</div>"); 

document.write("</div>"); 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/bb8057c7b27eaf2efb8010ee18ea9ca3.html