TypechoJoeTheme

尘遇 logo

当我遇上你
排行榜
统计
搜索到 37 篇与 Typecho 的结果
2021-05-02
文章和评论外链加nofollow及新窗口打开
typecho 文章和评论外链自动添加nofollow和新窗口打开。nofollow标签是由谷歌领头创新的一个“反垃圾链接”的标签,并被百度、yahoo等各大搜索引擎广泛支持,引用nofollow标签的目的是:用于指示搜索引擎不要追踪(即抓取)网页上的带有nofollow属性的任何出站链接,以减少垃圾链接的分散网站权重。给文章的外链添加nofollow属性,可以有效防止垃圾链接对本站权重的稀释和伤害。全站链接处理登进后台,选择控制台-外观-编辑当前外观。 在模板文件中 选择 head.php直接在主题文件下的<head>标签内添加<base target="_blank"/>joe主题在/public/head.php文件最上面添加<base target="_blank"/><base target="_blank"/>文章外链处理将外站的链接新窗口打开,本站链接不做处理,这样方便用户进行阅读。打开typecho跟目录下的 var/HyperDown.php 文件,找到:...
醉书生
2021-05-02

网站建设

21 阅读
0 评论
2021-05-02
21 阅读
0 评论
2021-04-28
Typecho的伪静态设置
本站提供两种伪静态设置,都是基于Nginx的。一种为官方版,另一种为优化版,本站使用的是优化版。官方版 if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; }优化版location / { index index.html index.php; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php) { rewrite (.*) $1/index.php; } if (!-f $request_filename) { rewrite (.*) /index.php; } }
醉书生
2021-04-28

网站建设

60 阅读
3 评论
2021-04-28
60 阅读
3 评论
2021-03-31
Typecho 手机端评论失败解决方案
在QQ内打开博客评论的时候,偶尔会出现评论失败的情况,但是在浏览器里面又正常。解决方法:修改typecho_comments表里agent字段,调整agent字段容量。具体方法:图形化操作通过phpMyAdmin进入数据库后,找到需要操作的数据库,展开后看到typecho_comments表,点击右边的结构之后找到agent字段之后。点击右边的修改,在里面找到长度/值将默认的数值改成500之后保存就OK了数据库命令行操作:ALTER TABLE typecho_comments modify column agent varchar(500);
醉书生
2021-03-31

网站建设

107 阅读
0 评论
2021-03-31
107 阅读
0 评论
2021-03-31
Typecho 微信小程序无注登陆
Typecho 搭建的微信小程序,一直无法登陆,点了登陆没有一点反应。按下F12,查看network发现报500错误。打开debug,报以下错误:Typecho_Db_Query_Exception: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'avatarUrl' at row 1 in /www/wwwroot/ysni.cn/var/Typecho/Db/Adapter/Pdo.php:105解决方案:typecho.users表有个字段,avatarUrl这个值默认是100,微信头像太长了,超出了,调整到300后问题解决。
醉书生
2021-03-31

电脑网络

60 阅读
0 评论
2021-03-31
60 阅读
0 评论
2021-03-21
调用博主最近登录时间
放在主题文件functions.php, 或core/core.php文件里都可以,在文件最下面放入以下代码即可://调用博主最近登录时间 function get_last_login($user){ $user = '1'; $now = time(); $db = Typecho_Db::get(); $prefix = $db->getPrefix(); $row = $db->fetchRow($db->select('activated')->from('table.users')->where('uid = ?', $user)); echo Typecho_I18n::dateWord($row['activated'], $now); }然后在想要显示的位置调用以下代码:博主 <?php get_last_login(1); ?> 在线
醉书生
2021-03-21

网站建设

78 阅读
0 评论
2021-03-21
78 阅读
0 评论
2021-03-19
typecho输出二级导航和独立页面
一级分类导航代码<?php $this->widget('Widget_Metas_Category_List')->to($category); ?> <?php while($category->next()): ?> <a href="<?php $category->permalink(); ?>" title="<?php $category->name(); ?>"><?php $category->name(); ?></a> <?php endwhile; ?>独立页面<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?> <?php while($pages->next()): ?> <a<?php if($this->is('page', $pages->...
醉书生
2021-03-19

网站建设

92 阅读
0 评论
2021-03-19
92 阅读
0 评论
2021-03-13
一些常用的typecho调用语法
以下typecho调用语法为博主网络收集而来,很多都是很常用的,可方便大家查看调用。如有错误或者问题,也可以在下方留言一起讨论~站点名称<?php $this->options->title() ?>站点网址<?php $this->options ->siteUrl(); ?>站点说明<?php $this->options->description() ?>文章/页面的作者<?php $this->author(); ?>作者头像< ?php $this->author->gravatar('40') ?>上下篇调用代码<?php $this->thePrev(); ?> <?php $this->theNext(); ?>判断是否为首页,输出相关内容<?php if ($this->is('index')): ?> //是首页输出内容 <?php else: ?> //不是首页输出内容 <?...
醉书生
2021-03-13

网站建设

117 阅读
0 评论
2021-03-13
117 阅读
0 评论
2021-03-13
Typecho编辑文章页添加标签选择表
typecho的文章编辑页面常用的标签tags选择界面没有系统现有标签tags选择列表,应用中很是麻烦,需要记忆或者切换到标签管理界面查看。所以就研究一下怎么实现可选择的标签tags列表。貌似willin有了相关代码实现:下面来看看这么实现Typecho撰写文章或文章编辑时的已有标签tags选择列表: 打开typecho/admin目录,找到write-post.php文件(这个文件就是typecho文章编辑页面),打开并进行编辑,在其中找到代码:<?php $post->tags(',', false); ?>在该代码下插入以下代码:<p style="background:#E8EFD1;display:block;margin:6px 0;padding:6px 10px"> <?php $stack = Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->stack; $i = 0; while (isset($stack[$i])) { echo "&...
醉书生
2021-03-13

网站建设

106 阅读
0 评论
2021-03-13
106 阅读
0 评论

光阴者,百代之过客

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. kzkLv.1
    2021-05-10

    {!{data:image/webp;base64,UklGRi4SAABXRUJQVlA4WAoAAAAQAAAAAQMAKwEAQUxQSDUQAAAB8ID//yol/v8du7u7u1mLtDtgbX1b1F6yGNgB7oxFGEuO3UWtEnYxb2wHGbuTsLsLdi48z9drhtd5zpk9r3dMRECUbatqsy9OqTHknltoedz+gGD136z+Y/Ufq/9Y/cfqP1b/sfqP1X+s/vP/wrH6T962ql3haqpptCFqk602f6ZAB6/1+r8NLO2RD0+msN2kDed/GNjbBU5MMQfvtee+GkTj87ie1H0yGDPO/k3JFJOG00d9yla4wFYBiyAeIXyhGwd+xOms0We/nIj4rWNRnr7fOiWL+uz30+Hu7Qpx9vOGCpvIZ7N1K91s8nP4A7cel4k7W23ycPoT51nEE2db8fqMi+rRxBXG7VOOBjyEtTdjuP2lIu4mNeL1tfoHiGspt7877DWsZQzl9tcK4m5CLV5fa3GSuNT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Ie+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99snCgAA/v+tHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA}!}

  2. 遇上你Lv.1
    2021-05-08
  3. AlanineLv.1
    2021-05-04
  4. 曾经Lv.1
    2021-05-04
  5. 郎君Lv.1
    2021-05-04