仿163网易论坛风格隆重登场
昭通论坛(仿163网易论坛)For Discuz6.0 免费下载首先跟大家说声对不起,按照预定的时间晚了一点点,让大家久等了
很多地方没有时间搞,希望高手完善。在线人数、论坛联盟、会员生日我没有搞,对照下默认模板,用户可自行解决!
本风格模板加入了幻灯片、今日论坛之星、论坛排行榜、最新发表主题、一周热门排行、最新回复等功能。如果对PHP调用不熟悉朋友可以用DW8.0打开index.php文件自行修改相应的ID等,里面有说明。另外请备份INDEX.PHP文件,如果你不使用本风格,不需要修改然后文件。在后台切换成其他风格即可。
安装方法和其他风格一样,把所有文件上传到论坛根目录。然后导入风格文件即可。图片和样式文件大多数放在images/***/目录下的,而我放在templates/163/images下的。
临时演示地址:[url]http://nets114.web90.host-diy.net/0870bbs/index.php[/url]
本人接discuz6.0模板仿制 ,QQ:89093596 电话:13987167210(QQ不在线请电话联系,QQ不经常在线)
AD一下,希望大家仍几个IP给我小站:[url]www.21digi.com[/url] ,呵呵,谢谢
调用某栏目例子:我们打开index.php
复制内容到剪贴板代码:
//调用昭通热点新贴//
$hack_cut_str =22; //修改标题显示字数
$hack_cut_strauthor = 9;
$fid2_new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid='2' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 5");
while($nthread = $db->fetch_array($query)) {
$nthread['forumname'] = $nthread['name'];
$nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
$nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
$nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
$nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
if($nthread['highlight']) {
$string = sprintf('%02d', $nthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$nthread['highlight'] = 'style="';
$nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
$nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
$nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
$nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
$nthread['highlight'] .= '"';
} else {
$nthread['highlight'] = '';
}
$fid2_new_post_threadlist[] = $nthread;
}
//完毕//
1.我们找到这里:
$hack_cut_str =22; //修改标题显示字数
这里的22是显示字数,22为11个汉字。
2.我们再分别找到:
$fid2_new_post_threadlist = array();
{$tablepre}forums f WHERE t.fid='2'
$fid2_new_post_threadlist[] = $nthread;
这里是栏目ID,把ID为2的改为你论坛栏目的ID就可以了
3.再找到代码:
DESC LIMIT 0, 5");
这里的5是调用5条。
没有时间说明了,大家自己研究,他们又来电话催了,8
**** Hidden Message ***** 我擦 确实不错哈 好好看啊 YC61YC YC61YC YC61YC 看看
gggg
fffffffffffffffffffffffffffffffffffffffffffffffffffffffff 学习学习——如何?! 学习学习——如何?! 我回我回,看不到R YC45YC YC44YC YC47YC YC61YC YC43YC 看看看看看看看看看看看看看看看看看看看看看看看看 oo
╭╩═╮╔════╗╔════╗╔════╗╔════╗
╭╯GO ╠╣支持楼主╠╣再接再厉╠╣波过留声╠╣人过留帖╠
╰⊙═⊙╯╚◎══◎╝╚◎══◎╝╚◎══◎╝╚◎══◎╝ 谢谢,辛苦了 o
o
╭╩═╮╔════╗╔════╗╔════╗╔════╗
╭╯GO ╠╣支持楼主╠╣再接再厉╠╣波过留声╠╣人过留帖╠
╰⊙═⊙╯╚◎══◎╝╚◎══◎╝╚◎══◎╝╚◎══◎╝ 我擦 确实不错哈 好好看啊 YC61YC YC61YC kkkkkkkkkkkkk sdfdsfwfewfwefewf
1213
顶一下顶一下 看看呢是不是像你们说的那样好呢?/ bucuo haohao a
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr页:
[1]
2
