首页 > CMS > Discuz > 正文

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

2024-09-11 09:04:53
字体:
来源:转载
供稿:网友
这个也不知道默认有没有。 有找的时间都查完了。   是在帖子列表页用的。
<!--{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}-->复制代码
按发帖数排行,不单是主题,也含回复,回复也算活跃的一种,不是吗。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表