本版活跃用户排行(按发帖数)
类别:建站知识   时间:10-12

这个也不知道默认有没有。有找的时间都查完了。是在帖子列表页用的。

<!--{eval $hotuser = DB::fetch_all("select a.authorid,a.author,count(a.authorid) as num,b.fid from ".DB::table("forum_post")." a left join ".DB::table("forum_forum")." b on b.fid=a.fid where b.`fid`='$_G[fid]' group by a.`authorid` order by `num` desc limit 0,5");}--><!--{loop $hotuser $value}-->此处省略一堆……<!--{/loop}-->复制代码
按发帖数排行,不单是主题,也含回复,回复也算活跃的一种,不是吗。

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890