您好 7.2居中 版本 http://www.8090zone.com/bbs
调用方法修改主页版块调用,修改文件include/index_classics.inc.php
查找“页第一版调用帖子板块”,修改其中的fid号为你自己所要的
举例:
/* 首页第一版调用帖子板块 and t.fid in (1,2) 为调用fid为1和2的版 */
第一版左边图片及三文章如下,你只要改and t.fid in (1,2)里边的号码为你自己的
$apiclist1 = array();
$query = $db->query("SELECT attach.aid, attach.attachment, t.tid, t.fid, t.dateline, p.message, t.author, t.subject,f.name,p.authorid FROM {$tablepre}attachments attach LEFT JOIN {$tablepre}threads t ON t.tid=attach.tid LEFT JOIN {$tablepre}posts p on p.tid=attach.tid LEFT JOIN {$tablepre}forums f on f.fid=t.fid WHERE attach.readperm='0' AND isimage IN (1,-1) and t.fid in (1,2) GROUP BY attach.tid ORDER BY t.dateline DESC LIMIT 0,1");
while ($thread = $db->fetch_array($query)) {
$thread['picurl'] = 'attachments/'.$thread['attachment'];
$thread['subject'] = homestr(hb169net_ubb($thread['subject']),28);
$thread['message'] = homestr(hb169net_ubb($thread['message']),80);
$apiclist1[] = $thread;
}
$atxtlist1 = array();
$query = $db->query("SELECT t.subject,t.tid ,t.fid ,f.name ,f.fid FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid in (1,2) ORDER By t.dateline DESC LIMIT 0,3");
while ($thread = $db->fetch_array($query)) {
$thread['subject'] = homestr(hb169net_ubb($thread['subject']),32);
$thread['date'] = gmdate("n.j",$thread[dateline]+($timeoffset * 3600));
$atxtlist1[] = $thread;
}
第一版左右图片及三文章如下,你只要改and t.fid in (3,4)里边的号码为你自己的
$apiclist2 = array();
$query = $db->query("SELECT attach.aid, attach.attachment, t.tid, t.fid, t.dateline, p.message, t.author, t.subject,f.name,p.authorid FROM {$tablepre}attachments attach LEFT JOIN {$tablepre}threads t ON t.tid=attach.tid LEFT JOIN {$tablepre}posts p on p.tid=attach.tid LEFT JOIN {$tablepre}forums f on f.fid=t.fid WHERE attach.readperm='0' AND isimage IN (1,-1) and t.fid in (3,4) GROUP BY attach.tid ORDER BY t.dateline DESC LIMIT 0,1");
while ($thread = $db->fetch_array($query)) {
$thread['picurl'] = 'attachments/'.$thread['attachment'];
$thread['subject'] = homestr(hb169net_ubb($thread['subject']),28);
$thread['message'] = homestr(hb169net_ubb($thread['message']),80);
$apiclist2[] = $thread;
}
$atxtlist2 = array();
$query = $db->query("SELECT t.subject,t.tid ,t.fid ,f.name ,f.fid FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid in (3,4) ORDER By t.dateline DESC LIMIT 0,3");
while ($thread = $db->fetch_array($query)) {
$thread['subject'] = homestr(hb169net_ubb($thread['subject']),32);
$thread['date'] = gmdate("n.j",$thread[dateline]+($timeoffset * 3600));
$atxtlist2[] = $thread;
}
其他第二,第三版雷同!
板块调用: 关于板块调用, 打开 include/index_classics.inc.php 里面 有 5大板块 每个版块 有 4个 调用。
调用ID 方法: 找到 and t.fid in (2,3,4) 括号中的数字(2,3,4) 就是你的板块ID ,如果不知道自己的板块ID 你就点击 自己的板块 然后到浏览器找到 后面的数字就是你对应的板块ID
添加到 括号中,就能调用 板块了,
我QQ530270794 |