短消息自动弹出提示5月5日更新
查找 index.php
include_once(D_P.data/bbscache/forum_cache.php);
在下面添加
if ($type==newmsg){ }else{ if($winddb>0 && $_G>0){ echo \"<script language=\\\"JavaScript\\\">alert(\\\"您有短消息,是否查看!\\\");location.replace(message.php?type=newmsg)</script>\"; exit; }} 2009年5月5日更新说明:
1、优化短消息判断机制,不管多少个风格,仅修改一个文件,不再修改 header.htm (之前用过修改 header.htm 的自动接收或弹窗接收短消息的版本,请先还原更改)
2、优化PW7.3.2群发消息和个人消息判断,如果新消息是个人消息,就自动显示个人消息,新消息为群消息,就自动显示群消息。
3、修复自动转到该新消息窗口,无需在点击查看。
4、修复群消息提示功能,暂时群发消息不弹出提示。
修改方法如下:
require 目录下的 header.php查找
} elseif ($winddb>0 && $db_msgsound && $secondurl!=message.php && $_G>0) { $msgsound = "<bgsound src=\"$imgpath/$stylepath/msg.wav\" border=\"0\">";
替换成
} elseif ($winddb>0 && !$_COOKIE && $secondurl!=message.php && $_G>0) { $rs = $db->get_one("SELECT * FROM pw_msg WHERE ifnew=1 and touid=".pwEscape($winduid)); $mid=$rs; $type=$rs; if ($type==rebox){ $msgsound = "<bgsound src=\"$imgpath/$stylepath/msg.wav\" border=\"0\">"; $msgsound .= "<SCRIPT language=javascript>if(confirm(您有新的短消息,请点击确定查收 !)==true)location=message.php?action=read&mid=$mid;</SCRIPT>"; }else{ $msgsound = "<bgsound src=\"$imgpath/$stylepath/msg.wav\" border=\"0\">"; }打开论坛根目录下的 message.php ,找到:
require_once(R_P.require/header.php);
下面增加
$action ==receivebox && $type = $winddb==2 ? public : base;
页:
[1]