首页›网站源码›正文

Xiuno BBS 4.0 模板制作入门教程(更换背景、修改颜色)

暂无可下载资源资源正在补充中,敬请期待
💡 温馨提示:建议使用电脑端下载,大文件下载可能需要较长时间,请耐心等待,下载完成后请校验文件完整性。

服务保障

纯净无捆绑

精简优化,纯净系统

安全可靠

多重检测,放心使用

持续更新

长期维护,持续优化

专业制作

系统玩家,品质保证

免费使用

完全免费,长期更新

已通过安全检测无病毒 / 无木马 / 无广告100%纯净资源支持在线校验文件完整性
⚙ 文件校验 MD5 / SHA1 / SHA256
🤖 AI 智能摘要
此内容由 AI 根据文章内容自动生成,并已由人工审核
正在打开 AI 智能摘要...

下载完成了吗?

请问该资源下载顺利吗?使用起来感觉如何?
✓
感谢你的反馈!
我们会持续优化资源质量,为你提供更好的下载体验。

服务协议

文章介绍
发表评论
更新日志
历史版本

Xiuno BBS 模板也是按照插件的制作流程来做的。

1. 首先我们要找到插入点:view/htm/header.inc.htm 文件中的 header_link_after.htm

2. 新建 plugin/xn_theme_paopao,这是我自己取的名字,你可以用你名字 youname_theme_xxx 这样的方式命名你的插件。注意,如果是风格插件,必须要用 xx_theme_xxx 这种格式,这样的主题风格插件会具有排他性,安装的同时自动卸载其他主题风格插件。

3. header_link_after.htm 这个插入点要注意,我们的 CSS 代码写到这里:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<style>
body { background: #196e95 !important; background-image: url(plugin/xn_style_paopao/body_bg.jpg?v=2) !important; background-repeat: no-repeat !important;}
#header { background: rgba(0,0,0,0.5) !important; }
#footer { background: rgba(0,0,0,0.5) !important; }
.card > .card-header { background-image: linear-gradient(0deg, #c4d9e3, #fcfdfd); }
.card { background: #f4fbfe !important; }
.thread:hover { background-color: rgba(255,255,255,0.6) !important; }
.text-grey { color: #90a9b6 !important;}
.thread, .post { border-bottom: 1px solid #c3d8e2;}
.input-group .form-control, .input-group .custom-select, .input-group .custom-file { background: rgba(255,255,255,0.7);}
.card-header-tabs > .nav-item > .nav-link.active { background-image: linear-gradient(0deg, #dfedf4, #f2f2f2); border-color: #c9dce5; border-bottom-color: #dfebf1;}
.nav_tag_list a { color: #c5dbe4; }
.nav_tag_list a.active { color: #6fd2ff; }
.btn-secondary { background-color:#405763; border-color:#3b515d; }
.btn-secondary:hover { background-color: #374b55; border-color: #344751; }
.blockquote { background: #e0eaef;}
</style>

4. 相关文件介绍:

body_bg.jpg:是 CSS 用到的背景图片,我会用附件传上来。

icon.png:是插件的 ICON 文件,宽高 64x64 像素

conf.json:是插件的配置文件,内容:

conf.json:是插件的配置文件,内容:

1
2
3
4
5
6
7
8
9
10
{
    "name": "官方皮肤:蓝色背景泡泡",
    "brief": "蓝色背景泡泡,更换了一张背景图,导航改了个半透明背景。",
    "version": "1.1",
    "bbs_version": "4.0",
    "installed": 1,
    "enable": 1,
    "hooks_rank": [],
    "dependencies": []
}

试试看,是不是很简单?

如果要获取该插件也很简单,后台安装 xn_theme_paopao,装完以后 plugin/xn_theme_paopao 目录就是该插件了。

THE END
© 版权声明
点赞10 分享
暂无内容
暂无更新日志
暂无内容
暂无历史版本

Xiuno BBS 4.0 模板制作入门教程(更换背景、修改颜色)

Xiuno BBS 模板也是按照插件的制作流程来做的。

1. 首先我们要找到插入点:view/htm/header.inc.htm 文件中的 header_link_after.htm

2. 新建 plugin/xn_theme_paopao,这是我自己取的名字,你可以用你名字 youname_theme_xxx 这样的方式命名你的插件。注意,如果是风格插件,必须要用 xx_theme_xxx 这种格式,这样的主题风格插件会具有排他性,安装的同时自动卸载其他主题风格插件。

3. header_link_after.htm 这个插入点要注意,我们的 CSS 代码写到这里:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<style>
body { background: #196e95 !important; background-image: url(plugin/xn_style_paopao/body_bg.jpg?v=2) !important; background-repeat: no-repeat !important;}
#header { background: rgba(0,0,0,0.5) !important; }
#footer { background: rgba(0,0,0,0.5) !important; }
.card > .card-header { background-image: linear-gradient(0deg, #c4d9e3, #fcfdfd); }
.card { background: #f4fbfe !important; }
.thread:hover { background-color: rgba(255,255,255,0.6) !important; }
.text-grey { color: #90a9b6 !important;}
.thread, .post { border-bottom: 1px solid #c3d8e2;}
.input-group .form-control, .input-group .custom-select, .input-group .custom-file { background: rgba(255,255,255,0.7);}
.card-header-tabs > .nav-item > .nav-link.active { background-image: linear-gradient(0deg, #dfedf4, #f2f2f2); border-color: #c9dce5; border-bottom-color: #dfebf1;}
.nav_tag_list a { color: #c5dbe4; }
.nav_tag_list a.active { color: #6fd2ff; }
.btn-secondary { background-color:#405763; border-color:#3b515d; }
.btn-secondary:hover { background-color: #374b55; border-color: #344751; }
.blockquote { background: #e0eaef;}
</style>

4. 相关文件介绍:

body_bg.jpg:是 CSS 用到的背景图片,我会用附件传上来。

icon.png:是插件的 ICON 文件,宽高 64x64 像素

conf.json:是插件的配置文件,内容:

conf.json:是插件的配置文件,内容:

1
2
3
4
5
6
7
8
9
10
{
    "name": "官方皮肤:蓝色背景泡泡",
    "brief": "蓝色背景泡泡,更换了一张背景图,导航改了个半透明背景。",
    "version": "1.1",
    "bbs_version": "4.0",
    "installed": 1,
    "enable": 1,
    "hooks_rank": [],
    "dependencies": []
}

试试看,是不是很简单?

如果要获取该插件也很简单,后台安装 xn_theme_paopao,装完以后 plugin/xn_theme_paopao 目录就是该插件了。

© 版权声明
THE END
点赞10 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容