<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">

观点

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

浅谈dedecmsV5.7全站评论总数调用

时间:2020-12-21

下面我想跟大家分享的是关于织梦全站评论总数调用方法,希望对大家有帮助:

    具体步骤如下:

 第一步:首先在plus目录下,建立一个名为feedcount.php的文件,代码如下:

  document.write("共有<?php   
    require_once(dirname(__FILE__)."/../include/common.inc.php");   
    $row = $db->GetOne("select count(*) as fc from dede_feedback ");   
    if(!is_array($row)){   
    echo "0";   
        }else {   
            echo $row['fc'];   
    }   
?>条评论内容!"); 
   

  第二步:然后在你的织梦模板中需要显示评论总数的地方,加入以下JS代码:

  <script type="text/javascript" src="{dede:field name='phpurl'/}/feedcount.php?aid={dede:field.id/}"></script> 

0
首页
案例
关于
联系