search
HomeBackend DevelopmentPHP TutorialTypecho blog post views statistics plug-in Stat typecho installation typecho code highlighting typechottjx

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->views(); ?>

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.

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
PHP Warning: filesize() [function.filesize]: stat failed的解决方法PHP Warning: filesize() [function.filesize]: stat failed的解决方法Jun 22, 2023 pm 11:54 PM

在开发PHP项目时,我们常常会遇到文件操作相关的问题,其中一个经常会出现的问题就是提示“PHPWarning:filesize()[function.filesize]:statfailed”的错误。这个错误提示经常让人摸不着头脑,很难找到解决方法,本文将介绍这个问题的原因及解决方法,希望能够帮助到大家。问题原因在PHP中,filesize

如何利用PHP和Typecho构建社交媒体网站如何利用PHP和Typecho构建社交媒体网站Jul 22, 2023 am 11:40 AM

如何利用PHP和Typecho构建社交媒体网站随着社交媒体的兴起,越来越多的人希望拥有一个属于自己的社交媒体网站。而搭建一个社交媒体网站的其中一种方式是使用PHP和Typecho这两个开源工具。PHP是一种被广泛应用于Web开发的脚本语言,而Typecho是一个小巧、易用、安全的博客系统,不仅功能强大,而且可以方便的进行二次开发。下面我将介绍如何使用PHP和

如何使用PHP和Typecho打造多语言支持的网站如何使用PHP和Typecho打造多语言支持的网站Jul 21, 2023 pm 11:21 PM

如何使用PHP和Typecho打造多语言支持的网站导语:随着全球化的发展,构建一个多语言支持的网站逐渐成为企业和个人所追求的目标。而PHP作为一种流行的编程语言,结合Typecho这一优秀的PHP开源博客程序,可以轻松实现多语言网站的搭建。本文将介绍如何使用PHP和Typecho来打造一个多语言支持的网站,并提供相关的代码示例。一、安装和配置Typecho首

如何通过PHP和Typecho实现网站图片上传功能如何通过PHP和Typecho实现网站图片上传功能Jul 21, 2023 pm 03:51 PM

如何通过PHP和Typecho实现网站图片上传功能在现代网络社交平台的潮流中,图片分享是一种非常流行的方式。网站的图片上传功能是很多网站必备的一项功能,让用户能够方便地上传自己的图片并与他人分享。本文将介绍如何通过PHP和Typecho实现网站图片上传功能。Typecho是一款开源的PHP博客系统,非常适合个人博客和小型网站的搭建。它具有轻量级、简单易用的特

如何使用PHP和Typecho实现网站导航栏的动态生成如何使用PHP和Typecho实现网站导航栏的动态生成Jul 22, 2023 pm 10:42 PM

如何使用PHP和Typecho实现网站导航栏的动态生成导航栏是一个网站中非常重要的组成部分,它可以帮助用户快速定位到所需的页面,为用户提供良好的浏览体验。在制作网站时,我们通常会使用PHP来实现导航栏的动态生成。本文将介绍如何使用PHP和Typecho来实现网站导航栏的动态生成,并且附上代码示例供读者参考。在开始之前,确保你已经安装了Typecho,并已经创

Typecho中的PHP编程技术探讨Typecho中的PHP编程技术探讨Jul 22, 2023 am 10:01 AM

Typecho中的PHP编程技术探讨导语:Typecho是一款简洁高效的PHP博客引擎,具有轻量级、易扩展的特点。本文主要探讨在Typecho中的PHP编程技术,包括常用的PHP函数、数据库操作、文件读写、表单处理等方面。并通过代码示例,展示如何在Typecho中实现常见的功能。一、PHP函数的应用字符串处理字符串处理是PHP编程中常用的操作之一。在Type

PHP和Typecho实现内容展示网站的创新方法PHP和Typecho实现内容展示网站的创新方法Jul 22, 2023 pm 06:43 PM

PHP和Typecho实现内容展示网站的创新方法随着互联网的快速发展,网站已经成为人们获取信息、交流和展示自己的重要平台。为了满足不同需求,开发人员不断寻求创新的方法来实现内容展示网站。本文将介绍一种利用PHP和Typecho实现内容展示网站的创新方法,并附上代码示例。Typecho是一款简洁、易用的开源博客引擎,它采用PHP语言开发,支持自定义主题和插件,

PHP和Typecho实现博客站点的SEO优化方法PHP和Typecho实现博客站点的SEO优化方法Jul 21, 2023 pm 12:53 PM

PHP和Typecho实现博客站点的SEO优化方法在现代互联网时代,SEO(搜索引擎优化)是建立和推广一个博客站点的重要手段之一。有助于提高站点在搜索引擎中的排名,从而吸引更多的流量和用户。而PHP作为一种广泛应用于Web开发的编程语言,结合Typecho这个简单易用的博客系统,可以实现博客站点的优化。本文将介绍一些PHP和Typecho实现博客站点的SEO

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),