对于新人来说
在网上找一些好用简洁的风格模板并不容易
所以本热收集了一些关于 5d6dHOME的一些资料
希望大家支持一下
友情提示 有的服务器不自动更新新帖 请谨慎使用
本人论坛 http://bbs.xintai123.com 5D6D风格
5d6原下载地址
https://discuz.dismall.com/viewthread.php?tid=782848&extra=&highlight=home&page=1
下载:
升级方法:
1、
后台首页文件名改为 bbs.php
把index.php改名为 bbs.php
2、
上传upload文件夹下所有至根目录
3、
后台数据库升级语句执行以下SQL
REPLACE INTO cdb_settings (variable, value) VALUES ('aggregation', '0');
更新缓存
扩展设置 -> 论坛HOME页
可以配置首页信息
5d6d的HOME页版块调整方法和贴图调整方法
原地址 https://discuz.dismall.com/viewthread.php?tid=797569&highlight=5d6d%2Bhome
找到home.php页
找到
引用:
//note 获取版块精选
$forumsift = $forumall = array();
for($i = 1; $i < 5; $i++) {
if($aggregation['fid'.$i] > 0) $forumall[] = $aggregation['fid'.$i];
}
$forumcount = 4 - count($forumall);
if($forumcount > 0){ //note 如果用户设置的版块不够4个就自动取主题最多版块.搜索时排除了后台设置的disable_forums
$notfid = @implode(',', array_merge($forumall, $aggregation['disable_forums']));
if(trim($notfid) != '') $notfid = " AND fid NOT IN($notfid)";
$query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type <> 'group'{$notfid} order by threads DESC LIMIT $forumcount");
while($autoforum = $db->fetch_array($query)) {
$forumall[] = $autoforum['fid'];
}
}
foreach($forumall as $key => $fid) {
$forumsift[$fid][] = getthreads('5',array('fid'=>$fid, 'orderby'=>'lastpost', 'ext'=>'(displayorder > 0 OR digest >0)'));
$forumsift[$fid][] = getthreads('6',array('fid'=>$fid,'orderby'=>'tid'));
$forumimg = $aggregation['fid'.($key + 1).'_img'][1] ? $imgsdir.$aggregation['fid'.($key + 1).'_img'][1] : 'http://images.5d6d.com/home/forumimgdef.jpg;
$forumsift[$fid][] = $forumimg;
$forumsift[$fid][] = $_DCACHE['forums'][$fid]['name'];
}
更改为
引用://note 获取版块精选
$forumsift = $forumall = array();
for($i = 1; $i < 9; $i++) {
if($aggregation['fid'.$i] > 0) $forumall[] = $aggregation['fid'.$i];
}
$forumcount = 8 - count($forumall);
if($forumcount > 0){ //note 如果用户设置的版块不够4个就自动取主题最多版块.搜索时排除了后台设置的disable_forums
$notfid = @implode(',', array_merge($forumall, $aggregation['disable_forums']));
if(trim($notfid) != '') $notfid = " AND fid NOT IN($notfid)";
$query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type <> 'group'{$notfid} order by threads DESC LIMIT $forumcount");
while($autoforum = $db->fetch_array($query)) {
$forumall[] = $autoforum['fid'];
}
}
foreach($forumall as $key => $fid) {
$forumsift[$fid][] = getthreads('5',array('fid'=>$fid, 'orderby'=>'lastpost', 'ext'=>'(displayorder > 0 OR digest >0)'));
$forumsift[$fid][] = getthreads('6',array('fid'=>$fid,'orderby'=>'tid'));
$forumimg = $aggregation['fid'.($key + 1).'_img'][1] ? $imgsdir.$aggregation['fid'.($key + 1).'_img'][1] : './images/home/forumimgdef.jpg';
$forumsift[$fid][] = $forumimg;
$forumsift[$fid][] = $_DCACHE['forums'][$fid]['name'];
}
这样就是调整为8个版块精选....
另外,后台对于新加的版块需要设置
所以还要找到./admin/aggregation.inc.php
找到
引用: for($i = 1; $i < 5; $i ++) {
$forumsift .='<b>版块'.$i.': </b><select id="newaggregation[fid'.$i.']" name="newaggregation[fid'.$i.']">'.forumselect_home($aggregation['fid'.$i]).'</select><br><b>图片'.$i.': <b><input class="text" type="text" name="newaggregation[fid'.$i.'_img][0]" value="'.$aggregation['fid'.$i.'_img'][0].'" size="30"><input class="text" name="newaggregation[fid'.$i.'_img][1]" value="'.$aggregation['fid'.$i.'_img'][1].'" type="hidden"><br><br>';
}
showsetting('版块精选:<br><span class="smalltxt">每个版块可定制一张标志图片.<br>标准尺寸:<font color=red>134px × 95px</font></span>', '', '', $forumsift, '20%');
更改为
引用: for($i = 1; $i < 9; $i ++) {
$forumsift .='<b>版块'.$i.': </b><select id="newaggregation[fid'.$i.']" name="newaggregation[fid'.$i.']">'.forumselect_home($aggregation['fid'.$i]).'</select><br><b>图片'.$i.': <b><input class="text" type="text" name="newaggregation[fid'.$i.'_img][0]" value="'.$aggregation['fid'.$i.'_img'][0].'" size="30"><input class="text" name="newaggregation[fid'.$i.'_img][1]" value="'.$aggregation['fid'.$i.'_img'][1].'" type="hidden"><br><br>';
}
showsetting('版块精选:<br><span class="smalltxt">每个版块可定制一张标志图片.<br>标准尺寸:<font color=red>134px × 95px</font></span>', '', '', $forumsift, '20%');
这样就都改好了...
对于高亮的那个链接就是版块精选里的图片,可以改为本地地址,或者别的....
5D6D的home插件数据库卸载语句
代码
ELETE FROM `cdb_settings` WHERE `variable` = 'aggregation' LIMIT 1;
看完后希望去回帖支持一下 http://bbs.xintai123.com
[ 本帖最后由 help9958 于 2007-12-3 17:05 编辑 ] |