6.0修改成6.1的方法(解决编辑框都是英文乱码的问题,其他6.0风格header.htm里的代码可能不一样,但修改方法差不多!)
以下代码提供给大家参考:
打开6.0风格header.htm文件:
查找$extrahead这个代码,把它下面这段代码
- <!--{if $allowcsscache}--><link id="css" rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}.css" /><!--{else}--><style id="css" type="text/css">{template css}</style><!--{/if}-->
- <script type="text/javascript">var IMGDIR = '{IMGDIR}';var SMDIR = '{SMDIR}';var attackevasive = '$attackevasive';</script>
- <script type="text/javascript" src="include/javascript/common.js"></script>
- <script type="text/javascript" src="include/javascript/menu.js"></script>
- <script type="text/javascript" src="include/javascript/ajax.js"></script>
- </head>
复制代码
替换成:
- <!--{if CURSCRIPT == 'viewthread'}-->
- <link rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}_viewthread.css" />
- <!--{if $thread['special']}-->
- <link rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}_special.css" />
- <!--{/if}-->
- <!--{elseif CURSCRIPT == 'post'}-->
- <link rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}_editor.css" />
- <!--{/if}-->
- <!--{if $allowcsscache}--><link id="css" rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}.css" /><!--{else}--><style id="css" type="text/css">{template css}</style><!--{/if}-->
- <script type="text/javascript">var IMGDIR = '{IMGDIR}';var SMDIR = '{SMDIR}';var attackevasive = '$attackevasive';</script>
- </script>
- <script type="text/javascript" src="include/javascript/common.js"></script>
- </head>
复制代码 |