cmbaby
级别: 新手上路
楼主  发表于: 2007-09-23 21:15

 关于“最新回复”首页插件的问题!无法正常显示最新回复!

如题一样,比如最新主题之类的,都可以,但是最新回复不可以,我随便回复了一个帖子,可是在最新回复里面没有反映,,怎么回复,都不会显示最新回复的帖子!求救一下

以下是我的代码,,高手帮忙看看那里的问题!




//最新回复主题开始
$query = $db->query("SELECT pt.tid,pt.author,pt.subject,pt.postdate,pt.lastpost,pt.lastposter,pt.hits,pt.replies,pf.name,pf.fid FROM pw_threads pt LEFT JOIN pw_forums pf USING(fid) where pt.ifcheck = '1' and pt.replies > 0 and ".$showforum." and pf.password = '' order by lastpost desc limit 0,$listnum");
$c_i=1;//初始化图片序号
while($threads=$db->fetch_array($query)){
$threads[postdate]=get_date($threads[postdate]);
$threads[lastpost]=get_date($threads[lastpost]);
$subject=substrs($threads[subject],$listlength);
$replythreads.="<img src='$imgpath/top/c_".$c_i.".gif' align='absmiddle' width='11' height='11'> <a href='thread.php?fid=$threads[fid]'>[$threads[name]]</a> <a href='read.php?tid=$threads[tid]' title='主题标题:$threads[subject]\n主题作者:$threads[author]\n发表时间:$threads[postdate]\n浏览次数:$threads[hits] 次\n最新回复:$threads[lastposter]\n回复时间:$threads[lastpost]\n回复次数:$threads[replies] 次'>$subject</a><br />";
$c_i++;
}
unset($threads);
unset($c_i);
//最新回复主题结束
搜索更多相关文章:插件 首页 代码 主题 标题
haiyong120
级别: 一星会员
1楼  发表于: 2007-12-31 09:24
不知道
BBS(一起破解)地址:www.17pj.com
haiyong120
级别: 一星会员
2楼  发表于: 2007-12-31 09:25
进来看看
BBS(一起破解)地址:www.17pj.com
herowasd
级别: 初来乍到
3楼  发表于: 2008-03-07 11:11
[    post]  如何隐藏帖子  [/post]
不知道!
herowasd
级别: 初来乍到
4楼  发表于: 2008-03-07 11:12
[    post]  怎么可以回复可见 [/post]
?????