模板之家's Archiver

九二合租网

花之残 发表于 2007-12-11 16:36

仿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 *****

im536 发表于 2007-12-12 06:39

我擦 确实不错哈 好好看啊

playqd 发表于 2007-12-12 11:24

YC61YC YC61YC YC61YC 看看

mastertx 发表于 2007-12-14 08:29

gggg

fffffffffffffffffffffffffffffffffffffffffffffffffffffffff

jclong 发表于 2007-12-14 22:04

学习学习——如何?!

ahlgdxwl 发表于 2007-12-21 16:57

学习学习——如何?!

蓝色烟圈 发表于 2007-12-22 02:32

我回我回,看不到R

生活秀 发表于 2007-12-23 13:42

YC45YC YC44YC YC47YC YC61YC YC43YC

RockHan 发表于 2008-1-8 16:48

看看看看看看看看看看看看看看看看看看看看看看看看

背包 发表于 2008-1-9 15:33

o                                          
          o                                          
    ╭╩═╮╔════╗╔════╗╔════╗╔════╗
╭╯GO  ╠╣支持楼主╠╣再接再厉╠╣波过留声╠╣人过留帖╠
╰⊙═⊙╯╚◎══◎╝╚◎══◎╝╚◎══◎╝╚◎══◎╝

lxie 发表于 2008-3-3 13:39

谢谢,辛苦了

梦想飞扬 发表于 2008-3-21 02:58

o                                          
          o                                          
    ╭╩═╮╔════╗╔════╗╔════╗╔════╗
╭╯GO  ╠╣支持楼主╠╣再接再厉╠╣波过留声╠╣人过留帖╠
╰⊙═⊙╯╚◎══◎╝╚◎══◎╝╚◎══◎╝╚◎══◎╝

hezixiong 发表于 2008-3-24 17:12

我擦 确实不错哈 好好看啊

web 发表于 2008-4-5 16:15

YC61YC YC61YC

好论坛 发表于 2008-4-9 02:39

kkkkkkkkkkkkk

cysjs 发表于 2008-4-19 03:41

sdfdsfwfewfwefewf

190034502 发表于 2008-4-20 21:17

1213

顶一下
顶一下

rootsub 发表于 2008-5-3 15:52

看看呢是不是像你们说的那样好呢?/

bsy0577 发表于 2008-5-8 19:16

bucuo haohao a

it848 发表于 2008-9-11 12:26

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

页: [1] 2

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.