在你当前启用的主题里的hook文件夹创建一个文件,文件名为“index_threadlist_before.htm”,内容任选其一:
[ttPay]<?php
if($page === 1) {
$threadlist = thread_find_by_fids(array(1), 1, $pagesize, $order, $threads) + $threadlist;
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);
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);
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);
}
?>
[/ttPay]
以上。
最后于 2022-5-15
被Tillreetree编辑
,原因: