Typecho blog post views statistics plug-in Stat typecho installation typecho code highlighting typechottjx

WBOY
Release: 2016-07-29 08:52:31
Original
1731 people have browsed it

This article introduces the Typecho blog article views statistics plug-in Stat to coders. Coders in need can refer to it.

The blogging system used by my new blog is the Typecho blogging system. When I used it, I found that the blogging system itself does not have an article browsing statistics function, which is very strange. After searching on the Internet, I found that there are related blog plug-ins that can be used. The use of the plug-in is very simple. Blog Bar will briefly explain how to use the plug-in Stat for the number of article page views on the Typecho blog.

Stat plug-in installation and use:

  1. Download the blog plug-in Stat and upload it to the usr/plugins/ directory
  2. Log in to the blog backend, click the plug-in option under the console option to enter the plug-in list interface
  3. Under the disabled plug-in list Activate the page views plugin Stat
  4. Click the Appearance option under the console tab to enter the theme list interface
  5. Option "Edit current appearance" option, and then select the post.php file
  6. Add the following in the relevant location of the post.php file Code

<?php <span>$this</span>->views(); ?>
Copy after login

Tips: You can add prompt words before and after the code, such as the number of views:

Original address: http://www.manongjc.com/article/740.html

Related reading:

Typecho Implementation of article ranking plug-in (by daily ranking, weekly ranking, monthly ranking, total ranking)

Typecho article reading count statistics and popular article plug-in Views

typecho plug-in ArticleProtect-add access rights to articles

How Typecho paginates homepage and articles Pagination

Call the article list under category in Typecho

Typecho gets all the pictures of the article

Typecho gets the first picture (thumbnail) of the article

The above introduces the Typecho blog article view count plug-in Stat, including the content of typecho and stat. I hope it will be helpful to friends who are interested in PHP tutorials.

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