让Discuzx 1.5默认宽屏(宽版)显示,带窄版切换
在template/default/common/header.htm找到<!--{if !empty($_G['cookie']['widthauto']) && empty($_G['disabledwidthauto'])}-->
<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}-->改为下面的代码,其实就是去掉了判断<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>接下来找到<ul class="wslct">
<li><a href="javascript:;" onclick="widthauto(this)"><!--{if empty($_G['cookie']['widthauto'])}-->{lang switch_wide}<!--{else}-->{lang switch_narrow}<!--{/if}--></a></li>
</ul>
后台更新缓存OK,注意:此修改只适合论坛,不适用门户 取消宽窄切换,固定90%宽度如何修改,让门户也如此{:4_91:}
页:
[1]