帝國cms JS登陸狀態模板中調用顯示會員收到的短消息數_帝國Cms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
帝國cms JS登陸狀態模板中調用顯示會員收到的短消息數
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]'");
相關帝國Cms教程:
- 相關鏈接:
- 教程說明:
帝國Cms教程-帝國cms JS登陸狀態模板中調用顯示會員收到的短消息數
。