openKylin论坛

标题: Discuz X2.5注册会员总数的计算方法 [打印本页]

作者: jonaszhang    时间: 2013-8-31 14:49
标题: Discuz X2.5注册会员总数的计算方法
  打开discuz.htm模板,可以看见会员总数是这个变量 $_G['cache']['userstatus']['totalmembers'],所以,会员总数是通过$totalmembers的值来来表示的。
  打开./source/function/cache/cache_userstats.php,发现$totalmembers的表达式如下
                 $totalmembers = C::t('common_member')->count() ;
       如果会员总数显示不正常,则需要修改代码中与$totalmembers相关的代码。





欢迎光临 openKylin论坛 (https://forum.openkylin.top/) Powered by Discuz! X3.3