<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

Dedecms首页调用文章评论条数

时间:2020-12-14

第一:需要修改 include/extend.func.php 文件。
在它的最后面加上:

//调用单篇文章评论数

function cnum($id)
{
global $dsql;
$row = $dsql->GetOne("Select count(id) as c from dede_feedback where aid='$id'");
$num=$row['c'];
if($num==0)$num=' 0';
return $num;
}

第二:底层模板使用 [field:id function='cnum(@me)'/]调用即可@


0
首页
案例
关于
联系