步骤: ⒈打开 forumdisplay.php ,查找“ if ($announcement=$db_site->query_first("select announcementid,userid,startdate,title from announcement where startdate<=$datenow and enddate>=$datenow and (forumid=$forumid or forumid=-1) order by startdate desc limit 1")) { ”,在后面加入“ // hack thread size $size=0; $announcements=$db_site->query("select pagetext from announcement where startdate<=$datenow and enddate>=$datenow and (forumid=$forumid or forumid=-1)"); while ($announce=$db_site->fetch_array($announcements)) $size+=strlen($announce[pagetext]); $size=iif($size>1024,number_format($size/1024,1)."k",$size); // end hack thread size ”,查找“ while ($thread=$db_site->fetch_array($threads)) { ”,在后面加入“ // hack thread size $size=0; $posts=$db_site->query("select pagetext from post where threadid=".$thread[threadid]); while ($post=$db_site->fetch_array($posts)) $size+=strlen($post[pagetext]); $size=iif($size>1024,number_format($size/1024,1)."k",$size); // end hack thread size ”,保存退出;