Home  >  Article  >  CMS Tutorial  >  The number of phpcms article views remains unchanged

The number of phpcms article views remains unchanged

王林
王林Original
2020-02-08 11:23:282215browse

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}

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>

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!

Statement:
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