发新话题
打印

[Bug] CSS of faq.php not loaded

CSS of faq.php not loaded

This is a bug in the normal version as well, but I thought I'd report it here too (since they may not see it over at discuz.net)

The problem is that CURSCRIPT isn't defined for faq.php, which leads to css_special.htm not being loaded for the FAQ. Here's my fix.

In faq.php find:
复制内容到剪贴板
代码:
<?php

/*        [Discuz!] (C)2001-2007 Comsenz Inc.
        This is NOT a freeware, use is subject to license terms

        $Id: faq.php 12034 2008-01-09 09:07:19Z tiger $
*/
Add below:
复制内容到剪贴板
代码:
if(!defined('CURSCRIPT')) {
        define('CURSCRIPT', 'faq');
}
In templates/default/header.htm find:
复制内容到剪贴板
代码:
<!--{if CURSCRIPT == 'viewthread'}-->
        <link rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}_viewthread.css" />
Replace with:
复制内容到剪贴板
代码:
<!--{if CURSCRIPT == 'viewthread' || CURSCRIPT == 'faq'}-->
        <link rel="stylesheet" type="text/css" href="forumdata/cache/style_{STYLEID}_viewthread.css" />
本帖最近评分记录
  • Clwarm 威望 +2 Thanks for your reporting! 2008-6-3 20:13
  • Clwarm 金币 +6 Thanks for your reporting! 2008-6-3 20:13

TOP

啥意思??

TOP

非IE浏览器下faq显示错误
赞助:PHP+Mysql,电信,流量不限,空间自定义大小
要求:正规站,挂一个小AD,探针:http://ass.s.a.techyou.org
English Discuz! Board

TOP

Renothing, it's a problem for all browsers. css_viewthread.htm is just not loaded, regardless of whether you're using IE or not.
Take a look at the images and you'll see the difference. Or just try it out on your forum.

[ 本帖最后由 AIfredo 于 2008-6-3 09:57 编辑 ]
附件: 您所在的用户组无法下载或查看附件

TOP

回复 4# AIfredo 的帖子

ye, I tried ,you're right
赞助:PHP+Mysql,电信,流量不限,空间自定义大小
要求:正规站,挂一个小AD,探针:http://ass.s.a.techyou.org
English Discuz! Board

TOP

Thanks.

We'll fix it soon.
作为站长,你在选用一个程序,或者安装一个风格,或者添加一个插件的时候,你是否想过会员的感受。

TOP

There's been a patch in the mean time, but this issue is still not fixed. When will it be included?

TOP

Anyone?

TOP

发新话题