请登录后探索更多精彩内容!
本教程以XIUNOBBS官方版基础上修改:
1、安装帖子增强插件
https://xiuno.fit/thread-167.htm
2、找到 /plugin/haya_post_info/hook/thread_list_inc_username_before.htm
把
<a href="<?php echo url("forum-$_thread [fid]");?>" target="_blank" title="<?php echo $_thread ['forumname'];?>" class="badge small mr-2 haya-post-info-home-thread-forum-username-before">
改为
<?php } ?> <?php if ($_thread ['fid'] == 8) { ?> badge-dark <?php } ?> <?php if ($_thread ['fid'] == 9) { ?> badge-primary <?php } ?> <?php if ($_thread ['fid'] == 10) { ?> badge-warning <?php } ?> small mr-2 haya-post-info-home-thread-forum-username-before">
3、后台帖子增强插件设置 - 首页帖子列表显示板块2
附上颜色对照表:
比如红色就按照这样子格式:badge-danger
<?php if ($_thread ['fid'] == 5) { ?> badge-danger <?php } ?>
板块ID为5的颜色为红色。
暂无评论
暂无评论