DEDE5.7评论调用标签大全
可以用DEDE的feedback标签来调用评论。类似的代码如:
{dede:feedback row='5' titlelen='24' infolen='80'} <li> <small><a href="#" class="username">[field:username function="(@me=='guest' ? '游客' : @me)"/]</a> 评论 <a href="[field:global.cfg_phpurl/]/feedback.php?aid=[field:aid/]" class="title">[field:title/]</a></small> <p>[field:msg/]</p> </li> {/dede:feedback}
评论总条数调用:
{dede:field name='ID' runphp='yes'} $dsql = new dedesql(); $dsql -> SetQuery("select count(*) as c From dede_feedback"); $row = $dsql -> getone(); @me=$row['c'];