打开plus目录找到count.php复制一份命名为click.php
再打开click.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' ");}
在首页或者列表页中需要调用文章点击次数的地方加上下面代码:
<script src="[field:phpurl/]/click.php?view=yes&aid=[field:id/]&mid=[field:mid/]" type="text/javascript" language="javascript"></script>