DEDE织梦CMS文章页/列表页调用评论数、好评、差评

dedecms列表调用评论

<a href=http://www.dede58.com/"[field:cfg_basehost/]/plus/feedback.php?aid=[field:id/]"> [field:id runphp='yes'] $aid = @me; $row = $GLOBALS['dsql']->GetOne("Select count(id) as c from dede_feedback where aid=".@me); @me=$row['c'];[/field:id]条评论 </a>

dedecms文章调用评论数


<a href=http://www.dede58.com/"{dede:field.cfg_basehost/}/plus/feedback.php?aid={dede:field.id/}"> {dede:field.id runphp='yes'} $aid = @me; $row = $GLOBALS['dsql']->GetOne("Select count(id) as c from dede_feedback where aid=".@me); @me=$row['c']; {/dede:field.id}条评论 </a> dedecms列表好评差评调用


<div class='good' title='好评' id="[field:id/]"> <span id='good[field:id/]'>好评:[field:goodpost/]</span> </div> <div class='bad' title='差评' id="[field:id/]"> <span id='bad[field:id/]'>差评:[field:badpost/]</span> </div> dedecms文章页好评调用


<div class='good' title='好评' id="{dede:field.id/}"> <span id='good{dede:field.id/}'>好评:{dede:field.goodpost/}</span> </div> <div class='bad' title='差评' id="{dede:field.id/}"> <span id='bad{dede:field.id/}'>差评:{dede:field.badpost/}</span> </div>

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

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