AL8 Forum » Discuz 研究討論 » 安完三格後 特左好多字出黎 點算


2008-9-6 11:49 putto_kwok
安完三格後 特左好多字出黎 點算

[url]http://www.weontalk.com/forum/[/url]

安完三格後 特左好多字出黎 點算

[[i] 本帖最後由 putto_kwok 於 2008-9-6 14:03 編輯 [/i]]

2008-9-6 13:15 framond
Internet Explorer 無法顯示網頁
   
   最有可能的原因:
您並未連線至網際網路。
該網站發生問題。
位址可能輸入錯誤。

   您可以嘗試的方式:
     診斷連線問題  

     其他資訊

2008-9-6 14:03 putto_kwok
打錯字...唔好意思...
你上多次

2008-9-6 14:12 framond
已經睇過,但唔明你指邊一個位:em36:

2008-9-6 14:23 framond
你係咪裝呢個?
[url]http://www.alan888.com/Discuz/viewthread.php?tid=151371&highlight=%A4T%AE%E6[/url]

[quote]
//新貼//
$hack_cut_str = [color=Red]20; //修改標題顯示字數[/color]
$new_post_threadlist = array();
$nthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = $nthread['name'];
        $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
$nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
        $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
if($nthread['highlight']) {
        $string = sprintf('%02d', $nthread['highlight']);
        $stylestr = sprintf('%03b', $string[0]);
        $nthread['highlight'] = 'style="';
        $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
        $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
        $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
        $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
        $nthread['highlight'] .= '"';
    } else {
        $nthread['highlight'] = '';
    }

        $new_post_threadlist[] = $nthread;
}
//新貼//
//新回覆
$hack_cut_str = [color=Red]20; //修改標題顯示字數[/color]
$new_reply_threadlist = array();
$rthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 10");
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = $rthread['name'];
        $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
$rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
if($rthread['highlight']) {
        $string = sprintf('%02d', $rthread['highlight']);
        $stylestr = sprintf('%03b', $string[0]);
        $rthread['highlight'] = 'style="';
        $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
        $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
        $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
        $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
        $rthread['highlight'] .= '"';
    } else {
        $rthread['highlight'] = '';
    }

        $new_reply_threadlist[] = $rthread;
}
//回覆//
[/quote]

2008-9-6 14:27 putto_kwok
係丫...有咩辦法可以改丫...唔該...><"
佢 個 最新主題 同 最新回覆 果道 多左好多字 用左兩行...
有咩辦法

2008-9-6 14:29 putto_kwok
唔該灑....

頁: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.