Home > Article > CMS Tutorial > 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
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!