插件作者的标准出来了!Manyou诚邀开发者加盟!
《站长》&《程序员》杂志火热征集开发者
立即免费下载 Discuz!6.1.0正式版
Discuz! 6.1.0 使用说明
Discuz!NT2.5正式版发布
开放源码下载
UCenter Home 1.2 正式版发布
官方站 | 帮助文档
基于ECShop的网店托管-卖否
PHP就业培训直通车 | LAMP培训大连
Discuz!收费服务内容及价格
论坛免费升级 手握手
Discuz!/ECShop 专用官方虚拟主机
【九城-奇迹世界】专题活动开始了!
Comsenz 招聘信息
网店系统ECShop v2.6.0正式版火热发布
基于Discuz!的免费论坛空间5D6D
参与有奖社区调查 赢取台湾5日游
发新话题
打印

[6.0] 很好 很强大的home页,正式发布!(更新2008-4-13 9:15)

好东西·~~~~~~


收藏了·~
INDEX,PHP文件中是
//热门关注新贴//
$hack_cut_str =25; //修改标题显示字数
$hack_cut_strauthor = 9;
$fid44_new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid='3' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 6");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = $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'] = '';
        }
        $fid44_new_post_threadlist[] = $nthread;
}
//完毕//

我把红色部分~,,原是44,我改成3,,因为我版块是3
但其他帖子能调用出来 ,,,就上面那个头条调用不出
地址是http://www.2006zj.cn/bbs/index1.php
是咋回事?
这里是设置置顶贴
我已经设置成本斑置顶,,还是不行啊
可能你下面有子论坛的原因

就象调用分类版块也不行的
我下面没子论坛的
给你一个顶
做个记号.
飞来海上居:http://www.haitouren.cn
引用:
原帖由 420772265 于 2008-4-11 20:25 发表

16


怎么加啊
飞来海上居:http://www.haitouren.cn
怎么看不到演示拉!!!!!
发新话题
版块跳转