六酷社区论坛HOME页清新格调免费版 下载
全部是用DIV+CSS制作,调用采用直接读取数据库,速度很快的,自动生成静态HTML页。色彩可以通过CSS来控制,调出与你论坛搭配的色彩来!还可通过附带的HOME程序来做出自己喜欢的样式的HOME页来!只要肯动手,多资多彩的论坛首页就能做出来!
===========================================================================
设计制作:缘亦如此
联系方式:QQ:11881448
专业网站设计制作,论坛HOME制作设计,风格设计。
支持社区:六酷社区
网址:http://www.6co.cn
下载此文件
===========================================================================
请使用此风格的保留风格版权,谢谢。不介意的话给我们做个链接也可以。呵!~
二楼更新
有问题可到
http://www.6co.cn/forumdisplay.php?fid=129
提出
请支持我们的社区
六酷社区 http://www.6co.cn
经常光顾我们的社区,我会不定期在社区的风格插件版块内发布一些插件、风格及风格配色!
================================================
风格修改方法
1、模板的修改
修改templates/default/cohome.htm文件就行
---------------------------------------------
2、幻灯片图片添加方法:
打开图片目录的topview.js文件,
var pics=后面为图片地址,中间用,逗号隔开。
var links=后面是链接地址
var texts=后面是要显示的文件
图片、链接、名字都是一一对应的。
---------------------------------------------
3、滚动图片添加依法:
用dw打开根目录的pichome.htm文件修改就行。
---------------------------------------------
论坛内容调用:
修改根目录的home.php文件
=========================================
4、小版块调用说明:
复制代码 代码如下:
$shipingtpmain = '';
$query = $db->query("SELECT t . fid , f . fup , f . name ,t.author,t.views, t . tid , t . subject ,t . dateline FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f . fid =t . fid where t . fid =1 ORDER BY `t` . `dateline` DESC LIMIT 0, 16");
while($shipingtp = $db->fetch_array($query)) {
$shipingtp[subject]=cutstr($shipingtp[subject],26);
$times=gmdate("$dateformat ", $shipingtp[dateline] + $timeoffset * 3600);
$shipingtpmain.="
$shipingtp[subject] |
}
$shipingtp[subject]这前面的$shipingtp是变量名,每条调用的变量名都不能相同,改的时候这一段代码中的变量名都要一样,有一个不同就调用不出来。
fid =1这后面的数是版块的FID值
DESC LIMIT 0, 16");这后面的16是调用条数
($shipingtp[subject],26);这后面的26是显示字数
设置好后在模板中的相应位置只要插入$变量名+main 例:$shipingtpmain
调用出来的效果:实在够恶!冯小刚徐帆早期激情情侣
---------------------------------------------
5、分类调用说明:
代码:
复制代码 代码如下:
//IT数码
$itshuomamain = '';
$query = $db->query("SELECT t . fid , f . fup , f . name ,t.author,t.views, t . tid , t . subject ,t . dateline FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f . fid =t . fid where f . fup =21 ORDER BY `t` . `dateline` DESC LIMIT 0, 10");
while($itshuoma = $db->fetch_array($query)) {
$itshuoma[subject]=cutstr($itshuoma[subject],30);
$itshuomamain.="
【$itshuoma[name]】$itshuoma[subject] |
}
$itshuoma[subject]这前面的$itshuoma是变量名,每条调用的变量名都不能相同,改的时候这一段代码中的变量名都要一样,有一个不同就调用不出来。
fup =21这后面的数是大版块的FID值
DESC LIMIT 0, 10");这后面的10是调用条数
($itshuoma[subject],30);这后面的30是显示字数
设置好后在模板中的相应位置只要插入$变量名+main 例:$itshuomamain
调用出来的效果:【电脑病毒】2006年世界最新杀毒软件排名
如果不想要【电脑病毒】这样的版块出标题前面只要把【$itshuoma[name]】这句删除就行
---------------------------------------------
6、会员发贴排行调用:
代码
//发贴总排行
复制代码 代码如下:
$hotmember1 = '';
$query = $db->query("SELECT username, uid, posts FROM {$tablepre}members ORDER BY posts DESC LIMIT 0, 10");
while($member = $db->fetch_array($query)) {
$hotmember1.="
|
}
$hotmember1调用变量名
DESC LIMIT 0, 10");后面的10为调用条数
---------------------------------------------
7、论坛精华贴调用:
代码
复制代码 代码如下:
//社区精华TOP
$jingthreads = '';
$query = $db->query("SELECT * FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f . fid =t . fid where digest ORDER BY `t` . `lastpost` DESC LIMIT 0, 7");
while($thread = $db->fetch_array($query)) {
$thread[subject] = cutstr($thread[subject], 35);
$jingthreads.="
·$thread[subject] |
}
$jingthreads调用变量名
DESC LIMIT 0, 7");后面的7为调用条数
($thread[subject], 35);后面的35为显示字符数
---------------------------------------------
8、论坛最新贴调用:
代码
复制代码 代码如下:
//最新文章
$replythreads = '';
$query = $db->query("SELECT author, views, tid, subject, lastpost FROM {$tablepre}threads ORDER BY dateline DESC LIMIT 0, 10");
while($thread = $db->fetch_array($query)) {
$thread[subject] = cutstr($thread[subject], 27);
$thread[lastpost] = gmdate("Y-m-j g:i", $thread[lastpost] + $timeoffset * 3600);
$replythreads.="
";
}
$replythreads调用变量名
DESC LIMIT 0, 10");后面的10为调用条数
($thread[subject], 27);后面的27为显示字符数
---------------------------------------------
9、友情链接调用
代码
复制代码 代码如下:
$tightlink_text = $tightlink_logo = '';
$query = $db->query("SELECT * FROM {$tablepre}forumlinks ORDER BY displayorder");
while($flink = $db->fetch_array($query)) {
if($flink['note']) {
if($flink['logo']) {
$forumlink['type'] = 1;
$forumlink['logo'] = $flink['logo'];
} else {
$forumlink['type'] = 2;
}
$data[] = $forumlink;
} else {
if($flink['logo']) {
$tightlink_logo .= "target=\"_blank\" class='mainlink1'>[name]\" alt=\"$flink[content]\"> ";
} else {
$tightlink_text .= "target=\"_blank\" class='mainlink1'>[$flink[name]] ";
}
}
}
if($tightlink_logo || $tightlink_text) {
$tightlink_logo .= $tightlink_logo ? '
' : '';
$data[] = array('type' => 3, 'content' =>
$tightlink_logo.$tightlink_text);
}
$flink[content]是LOGO链接调用变量
$flink[content]是文字链接调用变量
两个要同时都有
---------------------------------------------
12、生成静态HTML页的方法
打开main.php
查找:
复制代码 代码如下:
/*$discuz_action = 1;
把上面的所有代码(不包括这句)替换为
[Copy to clipboard] [ - ]CODE:
if(file_exists("main.html"))
{
$time=time();
//文件修改时间和现在时间相差?的话,直接导向html文件,否则重新生成html
if($time-filemtime("main.html"){
header("Location:main.html");
}
}
//在你的开始处加入ob_start();
ob_start();
define('CURRSCRIPT', 'main');
require './include/common.inc.php';
require DISCUZ_ROOT.'./include/forum.func.php';
复制代码 代码如下:
include template('bbs_all');
复制代码 代码如下:
//在结尾加入ob_end_clean(),并把本页输出到一个变量中
$temp=ob_get_contents();
ob_end_clean();
//写入文件
$fp=fopen('main.html','w');
fwrite($fp,$temp) or die('写文件错误');
//echo"生成HTML完成!";
header("Location:main.html");
?>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The superpeople game can be downloaded through the steam client. The size of this game is about 28G. It usually takes one and a half hours to download and install. Here is a specific download and installation tutorial for you! New method to apply for global closed testing 1) Search for "SUPERPEOPLE" in the Steam store (steam client download) 2) Click "Request access to SUPERPEOPLE closed testing" at the bottom of the "SUPERPEOPLE" store page 3) After clicking the request access button, The "SUPERPEOPLECBT" game can be confirmed in the Steam library 4) Click the install button in "SUPERPEOPLECBT" and download

As a convenient and practical network disk tool, Quark can help users easily obtain their favorite resources. What if you want to download a file locally? Let the editor tell you now, let’s learn it together! How to download Quark Network Disk to local sharing method 1. First open the Quark software, enter the homepage, and click the [Cloud Icon] on the lower right; 2. Then on the Quark Network Disk page, we click the [Document] function; 3. Then go to the document page, select the file you want to download, and click the [three-dot icon]; 4. After the final click, we click [Download] in the pop-up dialog box;

As an indispensable accompaniment to children's growth, Beilehu's children's songs have won the love of countless parents and children with their cheerful melody, vivid pictures and entertaining and educational content. In order to allow babies to enjoy the joy brought by children's songs anytime and anywhere, many parents hope to download Beilehu's children's songs to their mobile phones or tablets so that they can listen to their children at any time, but how to save Beilehu's children's songs? On your mobile phone, this tutorial will bring you a detailed introduction. Users who don’t understand it yet can come and read along with this article to learn more. Beilehu Nursery Rhymes Download Children's Songs Multi-Picture Tutorial: Open the software and select a children's song you want to download. The editor takes "Classic Children's Songs" as an example. 2. Click the "Download" button below the children's song star.

1. First we open file management. 2. Click Internal Storage. 3. Scroll down and sort to find Tencent (Tencent folder) starting with t. 4. Click to enter and find QQfile_recv, click to enter to view.

How to download and save Douyin videos? You can download and save videos in Douyin short video APP. Most users don’t know how to download and save Douyin videos. Next is the diagram of how to download and save Douyin videos brought by the editor. Text tutorial, interested users come and take a look! Tutorial on how to use Douyin: How to download and save Douyin videos 1. First open the Douyin short video APP, enter the main page and click the [Share] button on the right; 2. After that, the multi-function bar will expand below, slide to the right to find [ Save local] icon; 3. Then you need to wait for the download, and then the [Saved, please go to the album to view] border will appear; 4. Finally jump to the album page, and you can see that the video you just downloaded has been saved.

Kugou Music can help us relieve boredom in our daily life. We can listen to many good songs, especially some songs in film and television variety shows. As long as we look for them, they will appear and everyone can listen to them. How do we download the songs we like to listen to locally? Many friends don’t know, so the editor has simply compiled a guide for downloading songs to the local computer for those who are interested. Let's come to this website to check out this guide. I hope it will be helpful to everyone. Tutorial for downloading Kugou Music to your local computer 1. First open Kugou Music and click on the music you want to download on the Kugou Music page; 2. Then enter the page of this music and click on the [three-dot icon] in the lower right corner ; 3. After clicking

1. Start PPT, create a new blank document, select all text boxes and delete them. 2. Execute the Insert-Shape command, drag a rectangle in the document, and fill the shape with black. 3. Drag the rectangle to elongate it, execute the Insert-Shape command, drag out the small square, and set the fill color to white. 4. Copy and paste the small squares one by one so that the top and bottom are evenly distributed on both sides of the film. After selecting them all with ctrl+a, right-click and select Group. 5. Execute the Insert-Picture command, find the picture to be inserted in the pop-up dialog box, click to open, and adjust the size and position of the picture. 6. Repeat step 5 to insert and set the remaining pictures in order to form a film picture. 7. Select the film, execute animation-add animation command

1. First open Tencent Meeting and click [History Meeting] on the homepage. 2. After entering the meeting, click [Cloud Recording] to download. 3. Finally, to download the cloud recording video, the meeting host needs to enable the download permission and have the permission to view the recording file.
