当前位置:网站首页>How to solve the problem of automatically updating the click times of weaving dream article list
How to solve the problem of automatically updating the click times of weaving dream article list
2022-06-21 21:16:00 【Mimi material network】
Article dynamic views <script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>
This article introduces you how to DEDECMS In our website , When browsing articles , Automatically increase the number of clicks ; When the list of articles is displayed , Then only the hits will be displayed ( Do not increase the number of clicks ) Implementation method .
First step : open /plus/count.php file , Will be the first 36 Line default code if(!empty($maintable)) Change to the following code :
if(!empty($maintable) and $view=='yes')The second step : Open the template article list page list_article.htm, Where you want to display the number of views , Add the following code :
<script src="/plus/count.php?view=no&aid=[field:id/]&mid=[field:mid/]" type='text/javascript' language="javascript"></script>The third step : Open template article page article_article.htm, Where you want to display the number of views , Add the following code :
<script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript'
language="javascript"></script>边栏推荐
- What are some tricks that novice programmers don't know?
- Check information on the Internet after the college entrance examination, and pay attention to prevent websites without SSL certificates
- ADUM1401ARWZ-RL 亚德诺 数字信号隔离模块
- AXI_ Bus_ Matrix_ 4x4 design - logic design
- Asynchronous method understanding (demo with code)
- SMILES的基本规则
- Vertical and horizontal network shooting range community Modbus Protocol
- Which futures account opening platform is good? What are the safe and regular futures companies?
- Quels sont les conseils que les programmeurs débutants ne connaissent pas?
- What is the C language callback function?
猜你喜欢

基于 PCA 的人脸识别系统及人脸姿态分析

Intersection of vector and plane

欢迎使用Markdown编辑器

Introduction to high performance intranet DNS system

Ns32f103vbt6 hardware and software replace stm32f103vbt6

String类型转换成List<Integer>

ASP. Net core creates razor page and uploads multiple files (buffer mode)

行业首家!极氪APP获中国网络安全审查技术与认证中心权威认证

What are the applications of 4.3-inch touch screen intelligent network central control host

文件编译过程
随机推荐
Citus 11 for Postgres 完全开源,可从任何节点查询(Citus 官方博客)
Mysql database transaction
LeeCode70 爬楼梯
DEDECMS织梦后台系统加入自己的栏目菜单
【小程序】通过request实现小程序与后台asp.net的数据json传输(Post协议 图文+代码)
Several common device communication protocols in embedded development are summarized
Convert string type to list < integer >
File compilation process
函数的声明方式
Asynchronous method understanding (demo with code)
融云获取Token
LeeCode435 无重叠区间
Check information on the Internet after the college entrance examination, and pay attention to prevent websites without SSL certificates
Kubernetes-23: explain how to make CPU manager more flexible
数据路:三人行,必有我师!
NS32F103VBT6软硬件替代STM32F103VBT6
volatile
一行代碼可以做什麼?
Shutter pageview component
Golang学习笔记—指针