Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

Discuz让小清新网站模板支持边栏和宽屏的修改方法

discuz教程:让小清新网站模板支持边栏和宽屏的修改方法!

支持边栏的修改方法:

①首先找到 /template/qing/forum/forumdisplay.htm 文件;

② 约19行找到:

<div id="ct" class="wp cl">

③将:

<div id="ct" class="wp cl">

替换为

<div id="ct" class="wp cl{if $_G['forum']['allowside']} ct2{/if}"{if $leftside} style="margin-left:{$_G['leftsidewidth_mwidth']}px"{/if}>
                <!--{if $leftside}-->
                        <div id="sd_bdl" class="bdl" onmouseover="showMenu({'ctrlid':this.id, 'pos':'dz'});" style="width:{$_G['setting']['leftsidewidth']}px;margin-left:-{$_G['leftsidewidth_mwidth']}px">
                                <!--{hook/forumdisplay_leftside_top}-->
                                <!--[diy=diyleftsidetop]--><div id="diyleftsidetop" class="area"></div><!--[/diy]-->
 
                                <div class="tbn" id="forumleftside">
                                        <!--{subtemplate forum/forumdisplay_leftside}-->
                                </div>
 
                                <!--[diy=diyleftsidebottom]--><div id="diyleftsidebottom" class="area"></div><!--[/diy]-->
                                <!--{hook/forumdisplay_leftside_bottom}-->
                        </div>
                <!--{/if}-->

④保存,后台更新下缓存!

支持宽屏的修改方法:

①首先找到/template/qing/common/header.htm文件;

②在12行下面加上以下代码:

<!--{if widthauto()}-->
                <link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_{STYLEID}_widthauto.css?{VERHASH}" />
                <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
        <!--{/if}-->

③保存,后台更新下缓存!

PS.以上是手动修改的方法,需要修改forumdisplay.htmheader.htm两个文件,自适应显示器,支持宽窄屏切换,边栏显示

温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

Discuz增加文章摘要的字数并支持提交html代码

2020-11-10 0:00:00

编程技巧

Discuz使用QQ登录注册后如何默认取消使用QQ头像和QQ秀

2020-11-12 0:00:00

0 条回复 A文章作者 M管理员
我的黑衣又该如何将你的星空包裹。----《东方同人志》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索