Typecho 根据文章阅读数降序排序输出“热门文章”列表
要想实现标题中的功能,sql 语句可以这样写 select views, cid, from_unixtime(created, '%Y-%m-%d %H:%m:%s') as created_time, title, commentsNum from typecho_contents where type='post' and status='publish' order by views de
Allen Hua 的网络博客
要想实现标题中的功能,sql 语句可以这样写 select views, cid, from_unixtime(created, '%Y-%m-%d %H:%m:%s') as created_time, title, commentsNum from typecho_contents where type='post' and status='publish' order by views de
上一篇文章提到了如何获取 Typecho 当前用户一共发布了多少篇公开的文章数,文章:Typecho 归档页面显示当前作者/用户的公开文章总数量 今天这篇文章要来获取这个用户每一年发布了多少文章。 搜了一下没有对应的解决方案,更没有 typecho 插件。那么就自己动手吧。应该一个函数就可以搞定的。 登录到后台数据库,发现下面的命令就可以。由于表 typecho_contents 的 create
搜索已有解决方案 想要在我的 归档 页面显示我发布的总的文章数量。简单搜了一下有下面四篇文章 https://zezeshe.com/archives/typecho-author-postsnum.html https://zezeshe.com/archives/typecho-author-allpostsnum.html https://liudm.cn/04.html https://
本来使用简单的配置 IP:PORT 这样是可以访问 phpmyadmin 的,但是为了安全肯定不能这样做。也需要 https 访问。 借助 cloudflare 解析域名并代理流量然后得到cloudflare的证书。 登录到首页没问题。 https://abc.example.com 。该域名对应的root(网站根目录)假如是 /path/aaa,server 块配置如下 server {
本文也算是一种解决 typecho 报 error establishing a database connection 的方法 以下正文 给 vps 新建 snapshot 做备份后重新启动机器,访问此站,看到如下页面 typecho 提示 error establishing a database connection 这很明显是 数据库连接没有建立起来,很可能是 mysqld 服务没有