本帖最后由 79310768 于 2009-4-11 17:20 编辑
请问一定要静态的?
还有就是 ,index.php 代码,如何修改,有点看不懂, 就是对应版块怎么修改 修改一个?
刚才我只改了一个HEI.HTM 版块信息还是一个样,,,
是否没改INDEX.PHP 的关系??- //音乐新贴//
- $hack_cut_str = 24; //标题字数
- $hack_cut_strauthor = 9;
- $new_yinyuepost_threadlist = array();
- $nthread = array();
- $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid in (6)(这里修改??) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 6");
- while($nthread = $db->fetch_array($query)) {
- $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
- $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
- $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
- $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_yinyuepost_threadlist[] = $nthread;
- }
- //完毕//
复制代码 |