经过我这几天的观察,发现帖子丢失的问题是出在有总固顶主题上面。比如,有三个总固顶主题。那么在第一页和第二页间,就会丢失三个主题,在list中显示不出来。
解决方法:修改 list.asp 第563行左右
'============================end==========================
if totalrec mod Cint(Board_Setting(26))=0 then
n= totalrec \ Cint(Board_Setting(26))
else
n= totalrec \ Cint(Board_Setting(26))+1
end if
if not (RsTopic.bof and RsTopic.eof) then
RsTopic.MoveFirst
if currentpage > n then currentpage = n
if currentpage<1 then currentpage=1
RsTopic.Move (currentpage-1) * Cint(Board_Setting(26)+alltopnum)
do while not RsTopic.eof and page_countalltopnum)
page_count=page_count+1
'========================TopicInfo=========================
增加上述代码后,总固顶主题不会计入每个版面显示主题数量中,比如,你设置为每页显示20个主题。如果你有N个总固顶的主题的话。第一页显示的就是20+N个主题(包括总固顶主题),第一页以后的页仍然为20个主题一页!
注:我最近才开始看数据库的,不知道是不是这样。万一论坛因为修改出现问题,千万不要怪我,呵呵。
[]