
以前的版本需要板块有100个帖子才会显示太麻烦-现在只要十个帖子啦
你任意一个板块发10个帖子不难吧
修改在
\plugin\xn_bgee_radom_thread\hook\thread_postlist_before.htm
<?php
$_randthreadlist = thread_find_by_fid($thread['fid'],rand(1,10), 10);
// 过滤没有权限访问的主题 / filter no permission thread
thread_list_access_filter($_randthreadlist, $gid);
?>
<div class="card">
<div class="card-block">
<h6 class="card-title">猜你喜欢:</h6>
<ul class="text-middle break-all">
<?php foreach($_randthreadlist as $_thread) { ?>
<li>
<a href="<?php echo url("thread-$_thread[tid]");?>">
<?php echo $_thread['subject'];?>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
