document.writeln('');
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | 在你當前啟用的主題里的hook文件夾創建一個文件,文件名為“index_threadlist_before.htm”,內容任選其一: <?php if($page === 1) { $threadlist = thread_find_by_fids(array(1), 1, $pagesize, $order, $threads) + $threadlist; //把array(1)中的1換成要顯示的板塊ID(可在后臺看到) thread_list_access_filter($threadlist, $gid); //過濾帖子列表,必須要做}?><?php if($page === 1) { $threadlist = $toplist3 + thread_find_by_fids(array(1), 1, $pagesize, $order, $threads) + thread_find_by_fids($fids, $page, $pagesize, $order, $threads); //把array(1)中的1換成要顯示的板塊ID(可在后臺看到) thread_list_access_filter($threadlist, $gid); //過濾沒有權限訪問的帖子,必須要做}?><?php if($page === 1) { $threadlist = thread_top_find(1) + $threadlist; thread_list_access_filter($threadlist, $gid); //過濾沒有權限訪問的帖子,必須要做}?><?php if($page === 1) { $threadlist = $toplist3 + thread_top_find(1) + thread_find_by_fids($fids, $page, $pagesize, $order, $threads); //把1換成要顯示的板塊ID(可在后臺看到) thread_list_access_filter($threadlist, $gid); //過濾沒有權限訪問的帖子,必須要做}?><?phpif ($page === 1) { $threadlist_alltop = array(); foreach (arrlist_values($forumlist, fid) as $key => $value) { $r = thread_top_find( $value ); $threadlist_alltop = array_merge($threadlist_alltop , $r ); } $threadlist = $threadlist_alltop + $threadlist; thread_list_access_filter($threadlist, $gid);}?><?phpif ($page === 1) { $threadlist_alltop = array(); foreach (arrlist_values($forumlist, fid) as $key => $value) { $r = thread_top_find( $value ); $threadlist_alltop = array_merge($threadlist_alltop , $r ); } $threadlist = $toplist3 + $threadlist_alltop + thread_find_by_fids($fids, $page, $pagesize, $order, $threads); thread_list_access_filter($threadlist, $gid);}?> |