首页| 版块| 我的| 发帖| 消息
主题:关于在帖子阅读页头像弹出层显示今日发帖数的研究
zhangjingyu 
在read.htm文件中,像:
注册时间{$read}
最后登录{$read}
发帖$read
这样的代码中的变量大多可以直接或(通过read.php)稍加转换就可以输出。有的字段和今日发帖数的字段“todaypost”一样存在于会员数据表(pw_memberdata)中。所以我想,添加“今日发帖{$read['micon'] = $pwMembers[$k]['icon'];
                unset($pwMembers[$k]['icon']);
            }
        }
    } else {
        $_dbCacheService = Perf::gatherCache('pw_membersdbcache');
        list($pwMembers, $customdb, $colonydb) = $_dbCacheService->getUserDBCacheByUserIds($_userIds, $showCustom, $db_showcolony, $showfield);
        /**
        $skey = array();
        foreach ($_uids as $key=>$value) {
            $skey[$value] = $key;
            $db_showcolony && $skey['UID_GROUP_'.$key] = $key;
            $showCustom && $skey['UID_CREDIT_'.$key] = $key;
        }
        
        $_cache = getDatastore();
        $arrValues = $_cache->get(array_keys($skey));
    
        $tmpUIDs = $tmpGROUPs = $tmpGROUPs = $tmpCacheData = $tmpColonydb = $tmpCustomdb = array();
        foreach ($skey as $key=>$value) {
            $prefix = substr($key,0,strrpos($key,'_'));
    
            switch ($prefix) {
                case 'UID' :
                    if (!isset($arrValues[$key])) {
                        $tmpUIDs[$key] = $value;
                        $tmpCacheData[$key] = '';
                    } else {
                        $pwMembers[$value] = $arrValues[$key];
                    }
                    break;
                case 'UID_CREDIT' :
                    if (!isset($arrValues[$key])) {
                        $tmpCREDITs[$key] = $value;
  &
zhangjingyu回帖于2022-01-14 22:19[查看电脑版]
下一页 (1/6)
下一楼»:结果,还是没有结果! 再仔细看代码,发现上面的代码中大多代码是不起作用的,也就是两个黄色背 ..

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