在帖子表pre_forum_thread中没有是否置顶或置顶等级的字段,用的是displayorder(显示顺序)。
displayorder = 1 本版置顶
displayorder = 2 分类置顶
displayorder = 3 全局置顶
例如,在任意页面调用全站置顶数据时
<!--{eval $tops = DB::fetch_all("SELECT tid,fid,subject,dateline,author,authorid FROM ".DB::table('forum_thread')." WHERE `displayorder` = '3' ORDER BY `dateline` LIMIT 0,10");}-->