免费xiuno博客主题【最后更新:2019.5.20】

Home / Article 百晓生 2019-2-19 18696

 花了几天时间简单搞了一个主题,CSS3+HTML5+JQUERY+BOOTSTRAP、扁平化、响应式设计、自定义颜色风格,支持PHP7.2+,具体细节就不多介绍,可以尽情浏览本站!!!

注意:

1.下载完解压的目录上传到plugin目录下,详细路径:plugin/theme

2.缩略图插件必须放到网站根目录timthumb.php

3.网站不是https的记得把overwrite\view\htm\header.inc.htm里面的Content-Security-Policy去掉,否则css,js加载失败(theme_finally版本已经加了智能判断,勿须去掉)

本主题插件已经集成了vaptcha验证功能,不需要额外装插件。

最新版停止下载(232楼有历史版本)!!!

设置图

1.自定义关键词

2.自定义样式(不用总是去修改style.css文件,后台编辑应用马上生效)

3.自带CDN云加速设置,图片自动使用云地址

4.自动下载远程图片本地化,保证文章完整性

5.页面压缩,更快速度打开网站

6.自定义JS代码,适合动态调试&添加新功能

7.自定义Banner,不用修改htm文件即可达到各种banner效果

8.百度ueditor编辑器强化(增加登录,回复查看功能)

9.附件回复可查看

……(暂时就写这么多,不大记得)



2019.2.22更新内容 v1.3:

1.增加签到功能(linux需要用crontab自己实现每天0:0清空签到状态,保证第二天能签到)

2.增加个人签到获取金币

3.显示个人财富(金币,积分)

后续有空再增加,不过因为可能慢慢涉及到接口方面的内容(网站安全),主题可能不再开放后期版本。


2019.3.8更新内容 v1.4:

加强hook php文件的安全性

修复URL跳转导致css无法正常输出

增加css版本动态设置

增加一页可显示条目设置

增加简介长度设置

修改站点信息显示项

其它若干……


2019.4.1更新内容 v1.5:

内容列表增加回复用户链接,实现自动跳转(依赖通知插件)

作者添加链接 

增加Content-Security-Policy标签,https网站默认请求https资源(内容安全政策)

修复发表文章默认到当前模块

修改无头像或者头像文件大小为0(估计qq下载失败)显示默认头像

修复用户注册无法验证BUG


2019.5.7更新内容 (因主题私人化就不继续开放下载,BUG处理放上来):

修复分页回复仍然无法查看或下载附件

3个文件,分别是view/htm/thread.htm、model/custom.func.php和hook/thread_info_end.php覆盖原来目录下文件即可。升级包放附件

页面压缩代码更新,位置:hook/header_start.htm

function compress_html($higrid_uncompress_html_source){
    $chunks = preg_split('/(<pre.*?\/pre>)/ms', $higrid_uncompress_html_source, - 1, PREG_SPLIT_DELIM_CAPTURE);
    $higrid_uncompress_html_source = ''; // [higrid.net]修改压缩html : 清除换行符,清除制表符,去掉注释标记
    foreach ($chunks as $c) {
		if (strpos($c, '<pre') !== 0) {
			//remove CSS & JS comments
			$c = preg_replace('/([^:^"]\/\/[\s\S]*?\n)/s', ';', $c);//[^:^"]不是 http://或https:// 开头和不是 "//domain.com 开头
			//remove new lines & tabs
			$c = preg_replace('/[\\n\\r\\t]+/', '', $c);
			//remove extra whitespace
			$c = preg_replace('/\\s{3,}/', '', $c);
		}
        $higrid_uncompress_html_source .= $c;
    }
    return $higrid_uncompress_html_source;
}

2019.5.20更新内容 (最终版)

1.修复前面留言不显示附件的小问题

2.增加定时发布功能(linux系统的朋友用crontab可以实现快速轮询。默认是通过路由触发定时发布的机制,也就是访问量比较大的话,定时发布还是比较精确。如果几乎没人访问的话,那只能通过自己每天刷一次网站才可以触发定时发布功能)

3.增加文章特色图片选定(类似wordpress,指定列表显示特定的图片)

4.其它的。。。

特别注意的是,1.7版本必须要改掉model下的thread.func.php文件,因为官方默认hook位置没啥用,稍微把hook向后挪动了一下保证能hook能修改查询的条件参数,2个函数,分别是

function thread__find_by_fid($fid, $page = 1, $pagesize = 20, $order = 'lastpid') {
	global $conf, $forumlist, $runtime;
	$forum = $fid ? $forumlist[$fid] : array();
	$threads = empty($forum) ? $runtime['threads'] : $forum['threads'];
	
	$cond = array();
	$fid AND $cond['fid'] = $fid;
	
	// hook model__thread_find_by_fid_start.php
	
	$desc = TRUE;
	$limitpage = 50000; // 如果需要防止 CC 攻击,可以调整为 5000
	if($page > 100) {
		$totalpage = ceil($threads / $pagesize);
		$halfpage = ceil($totalpage / 2);
		if($halfpage > $limitpage && $page < ($totalpage - $limitpage)) {
			$page = $limitpage;
		}
		if($page > $halfpage) {
			$page = max(1, $totalpage - $page + 1) ;
			$threadlist = thread_find($cond, array($order=>1), $page, $pagesize);
			$threadlist = array_reverse($threadlist, TRUE);
			$desc = FALSE;
		}
	}
	if($desc) {
		$orderby = array($order=>-1);
		$threadlist = thread_find($cond, $orderby, $page, $pagesize);
	}
	
	// hook model__thread_find_by_fid_end.php
	
	return $threadlist;
}


// 从多个版块获取列表数据
function thread_find_by_fids($fids, $page = 1, $pagesize = 20, $order = 'lastpid', $threads = FALSE) {
	$cond = array('fid'=>$fids);
	// hook model_thread_find_by_fids_start.php
	
	$threadlist = thread_find($cond, array($order=>-1), $page, $pagesize);
	
	// hook model_thread_find_by_fids_end.php
	
	return $threadlist;
}

route/post.php代码添加一个hook ,搜索$arr = array();在下面添加一行代码:

// hook post_update_post_before.php

代码片

	} elseif($method == 'POST') {
		
		$subject = htmlspecialchars(param('subject', '', FALSE));
		$message = param('message', '', FALSE);
		$doctype = param('doctype', 0);
		
		// hook post_update_post_start.php
		
		empty($message) AND message('message', lang('please_input_message'));
		mb_strlen($message, 'UTF-8') > 2048000 AND message('message', lang('message_too_long'));
		
		$arr = array();
		// hook post_update_post_before.php
		if($isfirst) {

样式

#select_image_window{position:fixed;width:90%;height:80%;z-index:9999;top:6.6%;left:0;right:0;margin:0 auto;padding:3px 3px;display:none}.col-xs-8{width:12.35%;float:left;text-align:center;overflow:hidden;height:18%;border: solid 1px #aaa;margin:1px 1px}

动手能力强的可以升级1.7,新手就当没看到更新吧~~~

(设置特色图)

本文链接:https://www.it72.com/12490.htm

本帖有隐藏附件,请您回复后查看。

推荐阅读
最新回复 (260)
返回