|
如果别人针对你的帖子进行了回复,那么你就可以收到提示 这种方法高度关注用户之间的对话,能够提高论坛的活跃度
安装步骤
=================================
1.把upload文件夹下的data、js、images文件夹、info4u.php复制到论坛根目录并覆盖
2.如果你没修改过require/postreply.php,可以直接用require/postreply.php覆盖
否则需要对照postreply.php里面的提示手动修改
a.打开require/postreply.php
b.找到 - if ($postdata->getIfcheck()) {
复制代码 上面添加- //回复提示
- if($winduid!= $tpcarray[authorid]){
- list($time,$date) = getLastDate($timestamp);
- $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";
- $dir = R_P."data/info4u/".$tpcarray[authorid]."/";
- if(!is_dir("$dir")) {
- @mkdir("$dir");
- @chmod("$dir", 0777);
- }
- $file = $dir.$timestamp.".php";
- $fp = fopen($file, "a");
- if (flock($fp, LOCK_EX)) {
- fwrite($fp,$line);
- flock($fp, LOCK_UN);
- }
- fclose($fp);
- }
复制代码 3.修改模板,一般添加在template/wind/index.html里面
index.html里面找到- <div class="noticebg">
- <div id="notice">
- <div id="notice0" style="width:98%;height:18px;line-height:18px;overflow-y:hidden;">
- <ul style="margin: 0; padding-top:1px;">
- <li>最近没有站点公告</li>
- </ul>
- </div>
- </div>
- </div>
复制代码 下面添加: - <!--
- EOT;
- if($winduid){print <<<EOT
- -->
- <style>
- .info4u{padding:10px;height:18px;overflow:hidden;background:url(images/info4u/wall_post.gif) 12px 12px no-repeat;}
- .info_desc{color:#888;text-align:center;}
- .info_out{background:url($imgpath/$stylepath/bg.png) 0 -10px repeat-x;}
- #info4u a{padding-right:.5em;padding-left:.5em;color:#1b72af;}
- .info_refresh{color:#ccc;text-align:center;}
- </style>
- <div class="info_out" id=info4u >
- </div>
- <script language="JavaScript" type="text/javascript" src=js/info4u.js></script>
- <!--
- EOT;
- }print <<<EOT
- -->
复制代码 具体详见附件包内说明文件
info4u.rar
(93 KB, 下载次数: 1)
|
|