星期二 阴 18~24℃
uch2.0“记录”侧栏增加热门记录
source/space_doing.php
原:
$dolist = array();
(此间代码略)
if($count) {
$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname(‘doing’)." $f_index
WHERE $wheresql
ORDER BY dateline DESC
LIMIT $start,$perpage");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
realname_set($value['uid'], $value['username']);
$doids[] = $value['doid'];
$dolist[] = $value;
}
}
修改(增加一个 dolisthot):
$dolist = $dolisthot = array();
(此间代码略)
if($count) {
$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname(‘doing’)." $f_index
WHERE $wheresql
ORDER BY dateline DESC
LIMIT $start,$perpage");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
realname_set($value['uid'], $value['username']);
$doids[] = $value['doid'];
$dolist[] = $value;
}
//热门
$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname(‘doing’)." $f_index
WHERE $wheresql
ORDER BY replynum DESC
LIMIT $start,10");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
realname_set($value['uid'], $value['username']);
$doids[] = $value['doid'];
$dolisthot[] = $value;
}
}
友吧今天
嵌套心情页侧栏,增加心情Top。
嵌套圈子话题页。
发表评论