Home > CMS Tutorial > PHPCMS > body text

The number of phpcms article views remains unchanged

王林
Release: 2020-02-08 11:23:28
Original
2216 people have browsed it

The number of phpcms article views remains unchanged

Question:

PHPCMS2008 The number of article views is always 0.

Solution:

1. Turn on "Turn on column statistics" and "Display number of views" in the background--website configuration--website settings

The number of phpcms article views remains unchanged

2. Make sure that the content display page show.html contains the following content:

{if $PHPCMS[show_hits]}浏览次数:<span id="hits">0</span>{/if}
Copy after login

3. Make sure that the content display page show.html is correctly referenced, and ensure that the path is correct.

Also, the JS in show.html cannot have a custom $() function, because PHPCMS2008 uses JQuery, and the custom $() function will be the same as the $(...) in JQuery. A conflict occurs and the statistical program cannot work properly.

<script language="JavaScript" src="count.php?contentid={$contentid}"></script>
Copy after login

Recommended related articles and tutorials: phpcms tutorial

The above is the detailed content of The number of phpcms article views remains unchanged. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template