helosh 发表于 2009-8-15 16:24:10

好久没有过来看看,也没有下载个来,今天特别上来看看。

gavin34 发表于 2009-9-7 19:58:32

xiexie le .wo kankan

z1w2r3 发表于 2009-11-25 09:49:13

:lol:victory:

mmaoc 发表于 2009-12-15 23:13:30

克米老大``你好啊``你太好了`你是大好人 `
这个风格`的论坛贴图`这里怎么改成显示某个版块最新发表的`不要随机的`
帮帮我`老大```(就是`我把里面的版块设置是5版块但是`显示出来的是5版块的随机图片)我需要显示按照发贴的日期显示出来怎么搞?????
下面是原代码$hack_cut_str =26; //修改标题显示字数
$hack_cut_strauthor = 9;
$sort_time = $today - ( 60*60*24*100); //本周
$comiis9_new_post_threadlist = array();
$comiistr = 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 (56,79) ORDER BY t.tid DESC LIMIT 0, 21");
while($comiistr = $db->fetch_array($query)) {
      $comiistr['forumname'] = $comiistr['name'];
      $comiistr['view_subject'] = comiisleftstr($comiistr['subject'],$hack_cut_str);
      $comiistr['view_author'] = comiisleftstr($comiistr['author'],$hack_cut_strauthor);
      $comiistr['date']= gmdate("$dateformat $timeformat", $comiistr['dateline'] + $timeoffset * 3600);$comiistr['view_date']= substr(gmdate("$dateformat", $comiistr['dateline'] + $timeoffset * 3600),5);$count = 10;for ($i=0; $i<$count; $i++) {list($mm1,$dd1) = explode("-", $comiistr['view_date']);}if ($dd1<10&&$dd1>0){$dd1='0'.$dd1;}if ($mm1<10&&$mm1>0){$mm1='0'.$mm1;}$comiistr['view_date']=$mm1.'-'.$dd1;
      

      $comiistr['lastreplytime']= gmdate("$dateformat $timeformat", $comiistr + ($timeoffset * 3600));
      if($comiistr['highlight']) {
                $string = sprintf('%02d', $comiistr['highlight']);
                $stylestr = sprintf('%03b', $string);
                $comiistr['highlight'] = 'style="';
                $comiistr['highlight'] .= $stylestr1 ? 'font-weight: bold;' : '';
                $comiistr['highlight'] .= $stylestr1 ? 'font-style: italic;' : '';
                $comiistr['highlight'] .= $stylestr1 ? 'text-decoration: underline;' : '';
                $comiistr['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';
                $comiistr['highlight'] .= '"';
      } else {
                $comiistr['highlight'] = '';
      }
      $comiis9_new_post_threadlist[] = $comiistr;

mmaoc 发表于 2009-12-15 23:14:26

在线等你``老大``

twtkeyu 发表于 2009-12-15 23:18:21

指定版块加入AND f.fid in (XXX)   XXX为版块ID
不要随机只要把rand() 改为 t.tid 就行了

mmaoc 发表于 2009-12-15 23:53:53

你太好了``

mmaoc 发表于 2009-12-15 23:54:46

实在太谢谢`克米;`了`

xx2253 发表于 2009-12-21 15:38:39

大哥呀!!!就装你这我装了几天!!!没有教程就是不好!!!我没有钱呀!!!

shiruide 发表于 2010-2-6 14:31:12

我就在米克下的很好用
非常舒服~我太喜欢这个风格了
www.to023.cn/bbs
我想要个ucenterhome的风格~··
怎么办
页: 1 2 3 4 5 [6] 7
查看完整版本: Dz7.0-精仿宁夏网虫-www.nx.cn论坛HOME页全功能版发布