1、在ememberloginloginjs.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]'");