找回密码
 注册
查看: 3192|回复: 2
收起左侧

回复帖子短信自动通知作者PHPWind7.5

[复制链接]

5312

主题

8317

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14660
帖子
8317
精华
67
体力
14660 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2009-12-19 09:40:05 | 显示全部楼层 |阅读模式
如果别人针对你的帖子进行了回复,那么你就可以收到提示 这种方法高度关注用户之间的对话,能够提高论坛的活跃度
安装步骤
=================================
1.把upload文件夹下的data、js、images文件夹、info4u.php复制到论坛根目录并覆盖

2.如果你没修改过require/postreply.php,可以直接用require/postreply.php覆盖
否则需要对照postreply.php里面的提示手动修改
a.打开require/postreply.php
b.找到
  1. if ($postdata->getIfcheck()) {
复制代码
上面添加
  1. //回复提示
  2. if($winduid!= $tpcarray[authorid]){
  3. list($time,$date) = getLastDate($timestamp);
  4. $line="<a href=u.php?uid=".$winduid." target=_blank><b>".$windid."</b></a>在主题<a href=job.php?action=topost&tid=".$tid."&pid=".$pid." target=_blank><b>".$replytitle."</b></a>里回复了你<span class=info_desc title=".$date.">".$time."</span>\\r\\n";
  5. $dir = R_P."data/info4u/".$tpcarray[authorid]."/";
  6. if(!is_dir("$dir")) {
  7. @mkdir("$dir");
  8. @chmod("$dir", 0777);
  9. }
  10. $file = $dir.$timestamp.".php";
  11. $fp = fopen($file, "a");
  12. if (flock($fp, LOCK_EX)) {
  13. fwrite($fp,$line);
  14. flock($fp, LOCK_UN);
  15. }
  16. fclose($fp);
  17. }
复制代码
3.修改模板,一般添加在template/wind/index.html里面

index.html里面找到
  1. <div class="noticebg">
  2. <div id="notice">
  3. <div id="notice0" style="width:98%;height:18px;line-height:18px;overflow-y:hidden;">
  4. <ul style="margin: 0; padding-top:1px;">
  5. <li>最近没有站点公告</li>
  6. </ul>
  7. </div>
  8. </div>
  9. </div>
复制代码
下面添加:
  1. <!--
  2. EOT;
  3. if($winduid){print <<<EOT
  4. -->
  5. <style>
  6. .info4u{padding:10px;height:18px;overflow:hidden;background:url(images/info4u/wall_post.gif) 12px 12px no-repeat;}
  7. .info_desc{color:#888;text-align:center;}
  8. .info_out{background:url($imgpath/$stylepath/bg.png) 0 -10px repeat-x;}
  9. #info4u a{padding-right:.5em;padding-left:.5em;color:#1b72af;}
  10. .info_refresh{color:#ccc;text-align:center;}
  11. </style>
  12. <div class="info_out" id=info4u >
  13. </div>
  14. <script language="JavaScript" type="text/javascript" src=js/info4u.js></script>
  15. <!--
  16. EOT;
  17. }print <<<EOT
  18. -->
复制代码
具体详见附件包内说明文件
info4u.rar (93 KB, 下载次数: 1)
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2024-4-28 15:01 , Processed in 0.125000 second(s), 28 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

快速回复 返回顶部 返回列表