apex辅助更新,让主页显示指定板块的“板块置顶帖子”
发布时间:2026-04-01 05:07:43 作者:玩站小弟
我要评论
apex辅助更新,让主页显示指定板块的“板块置顶帖子”,在你当前启用的主题里的hook文件夹创建一个文件,文件名为“index_threadlist_before.htm”,内容任选其一:<?php
apex单透。
必须要做 } ?让主> <?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); //过滤没有权限访问的帖子,必须要做</span> } <span class="hljs-meta">?页显></span></span> <span class="php"><span class="hljs-meta"><?php</span> <span class="hljs-comment">/* 全站置顶帖子 + 指定板块置顶帖子 + 普通帖子 */</span> <span class="hljs-keyword">if</span>($page === <span class="hljs-number">1</span>){ $threadlist = $toplist3 + thread_top_find(<span class="hljs-number">1</span>) + thread_find_by_fids($fids, $page, $pagesize, $order, $threads); <span class="hljs-comment">//把1换成要显示的板块ID(可在后台看到)</span> thread_list_access_filter($threadlist, $gid); <span class="hljs-comment">//过滤没有权限访问的帖子 ,文件名为“index_threadlist_before.htm”
,定板apex辅助更新必须要做 }
