
在你当前启用的主题里的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 = 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 = 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 = $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 = $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 = thread_top_find(1) + $threadlist; 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); //过滤没有权限访问的帖子,必须要做}?><?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); //过滤没有权限访问的帖子,必须要做 } ?><?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); //过滤没有权限访问的帖子,必须要做 } ?>
<?php/* 所有板块置顶帖子 + 全站置顶帖子 + 普通帖子 */if ($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);}?><?php /* 所有板块置顶帖子 + 全站置顶帖子 + 普通帖子 */ if ($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); } ?><?php /* 所有板块置顶帖子 + 全站置顶帖子 + 普通帖子 */ if ($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); } ?>
<?php/* 全站置顶帖子 + 所有板块置顶帖子 + 普通帖子 */if ($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);}?><?php /* 全站置顶帖子 + 所有板块置顶帖子 + 普通帖子 */ if ($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); } ?><?php /* 全站置顶帖子 + 所有板块置顶帖子 + 普通帖子 */ if ($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); } ?>
内容看完了
© 版权声明
请登录后发表评论
注册