首页
时间轴
留言
壁纸
统计
个人导航
友情链接
订阅&采集
执念图床
Search
1
本站同款主题全量文件----持续更新
16,148 阅读
2
Typecho博客Joe主题实现友链自动检测
4,065 阅读
3
Typecho博客Joe主题实现打赏设置
4,028 阅读
4
执念采集系统使用教程——为网站添加采集功能
3,932 阅读
5
执念订阅系统使用教程---为自己网站加上订阅功能
3,263 阅读
个人感想
编程相关
网站优化
技术分享
精品源码
文章推广
登录
/
注册
Search
标签搜索
执念博客
原创
执念
zhinianblog
zhinianboke
Typecho
Joe
资源
zhinian
js
源码
插件
wordpress
java
宝塔面板
Typecho插件
青龙面板
宝塔
技巧
主题
执念博客
累计撰写
137
篇文章
累计收到
9,283
条评论
今日撰写
0
篇文章
首页
栏目
个人感想
编程相关
网站优化
技术分享
精品源码
文章推广
页面
时间轴
留言
壁纸
统计
个人导航
友情链接
用户登录
登录
注册
搜索到
15
篇与
的结果
2021-05-27
Typecho的Joe主题新增QQ打开自动跳转到浏览器
0.成品图{tabs}{tabs-pane label="后台设置功能"} {/tabs-pane}{tabs-pane label="手机端展示"}{/tabs-pane}{/tabs}1.修改functions.php文件,新增如下代码;文件路径:usr/themes/Joe-master$JPrevent = new Typecho_Widget_Helper_Form_Element_Select( 'JPrevent', array('off' => '关闭(默认)', 'on' => '开启'), 'off', '请选择是否开启QQ防红拦截', '介绍:开启后,如果在QQ里打开网站,则会提示跳转浏览器打开' ); $JPrevent->setAttribute('class', 'joe_content joe_custom'); // 如果后台无法展示该设置,将joe_custom修改为joe_other $form->addInput($JPrevent->multiMode());2.新增prevent.php文件,由于文件内容过长,请至底部下载,文件路径:usr/themes/Joe-master/public3.修改include.php文件,顶部新增,路径如下:usr/themes/Joe-master/public<?php if ($this->options->JPrevent === 'on') : ?> <?php $this->need('public/prevent.php'); ?> <?php endif; ?>{card-describe title="下载地址"}隐藏内容,请前往内页查看详情{/card-describe}
2021年05月27日
888 阅读
77 评论
7 点赞
2021-05-22
Typecho的Joe主题实现手机端登录/注册功能
0.成品图展示1.修改header.php问题,新增代码,问了路径:usr/themes/Joe-master/public隐藏内容,请前往内页查看详情放在ul后面2.修改functions.php,最后新增,文件路径:usr/themes/Joe-master// 手机端登录 $login4Phone = new Typecho_Widget_Helper_Form_Element_Select( 'login4Phone', array( 'off' => '关闭(默认)', 'on' => '开启', ), 'on', '是否启用手机端登录功能', '介绍:开启后,手机端侧边栏将展示登录功能和登录后的操作' ); $login4Phone->setAttribute('class', 'joe_content joe_custom'); // 如果无法展示,则将joe_custom替换为joe_other $form->addInput($login4Phone->multiMode());{message type="info" content="代码下载地址"/}{cloud title="代码地址" type="bd" url="https://pan.baidu.com/s/1GJQOMT_VxQ4ZUdG9O4B9hQ" password="q4tc"/}
2021年05月22日
1,537 阅读
246 评论
7 点赞
2021-05-20
Typecho的Joe主题新增文章阅读时长统计
0.成品图1.修改functions.php文件,底部增加,文件路径:/usr/themes/Joe-master// 文章阅读时长设置 $onlineTime = new Typecho_Widget_Helper_Form_Element_Select( 'onlineTime', array( 'off' => '关闭(默认)', 'on' => '开启', ), 'on', '是否启用文章阅读时长统计', '介绍:开启后,文章底部展示文章字数,预计阅读时长和已阅读时长' ); $onlineTime->setAttribute('class', 'joe_content joe_custom'); //如果设置无法展示,请将joe_custom替换为joe_other $form->addInput($onlineTime->multiMode());2.修改article.php文件,文件路径:usr/themes/Joe-master/public隐藏内容,请前往内页查看详情
2021年05月20日
853 阅读
138 评论
11 点赞
2021-05-17
Typecho的Joe主题实现评论弹幕
0.成品图如下1.修改header文件,新增代码,;文件路径:usr/themes/Joe-master/public隐藏内容,请前往内页查看详情2.修改include.php文件,新增如下代码;文件路径:usr/themes/Joe-master/public<?php if ($this->options->JBarragerStatus === 'on') : ?> <link rel="stylesheet" href="<?php $this->options->themeUrl('library/joe.barrager/joe.barrager.css'); ?>"> <?php endif; ?>3.修改functions.php,最后添加;文件路径:usr/themes/Joe-master;如果无法显示设置,则将以下joe_custom修改为joe_other$JBarragerStatus = new Typecho_Widget_Helper_Form_Element_Select( 'JBarragerStatus', array('off' => '关闭(默认)', 'on' => '开启'), 'off', '是否开启弹幕功能(仅限PC)', '介绍:开启后,网站将会显示评论弹幕功能,该功能采用CSS动画引擎,并非传统JS操作DOM,无任何性能消耗。' ); $JBarragerStatus->setAttribute('class', 'joe_content joe_custom'); $form->addInput($JBarragerStatus->multiMode());4.将以下代码,放在usr/themes/Joe-master/library5.修改config.php文件,代码如下,文件路径:usr/themes/Joe-master/public{tabs}{tabs-pane label="代码"}/* 弹幕 */ DOCUMENT_BARRAGER: '<?php echo $this->options->JBarragerStatus === 'on' ? 'on' : 'off' ?>',{/tabs-pane}{tabs-pane label="代码截图"}{/tabs-pane}{/tabs}{cloud title="代码下载" type="bd" url="https://pan.baidu.com/s/1YSK2x33d92R98pGrCiykww" password="sazh"/}
2021年05月17日
774 阅读
90 评论
6 点赞
2021-05-15
Typecho博客Joe主题实现友链自动检测
0.效果图展示1.修改friends.php文件,文件路径:Joe-master/{message type="success" content="代码如下"/}隐藏内容,请前往内页查看详情2.修改functions.php文件,文件路径:Joe-master/{message type="success" content="代码如下"/}$JFriendsSwitch = new Typecho_Widget_Helper_Form_Element_Select( 'JFriendsSwitch', array('off' => '关闭(默认)', 'on' => '开启'), 'off', '是否开启友链检测功能', '介绍:开启后友链界面可以自动检测对方站点是否添加本站友链' ); $JFriendsSwitch->setAttribute('class', 'joe_content joe_other'); $form->addInput($JFriendsSwitch->multiMode()); 注意下面是修改,不是新增 $JFriends = new Typecho_Widget_Helper_Form_Element_Textarea( 'JFriends', NULL, 'Joe的博客 || https://78.al || https://cdn.jsdelivr.net/npm/typecho-joe-next@6.0.0/assets/img/link.png || Eternity is not a distance but a decision || 友链页面地址(可不填写)', '友情链接(非必填)', '介绍:用于填写友情链接 <br /> 注意:您需要先增加友联链接页面(新增独立页面-右侧模板选择友联),该项才会生效 <br /> 格式:博客名称 || 博客地址 || 博客头像 || 博客简介 || 友链页面地址 <br /> 其他:一行一个,一行代表一个友联' ); $JFriends->setAttribute('class', 'joe_content joe_other'); $form->addInput($JFriends);3.在主题中开启此功能后,需要在友链配置最后增加一个友链界面的链接,如果没有友链页面可不添加,如图所示4.如何操作,自行摸索吧,如果有疑问可在本文章评论5.全量文件下载地址如下:隐藏内容,请前往内页查看详情
2021年05月15日
4,065 阅读
207 评论
25 点赞
2021-05-12
Typecho博客Joe主题实现打赏设置
0.成品图展示1.新增一个php文件,用于以后新增自定义设置,文件名:custom.php;文件路径:usr/themes/Joe-master/public{message type="success" content="代码如下"/}隐藏内容,请前往内页查看详情2.修改handle.php文件,底部新增代码,放在最后一行上面,文件路径:usr/themes/Joe-master/public{message type="success" content="代码如下"/}<style> /*弹出*/ .footer_flex { width: 42px; height: 42px; background-color: #f56c6c; border-radius: 50%; cursor: pointer; position: relative; z-index: 10; display: flex; justify-content: center; align-items: center; color:#909399; font-size:12px} .footer_flex:hover { background-color: #409eff; } /*top*/ .footer_flex:hover .flex-footer { display: block; } .footer_flex .flex-footer { box-shadow: 0px 0px 5px 0px #409eff; border-radius: 8px; width: 156px; height: 166px; position: absolute; left: -52px; top: -175px; text-align: center; padding-top: 15px; background: #fff; display: none; } .flex-footer input{vertical-align:middle; margin-bottom:3px; *margin-bottom:3px;} </style> <script language="javascript" type="text/javascript"> function zfb(){ var obj=document.getElementById("ewm"); obj.src=`<?php $this->options->ZNAlipay() ?>`; }; function wx(){ var obj=document.getElementById("ewm"); obj.src=`<?php $this->options->ZNWeChat() ?>`; }; function qq(){ var obj=document.getElementById("ewm"); obj.src=`<?php $this->options->ZNQqPay() ?>`; }; </script> <div style="text-align: center; margin-left:30px; <?php if(Helper::options()->ZNPaySet !== 'on') echo 'display:none;' ?>"> <div class="footer_flex"> <img src="https://cdn.jsdelivr.net/gh/aill66/cdn/shang.png" width="20px" height="20px"> <div class="flex-footer"> <img id="ewm" src="<?php $this->options->ZNAlipay() ?>" width="120px" height="120px"> <div style="margin-top:5px;"> <label><input name="pay" type="radio" value="wx" checked="checked" onclick="wx()">微信</label> <label style="margin-left:3px; display:block-inline"><input name="pay" type="radio" value="zfb" onclick="zfb()" checked>支付宝</label> <label style="margin-left:3px;"><input name="pay" type="radio" value="qq" onclick="qq()">QQ</label> </div> <div style="height:40px; background:rgba(0,0,0,0);"></div> </div> </div> <p style="margin-top:5px; color:#909399; font-size:12px">打赏</p> </div>3.修改functions.php文件,加入打赏设置菜单和底部引入新建的php文件,文件路径:usr/themes/Joe-master{message type="success" content="代码如下"/}<li class="item" data-current="joe_custom">自定义设置</li> // 收款设置 require_once("public/custom.php");4.为打赏按钮增加跳动特效,将以下代码放在主题的全局设置-自定义CSS里面.footer_flex { animation: star 0.5s ease-in-out infinite alternate; } @keyframes star { from { transform: scale(1); } to { transform: scale(1.1); } }
2021年05月12日
4,028 阅读
291 评论
45 点赞
2021-05-11
宝塔面板设置Typecho去掉index.php
1.进入网站后台设置-永久链接开启地址重写功能,然后点击保存设置2.进入宝塔面板,设置网站伪静态加入以下配置后,点击保存{message type="success" content="LAMP代码如下"/}隐藏内容,请前往内页查看详情{message type="success" content="LNMP代码如下"/}隐藏内容,请前往内页查看详情3.刷新网站,即可发现网站的index.php已经去掉
2021年05月11日
919 阅读
119 评论
9 点赞
1
2