本人原创,高科技结晶——回帖通知!!!!!!

By admin at 2007-03-24 • 0人收藏 • 311人看过

本人原创,高科技结晶——回帖通知!!!!!!

首先,打开showbbs.asp文件
找到下面的代码
      <Td width="14%" align="center"><a href="?">最新帖子</a></td>
      <TD width="14%" align="center"><a href="?menu=1">本周人气帖子</a></td>
      <TD width="14%" align="center"><a href="?menu=2">本周热门帖子</a></td>
      <TD width="14%" align="center"><a href="?menu=3">精华帖子</a></td>
      <TD width="14%" align="center"><a href="?menu=4">投票帖子</a></td>
      <TD width="14%" align="center"><a href="?menu=5&UserName=<%=CookieUserName%>">我的帖子</a></td>
再下面添加一句
<TD width="14.285714285714285714285714285714%" align="center"><a href="?menu=6">回帖通知</a></td>
并把文件中所有的14%改成14.285714285714285714285714285714%
然后
找到下面的代码
<%
select case Request("menu")
case ""
sql="select top 200 * from [BBSXP_Threads] where IsDel=0 order by id Desc"
%><SCRIPT>bbsxpname.innerText="最新帖子"</SCRIPT><%
case "1"
sql="select top 200 * from [BBSXP_Threads] where IsDel=0 and PostTime>"&SqlNowString&"-7 order by Views Desc"
%><SCRIPT>bbsxpname.innerText="本周人气帖子"</SCRIPT><%
case "2"
sql="select top 200 * from [BBSXP_Threads] where IsDel=0 and PostTime>"&SqlNowString&"-7 order by replies Desc"
%><SCRIPT>bbsxpname.innerText="本周热门帖子"</SCRIPT><%
case "3"
sql="select top 200 * from [BBSXP_Threads] where IsGood=1 and IsDel=0 order by id Desc"
%><SCRIPT>bbsxpname.innerText="精华帖子"</SCRIPT><%
case "4"
sql="select top 200 * from [BBSXP_Threads] where IsVote=1 and IsDel=0 order by id Desc"
%><SCRIPT>bbsxpname.innerText="投票帖子"</SCRIPT><%
case "5"
sql="select top 200 * from [BBSXP_Threads] where UserName='"&UserName&"' and IsDel=0 order by id Desc"
%><SCRIPT>bbsxpname.innerText="<%=UserName%> 的帖子"</SCRIPT><%

在下面添加如下代码

case "6"
Sql="Select top 400 * from [BBSXP_Threads] where IsDel=0 and UserName='"&CookieUserName&"' and LastName<>'"&CookieUserName&"' order by id Desc"
%><SCRIPT>bbsxpname.innerText="回帖通知"</SCRIPT><%


就OK了!!!
版权所有,禁止转载!
作者:林灿斌
演示地址:http://free.9612.org/cbgzs/bbsxp6/ShowBBS.asp?menu=8
演示地址只有登陆后发过帖,且有人回帖才会有反应!

2 个回复 | 最后更新于 2007-05-05
2007-05-05   #1
干什么用的?
2007-05-05   #2
没用的!!!

登录后方可回帖

登 录
信息栏
购买PHP虚拟主机 / VPS

Carbon Forum是一个基于话题的高性能轻型PHP论坛

下载地址:Carbon Forum v5.0.1
QQ群:12607708(QQ我不常上)

donate

手机支付宝扫描上方二维码可向本项目捐款

Loading...