首页| 版块| 我的| 发帖| 消息
主题:测试排行榜会员排行页面排序调整及主题标签长度修改
zhangjingyu 
lib/element.class.php
“function getAllUserSort($round=0,$num=0,$special=false){
global $_CREDITDB;
!($this->ifpwcache & 1) && Showmsg('undefined_action');
$num = intval($num) ? intval($num) : $this->defaultnum;
$sorttype = array('money','rvrc','credit','currency','todaypost','monthpost','postnum','monoltime','onlinetime','digests','newUser','postMostUser');
foreach ($_CREDITDB as $key => $val) {
is_numeric($key) &&$sorttype[] = $key;
}
$sort = $count = array();
$query = $this->db->query("SELECT * FROM pw_elements WHERE type='usersort' ORDER BY mark DESC, value DESC");
while ($rt = $this->db->fetch_array($query)) {
if (!S::inArray($rt['mark'],$sorttype)) continue;
if ($count[$rt['mark']]>=$num) {
continue;
}
$sort[$rt['mark']][] = array($rt['id'],$rt['addition'],$rt['value']);
$count[$rt['mark']]++;
}
return $sort;
}”(引用内容)这里提到了pw_elements数据表。
zhangjingyu回帖于2020-02-02 16:00[查看电脑版]
下一楼»:打开本地的数据库管理软件,打开pw_elements数据表,执行sql语句:
“SELECT * FROM pw ..
«上一楼:sort.php
“} elseif ($action == 'member') {
    $ ..

查看全部回帖(58)
«返回主帖