Current location: home page > course >Body

ZBPDK Plug in Magic Function Prohibits the increase of zblog article views

as everyone knows ZBLOG It is a dynamic website building program developed by PHP language. In the website, 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 only need to use an official development tool Z-Blog The PHP Development Kit can simply implement this requirement!

Install Enable First Z-Blog PHP Development Kit

 ZBPDK Plug in Magic Function Prohibition zblog article views increased by 1

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

 ZBPDK Plug in Magic Functions Prohibit the number of zblog article views to increase to the second page

Find ZC_VIEWNUMS_TURNOFF, open it and save it.

 ZBPDK Plug in Magic Function Prohibition Zblog article views increased by 3

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

Note: ZBPDK is a very professional plug-in. If you do not understand the function of each option, do not operate randomly