不调用回收站及指定版面的帖子的修改方法
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]