最新公告
  • 欢迎您光临 我爱模板网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境! 立即加入钻石VIP
  • 帝国cms JS登陆状态模板中调用显示会员收到的短消息数

    正文概述 管理员   2025-09-06   5

    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 JS登陆状态模板中调用显示会员收到的短消息数

    发表评论

    如需帝国cms功能定制以及二次开发请联系我们

    联系作者
    script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?587cc1e5c052b5b0ce99533beff13c96"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();

    请选择支付方式

    ×
    支付宝支付
    余额支付
    ×
    微信扫码支付 0 元