逐梦论坛's Archiver

shillan 发表于 2007-8-25 20:38

不调用回收站及指定版面的帖子的修改方法

topic.asp中查找下列代码并添加红色代码:

[quote]        '--- 新帖调用
        else         
                if boardid = "0" then
                            if poll="1" then
                          sql = "select distinct top " & listnum & " ta.id,ta.title,ta.titlestyle,ta.boardid,ta.lasttime,ta.username,ta.hits from " &tora & " as ta inner join leadbbs_voteitem as tb on ta.id=tb.announceid where ta.topictype=80 [color=red]and ta.boardid not in (444,20)[/color] and (tb.expirestime=0 or tb.expirestime>" & nowtime & ") order by ta.id desc"
                        else
                          sql = "select top " & listnum & " id,title,titlestyle,boardid,lasttime,username,hits from " &tora & " [color=red]where boardid not in (444,20)[/color] order by id desc"                       
                        end if
                else
                            if poll="1" then
                          sql = "select distinct top " & listnum & " ta.id,ta.title,ta.titlestyle,ta.boardid,ta.lasttime,ta.username,ta.hits from " &tora & " as ta inner join leadbbs_voteitem as tb on ta.id=tb.announceid where ta.boardid=" & boardid & " and ta.topictype=80 [color=red]and ta.boardid not in (444,20)[/color] and (tb.expirestime=0 or tb.expirestime>" & nowtime & ") order by ta.id desc"
                            else
                          sql = "select top " & listnum & " id,title,titlestyle,boardid,lasttime,username,hits from " &tora& " where boardid=" & boardid & " [color=red]and ta.boardid not in (444,20)[/color] order by id desc"
                        end if                          
                end if
        end if[/quote]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.