Typecho 加强评论拦截和自定义敏感词过滤
functions.php 文件添加 设置敏感词过滤后台选项和过滤敏感词函数 function themeConfig($form) { $SensitiveWords = new Typecho_Widget_Helper_...
那些因为折腾所留下的痕迹
functions.php 文件添加 设置敏感词过滤后台选项和过滤敏感词函数 function themeConfig($form) { $SensitiveWords = new Typecho_Widget_Helper_...
qRious 是一款纯 javascript 二维码生成插件。 html 代码 <canvas id="qrcodeImg"></canvas> JS 代码 var qr = new QRious({ ...
jQuery 获取当前页面完整地址 URL window.location.href
(function () { var viewFullScreen = document.getElementById("view-fullscreen"); if (viewFullScreen) { ...
网站根目录下的 config.inc.php 文件,加入: define('__TYPECHO_GRAVATAR_PREFIX__', 'https://cravatar.cn/avatar/'); //更换头像源
$this->is('index') //首页 $this->is('archive') //归档 $this->is('category') //分类栏目 $this->is('tag') //标签 ...
分页 <?php $this->pageLink('下一页','next'); ?> <?php $this->pageLink('上一页'); ?> <?php $this->page...
设置 - 永久链接 - 启用地址重写功能 网站根目录 创建 .htaccess 文件,粘贴 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /...
/** 过滤中英文标点符号 */ function filter_punctuation($text){ $text=urlencode($text); $text=preg_replace("/(%E3%80%82|...
如果您看到这篇文章,表示您的 blog 已经安装成功.