本版活跃用户排行(按发帖数)

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

<!--{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}-->复制代码

按发帖数排行,不单是主题,也含回复,回复也算活跃的一种,不是吗。

标签: