打开/member/inc/config_space.php文件
加入以下函数
function count_arc()
{
     global $dsql,$uid;
         
     $sql = "SELECT mid,userid FROM `dede_member` WHERE `userid` = '".$uid."'";
     $row = $dsql->GetOne($sql);
      
     $count = $dsql->GetOne("select COUNT(*) AS dd FROM  dede_archives where mid='".$row['mid']."'");
     return $count['dd'];
    }
模版页面中调用
<?php echo count_arc();?>