How to prevent Zblog from increasing the number of article views

skill 3 years ago Lao Li next door Last edited on 2021-12-10 08:38:44

ZBlog It is a dynamic website building program developed by PHP language. In the website made by zb, the number of views of each article we browse will increase by one, so as to count the total number of views of an article.

However, in some cases, we may not want to increase the number of views of articles.

Many people will consider modifying the existing theme file to delete or hide {$article. ViewNums}.

However, this scheme needs to modify the template file. Every time the template is updated, the display will be restored again, which is troublesome and unsightly.

Is there a simple way to prevent the number of articles from increasing.

The answer, of course, is yes.

Zblog is a set of building block website building programs. Any demand can be realized through various interfaces, and everything can be plugged in.

See here, do you think I want to make a plug-in?

The plug-in is right, but I didn't write it!

We just need to use an official development tool, Z-Blog PHP Development Kit, to simply implement this requirement!

 How to prevent Zblog from increasing the number of article views

Install Enable First Z-Blog PHP Development Kit

 How to prevent Zblog from increasing the number of article views

Then select BlogConfig → system in the Z-Blog PHP Development Kit plug-in.

 How to prevent Zblog from increasing the number of article views

Find ZC_VIEWNUMS_TURNOFF, open it and save it.

 How to prevent Zblog from increasing the number of article views

Find an article to refresh, and you will find that the number of views no longer grows.

Note: This plug-in is very professional. If you do not understand the function of each option, do not operate it carelessly

This article is written by@ Lao Li next door Issued on December 9, 2021-12 at Yeluzi Blog , unless otherwise specified, all articles in this blog are original, please retain the source for reprinting.
comment (0)
 visitor
Top