本帖最后由 yeyuhua 于 2009-1-24 12:22 编辑
index.php里:
//QQ空间FLASH特效//
$hack_cut_str =18; //修改标题显示字数
$hack_cut_strauthor = 9;
$sort_time = $today - (60*60*24*100); //本周
$d1qqrmt_new_post_threadlist = array();
$d1qqtr = 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 t.fid in(82,83,84,85,89,90,112,113,114,115,116,117,120,121,122,118,126) AND t.digest in (1,2,3) ORDER BY rand() DESC LIMIT 0,4");
while($d1qqtr = $db->fetch_array($query)) {
$d1qqtr['forumname'] = $d1qqtr['name'];
$d1qqtr['view_subject'] = d1qqleftstr($d1qqtr['subject'],$hack_cut_str);
$d1qqtr['view_author'] = d1qqleftstr($d1qqtr['author'],$hack_cut_strauthor);
$d1qqtr['date']= gmdate("$dateformat $timeformat", $d1qqtr['dateline'] + $timeoffset * 3600);
$d1qqtr['lastreplytime']= gmdate("$dateformat $timeformat", $d1qqtr[lastpost] + ($timeoffset * 3600));
if($d1qqtr['highlight']) {
$string = sprintf('%02d', $d1qqtr['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$d1qqtr['highlight'] = 'style="';
$d1qqtr['highlight'] .= $stylestr1[0] ? 'font-weight: bold;' : '';
$d1qqtr['highlight'] .= $stylestr1[1] ? 'font-style: italic;' : '';
$d1qqtr['highlight'] .= $stylestr1[2] ? 'text-decoration: underline;' : '';
$d1qqtr['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
$d1qqtr['highlight'] .= '"';
} else {
$d1qqtr['highlight'] = '';
}
$d1qqrmt_new_post_threadlist[] = $d1qqtr;
}
见上面红色数字,原来5条,现在改为4就归位了
最新精华改图片jinhua1.gif为
jinhua1.jpg |