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

观点

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

织梦DEDECMS5.7在列表页动态调用点击次数

时间:2020-12-16

织梦DedeCMS中首页和列表页的文章点击次数默认情况下不是动态调用的,只有在更新的时候才会更新点击次数。
 
 
      织梦DedeCMS中首页和列表页的文章点击次数动态调用解决办法如下:
 
在/plus 目录下找到count.php  复制一份 然后命名为contclick.php用编辑器将contclick.php打开 然后删除
if(!empty($maintable))
{
    $dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET click=click+1 WHERE {$idtype}='$aid' ");
}
if(!empty($mid))
{
    $dsql->ExecuteNoneQuery(" UPDATE `dede_member_tj` SET pagecount=pagecount+1 WHERE mid='$mid' ");
}
这几行代码 即插入数据库的这两行 保存
 
最后在首页和列表页中需要调用点击次数的地方添加
<scriptsrc="[field:phpurl/]/contclick.php?view=yes&aid=[field:id/]&mid=[field:mid/]"type='text/javascript' language="javascript"></script>
0
首页
案例
关于
联系