zhangjingyu
lib/element.class.php文件里getAllUserSort()函数的查询方式,“$query = $this->db->query("SELECT * FROM pw_elements WHERE type='usersort' ORDER BY mark DESC, value DESC");”改为:
“$query = $this->db->query("SELECT * FROM pw_elements WHERE TYPE = 'usersort' and mark in('todaypost','monthpost','postnum','digests','onlinetime','monoltime','money','rvrc','currency','credit','f_num','postMostUser') order by instr('todaypost,monthpost,postnum,digests,onlinetime,monoltime,money,rvrc,currency,credit,f_num,postMostUser',mark),value desc");”(引用内容)下面是原代码,也就是默认的排序方式(截图的后面还有一个贡献值排行榜,由于论坛没有设定积分规则,所以都是0。看代码还应该有朋友数和活跃图客排行榜,不知道为什么没有显示):
这是修改后的排序(同样的贡献值排行榜没有截取):