原帖由 szrq 于 2008-10-7 22:13 发表
其实很简单,CSS 标签的控制而已!
我不可能每个人都帮忙,2天,我做了3个精仿HOME ,累
兄台一看就是高手,能者多劳,那就先帮忙解决一下这个问题吧,因为据我所知,好多几个人的都这样,而且还都不会调整,请帮忙,谢谢,如果这个成熟,我要会的,我可以帮助楼主在这里给大家帮忙的,但是首先必须要我会了才行啊~~~
如果不设置十条,设置六条,在bbs.php里面修改
//精华随机//
$hack_cut_str =36; //修改标题显示字数
$hack_cut_strauthor = 10;
$new_comiisjhsj_threadlist = array();
$comiisdig = array();
$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 rand() DESC LIMIT 0, 10");
while($comiisdig = $db->fetch_array($query)) {
$comiisdig['forumname'] = $comiisdig['name'];
$comiisdig['view_subject'] = comiisleftstr($comiisdig['subject'],$hack_cut_str);
$comiisdig['view_author'] = comiisleftstr($comiisdig['author'],$hack_cut_strauthor);
$comiisdig['date']= gmdate("$dateformat $timeformat", $comiisdig['dateline'] + $timeoffset * 3600);
$comiisdig['lastreplytime']= gmdate("$dateformat $timeformat", $comiisdig[lastpost] + ($timeoffset * 3600));
if($comiisdig['highlight']) {
$string = sprintf('%02d', $comiisdig['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$comiisdig['highlight'] = 'style="';
} else {
$comiisdig['highlight'] = '';
}
$new_comiisjhsj_threadlist[] = $comiisdig;
}
//结束//
http://bbs.zhaotongren.com/bbs/home.php
[ 本帖最后由 okooo 于 2008-10-7 22:30 编辑 ] |