1 0 0

让xiuno帖子列表随机显示 教程

 陈哥 V UID:1 地仙境创始人
2025-05-10 334  来自 仙界

每次进入网站或是刷新页面都会随机刷新

thread_list.inc.htm 找到以下代码

<?php
				if($threadlist) {
					$have_allowtop = 0;
					foreach($threadlist as &$_thread) {
						$_thread['allowtop'] = forum_access_mod($_thread['fid'], $gid, 'allowtop');
						if($_thread['allowtop']) $have_allowtop = 1;
					}
				}
				?>
 
 

 

替换为

 

<?php
			if($threadlist) {
			shuffle($threadlist);
				$have_allowtop = 0;
				foreach($threadlist as &$_thread) {
					$_thread['allowtop'] = forum_access_mod($_thread['fid'], $gid, 'allowtop');
					if($_thread['allowtop']) $have_allowtop = 1;
				}
			}
			?>
 
 

其实就是加了一个函数

 

 

 

附件详情

  • 说明: 每次点击下载扣除1金币
  • 附件名:
    加载中...
  • 附件分类: 教程
  • 账户经验: 0 点 [排行]
  • 账户金币: 0 个 [兑换]
  • 账户灵石: 0 枚 [充值]
  • 上传用户:  陈哥 时间:2025-05-10
  • 下载地址:
相关帖子
看过的人 (0)
最新回复 (1)
  • zackma UID:10307 大乘期
    2025-05-11  来自 仙界
    2

    登录后可见回帖内容

    签名:http://bbs.cswl.top/

请先登录后发表评论!

返回
每日签到
今日共0人签到
请先登录
周一
周二
周三
周四
周五
周六
周日

2025年乙巳年蛇年
13:36:00
公历日期
9月26日
农历日期
八月初五
星期
星期五
下午好
金秋时节,愿您收获满满
距离国庆节还有5天

请先登录后发表评论!