论坛回收站(终极篇)
作者:cmscn 日期:2005-06-17
论坛回收站(终极篇)
①首先在bbs_topic加个form_id为数字类型的字段!
或者执行:alter table bbs_topic add column form_id int
============================================================
②然后在forum_write.asp里面找到,添加红色部分:
sql="insert into bbs_topic (forum_id,username,userid,topic,tcolor,tbb,icon,counter,tim,re_username,re_counter,re_tim,istop,islock,isgood,isvote,vote_num,form_id)" & _
"values ("&forumid&",'"&login_username&"',"&login_id&",'"&topic&"','"&tcolor&"',"&tbb&",'"&icon&"',0,'"&joekoe_cms.now_time&"','"&login_username&"',0,'"&joekoe_cms.now_time&"',"&nistop&","&nislock&","&nisgood&","&is_vote&",0,0)"
============================================================
③在forum_view.asp里面找到,添加红色部分
1)在dim里面定义recycle,is_recycle
2)在pageurl="?forum_id=&view_id=&"上面添加is_recycle=false
3)在fir_vote_num=rs(8)下面添加
if trim(request.querystring("recycle"))="yes" then
forumid=rs(9)
is_recycle=true
end if
4)在call forum_load(1,0,1,1)下面添加
if is_recycle=true then
if login_mode<>"admin" then call format_redirect("forum_list.asp?forum_id="&forumid)
end if
if is_recycle=true then pageurl=pageurl&"recycle=yes&"
sql="select top 1 forum_id,topic,counter,re_counter,islock,istop,isgood,isvote,vote_num,form_id from bbs_topic where id="&viewid
============================================================
④将下载的文件覆盖你的原来文件即可:
============================================================
点击下载文件大小(7080Byte)
============================================================
⑤在首页index2.asp里面找到
tmp_where="forum_id>0",将其改为
tmp_where="forum_id<>999999999"
====================================================
⑥在con_forum_main.asp找到"打开在线列表</a></span></td>"在其后面添加:
<%
if login_mode="admin" then response.write"<td width=30 align=center><img src="&joekoe_cms.web_dir_skin&"small/new_f.gif
border=0></td><td><a href=forum_recycle.asp>论坛回收站</a></td>"
%>相关帖子:http://tuwen.xicp.net/web/forum_view.asp?forum_id=14&view_id=99
[file=attachments/month_200506/17_100803_nkcq2005051913081287.rar]Click to Download[/file]
评论: 6 | 引用: 0 | 查看次数: 667
发表评论