方维二次开发

wangtongphp

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

u_topic.htm调用我的主题(是发表的、回应的和推荐的之和)、我发表的、我回应和我推荐的主题的数量;调用我的活动(是我发布的和我参与的之和)、我发布的活动和我参与活动的数量

 测试:

<?php
var_dump($home_user);
?>
我的主题(发表的、回应的和推荐的之和):<?PHP echo ($home_user['forums'] + $home_user['forum_posts'] + $home_user['referrals']);?>
我发表的:<?PHP echo $home_user['forums']; ?>
我回应d <?PHP echo $home_user['forum_posts']; ?>
我推荐的<?PHP echo $home_user['referrals']; ?>
我的活动(发布的和我参与的之和):<?PHP echo $home_user['activity_post'] +  $home_user['activity']?>
我发布的活动:<?PHP echo $home_user['activity'] ?>
我参与活动:<?PHP echo $home_user['activity_post'] ?>

输出:

array(64) {
  ["uid"]=>
  string(1) "1"
  ["gid"]=>
  string(1) "7"
  ["email"]=>
  string(17) "1006440989@qq.com"
  ["user_name"]=>
  string(11) "wangtongphp"
  ["password"]=>
  string(32) "f59b6e1asdfsaefesd398c62b48466d0e"
  ["money"]=>
  string(4) "0.00"
  ["credits"]=>
  string(2) "69"
  ["reg_time"]=>
  string(10) "1367603232"
  ["status"]=>
  string(1) "1"
  ["email_status"]=>
  string(1) "0"
  ["avatar"]=>
  string(1) "0"
  ["is_daren"]=>
  string(1) "0"
  ["ucenter_id"]=>
  string(1) "0"
  ["invite_id"]=>
  string(1) "0"
  ["is_buyer"]=>
  string(1) "0"
  ["buyer_level"]=>
  string(1) "0"
  ["seller_level"]=>
  string(1) "0"
  ["server_code"]=>
  string(0) ""
  ["active_sn"]=>
  string(0) ""
  ["follows"]=>
  string(1) "0"
  ["fans"]=>
  string(1) "0"
  ["collects"]=>
  string(1) "0"
  ["favs"]=>
  string(1) "0"
  ["threads"]=>
  string(1) "5"
  ["photos"]=>
  string(1) "2"
  ["goods"]=>
  string(1) "1"
  ["shares"]=>
  string(2) "18"
  ["forums"]=>
  string(1) "5"
  ["forum_posts"]=>
  string(1) "3"
  ["albums"]=>
  string(1) "2"
  ["referrals"]=>
  string(1) "0"
  ["looks"]=>
  string(1) "0"
  ["dapei"]=>
  string(1) "0"
  ["groups"]=>
  string(1) "1"
  ["events"]=>
  string(1) "0"
  ["activity"]=>
  string(1) "2"
  ["activity_post"]=>
  string(1) "2"
  ["vote"]=>
  string(1) "0"
  ["vote_post"]=>
  string(1) "0"
  ["trial"]=>
  string(1) "0"
  ["trial_post"]=>
  string(1) "0"
  ["reg_ip"]=>
  string(9) "127.0.0.1"
  ["last_ip"]=>
  string(9) "127.0.0.1"
  ["last_time"]=>
  string(10) "1367603232"
  ["last_activity"]=>
  string(10) "1367603232"
  ["active_hash"]=>
  string(0) ""
  ["reset_hash"]=>
  string(0) ""
  ["edit_name_count"]=>
  string(1) "0"
  ["black_users"]=>
  NULL
  ["medals"]=>
  string(1) "1"
  ["last_share"]=>
  string(2) "26"
  ["nick_name"]=>
  string(0) ""
  ["gender"]=>
  string(1) "0"
  ["birth_year"]=>
  string(1) "0"
  ["birth_month"]=>
  string(1) "0"
  ["birth_day"]=>
  string(1) "0"
  ["reside_province"]=>
  string(1) "1"
  ["reside_city"]=>
  string(2) "36"
  ["school"]=>
  string(0) ""
  ["workplace"]=>
  string(0) ""
  ["occupation"]=>
  string(1) "0"
  ["weibo"]=>
  string(31) "http://wangtongphp.cnblogs.com/"
  ["hobby"]=>
  string(0) ""
  ["introduce"]=>
  string(21) "我是一只小小鸟"
}
我的主题(发表的、回应的和推荐的之和):8我发表的:5我回应d 3我推荐的0我的活动(发布的和我参与的之和):4我发布的活动:2我参与活动:2

 

 确实是referrals啊,但是没有数据
难不成又是方维的一个bug,这些小功能用的人少,他们没重视???
我推荐的<?PHP echo $home_user['referrals']; ?> 这个数据又是个空值,怎么都不变,和数据表字段:fanwe_user_count.favs一样的问题,方维分析系统的BUG;
posted on 2013-05-07 22:23  方维二次开发  阅读(575)  评论(0编辑  收藏  举报