欢迎访问广告之家:http://www.adggs.com
首页wu格BY uadmin.cn.rar (30.33 KB)
--------
第一步:上传相关文件:
包含文件:
pic.php
请上传至论坛根目录
images目录
请将目录下的文件(两个图片一个FLASH)上传到论坛images目录下
第二步:修改index.php(修改前请先备份,出错时可以恢复)
查找
$rsshead = $rssstatus
在其上加入如下代码:
//----首页多格代码开始
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan',
'blue', 'purple', 'gray');
//新贴
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$new_post_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 not in (0) AND t.displayorder not in (-1,-2) AND f.fid !=22
ORDER BY t.dateline DESC LIMIT 0, 10");
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('d', $nthread['highlight']);
$stylestr = sprintf('b', $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 = 26; //标题字数
$hack_cut_strauthor = 9;
$new_reply_threadlist = array();
$rthread = 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.closed NOT LIKE 'moved|%' AND
t.replies !=0 AND f.fid not in (0) AND t.displayorder not in
(-1,-2) AND f.fid !=22 ORDER BY t.lastpost DESC LIMIT 0,
10");
while($rthread = $db->fetch_array($query)) {
$rthread['forumname'] =
ereg_replace('<[^>]*>','',$rthread['name']);
$rthread['view_subject'] =
cutstr($rthread['subject'],$hack_cut_str);
$rthread['view_lastposter'] =
cutstr($rthread['lastposter'],$hack_cut_strauthor);
$rthread['date']= gmdate("$dateformat
$timeformat", $rthread['dateline'] + $timeoffset * 3600);
$rthread['lastreplytime']= gmdate("$dateformat $timeformat",
$rthread[lastpost] + ($timeoffset * 3600));
if($rthread['highlight']) {