快捷搜索:   nginx

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

dedecms列表页调用评论数

<a href="[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="{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>
顶(3)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论