我在UCH模板上的“随便看看”里,日志右加了一个标签,标签里面调用的是群组里面的某个话题的内容语句如下:
//推荐读读话题
$netcache['topicdudu_list'] = array();
$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname('thread')." thread LEFT JOIN ".tname('post')." pt ON pt.tagid=thread.tagid AND pt.tid=thread.tid AND pt.username=thread.username WHERE `thread`.`tagid` = '18 ' ORDER BY `thread`.`viewnum` DESC LIMIT 0,50");
while ($value = $_SGLOBAL['db']->fetch_array($query))
{
$value['subject'] = getstr($value['subject'], 32, 0, 1, 0, 0, -1);
$value['message'] = getstr($value['message'], 86, 0, 0, 0, 0, -1);
$netcache['topicdudu_list'][] = $value;
}
我想这个话题可以像日志那样在首页显示出来。但是为什么这样写了之后显示的还有这个话题下面我回复的内容,应该怎么改。我不太懂这个,求高人帮我改一下。。。。感激不尽
|