1、在\e\member\login\loginjs.php中查找“  $mhavelogin=1; ”在其下面加上$user=islogin();

2、在“$mhavelogin=1;”下的 “//数据”下加上

$msgcount=$empire->gettotal(“select count(*) as total from phome_enewsqmsg  where  to_username=’$user[username]'”);

3、在JS挪用上岸状态模板中挪用

  <?=$msgcount?>

即可实现挪用详细信息数

注重:上面的修改顺序:先修改3再修改1、2 (由于先修改1、2再修改3时loginjs.php文件会被替换成原来的文件内容)

统计新新闻条数(把上面的2替换即可)

$msgcount=$empire->gettotal(“select count(*) as total from phome_enewsqmsg  where haveread=’0′ and to_username=’$user[username]'”);