本人原创,高科技结晶——回帖通知!!!!!!
本人原创,高科技结晶——回帖通知!!!!!!
首先,打开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
演示地址只有登陆后发过帖,且有人回帖才会有反应!
登录后方可回帖