内容页调用评论数:
<span>已有
{dede:field.id runphp='yes'}
$dsql = new dedesql(false);
$dsql -> SetQuery("Select count(id) as c from dede_feedback where aid=".@me);
$row = $dsql -> getone();@me=$row['c'];
{/dede:field.id}
人参与评论</span>
文章页调用评论数
<small>{dede:field.id runphp='yes'}$dsql = new dedesql(false);$dsql -> SetQuery("Select count(id) as c from #@__feedback where aid=".@me);$row = $dsql -> getone();@me=$row['c'];{/dede:field.id}</small>个评论
文章页调用收藏数
被收藏:{dede:field.id runphp='yes'}$dsql = new dedesql();$dsql -> SetQuery("select count(*) as c from #@__member_stow where aid=".@me);$row = $dsql -> getone();@me=$row['c'];{/dede:field.id}次
列表页调用评论数
[field:ID runphp='yes']$dsql = new dedesql(false);$dsql -> SetQuery("Select count(id) as c from #@__feedback where aid=".@me);$row = $dsql -> getone();@me=$row['c'];[/field:ID]个评论
列表页调用收藏数
被收藏:[field:ID runphp='yes']$dsql = new dedesql();$dsql -> SetQuery("select count(*) as c from #@__member_stow where aid=".@me);$row = $dsql -> getone();@me=$row['c'];[/field:ID]次
以上仅作参考
by 清晨 交流QQ925474725