六酷社區(qū)論壇HOME頁清新格調(diào)免費(fèi)版 下載
更新時間:2007年03月07日 00:00:00 作者:
全部是用DIV+CSS制作,調(diào)用采用直接讀取數(shù)據(jù)庫,速度很快的,自動生成靜態(tài)HTML頁。色彩可以通過CSS來控制,調(diào)出與你論壇搭配的色彩來!還可通過附帶的HOME程序來做出自己喜歡的樣式的HOME頁來!只要肯動手,多資多彩的論壇首頁就能做出來!
===========================================================================
設(shè)計制作:緣亦如此
聯(lián)系方式:QQ:11881448
專業(yè)網(wǎng)站設(shè)計制作,論壇HOME制作設(shè)計,風(fēng)格設(shè)計。
支持社區(qū):六酷社區(qū)
網(wǎng)址:http://www.6co.cn
下載此文件
===========================================================================
請使用此風(fēng)格的保留風(fēng)格版權(quán),謝謝。不介意的話給我們做個鏈接也可以。呵!~
二樓更新
有問題可到
http://www.6co.cn/forumdisplay.php?fid=129
提出
請支持我們的社區(qū)
六酷社區(qū) http://www.6co.cn
經(jīng)常光顧我們的社區(qū),我會不定期在社區(qū)的風(fēng)格插件版塊內(nèi)發(fā)布一些插件、風(fēng)格及風(fēng)格配色!
================================================
風(fēng)格修改方法
1、模板的修改
修改templates/default/cohome.htm文件就行
---------------------------------------------
2、幻燈片圖片添加方法:
打開圖片目錄的topview.js文件,
var pics=后面為圖片地址,中間用,逗號隔開。
var links=后面是鏈接地址
var texts=后面是要顯示的文件
圖片、鏈接、名字都是一一對應(yīng)的。
---------------------------------------------
3、滾動圖片添加依法:
用dw打開根目錄的pichome.htm文件修改就行。
---------------------------------------------
論壇內(nèi)容調(diào)用:
修改根目錄的home.php文件
=========================================
4、小版塊調(diào)用說明:
$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.="<table width='98%' height='20' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><a href='viewthread.php?tid=$shipingtp[tid]' target='_blank' title='作者:$shipingtp[author] 查看:$shipingtp[views]' class='mainlink1'>$shipingtp[subject]</a></td>
</tr></table>";
}
$shipingtp[subject]這前面的$shipingtp是變量名,每條調(diào)用的變量名都不能相同,改的時候這一段代碼中的變量名都要一樣,有一個不同就調(diào)用不出來。
fid =1這后面的數(shù)是版塊的FID值
DESC LIMIT 0, 16");這后面的16是調(diào)用條數(shù)
($shipingtp[subject],26);這后面的26是顯示字?jǐn)?shù)
設(shè)置好后在模板中的相應(yīng)位置只要插入$變量名+main 例:$shipingtpmain
調(diào)用出來的效果:實在夠惡!馮小剛徐帆早期激情情侶
---------------------------------------------
5、分類調(diào)用說明:
代碼:
//IT數(shù)碼
$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.="<table width='98%' height='20' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><a href='forumdisplay.php?fid=$itshuoma[fid]' class='mainlink3'>【$itshuoma[name]】</a><a href='viewthread.php?tid=$itshuoma[tid]' target='_blank' title='作者:$itshuoma[author] 查看:$itshuoma[views]' class='mainlink1'>$itshuoma[subject]</a></td></tr></table>";
}
$itshuoma[subject]這前面的$itshuoma是變量名,每條調(diào)用的變量名都不能相同,改的時候這一段代碼中的變量名都要一樣,有一個不同就調(diào)用不出來。
fup =21這后面的數(shù)是大版塊的FID值
DESC LIMIT 0, 10");這后面的10是調(diào)用條數(shù)
($itshuoma[subject],30);這后面的30是顯示字?jǐn)?shù)
設(shè)置好后在模板中的相應(yīng)位置只要插入$變量名+main 例:$itshuomamain
調(diào)用出來的效果:【電腦病毒】2006年世界最新殺毒軟件排名
如果不想要【電腦病毒】這樣的版塊出標(biāo)題前面只要把<a href='forumdisplay.php?fid=$itshuoma[fid]' class='mainlink3'>【$itshuoma[name]】</a>這句刪除就行
---------------------------------------------
6、會員發(fā)貼排行調(diào)用:
代碼
//發(fā)貼總排行
$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.="<table width='100%' border='0' cellspacing='0' cellpadding='0' style='margin-top:4px'><tr><td width='5%'> </td>
<td width='89%' bgcolor='#FFFFFF'><table width='95%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr><td width='75%' valign='bottom' ><a href='viewpro.php?uid=$member[uid]' target='_blank' class='mainlink1' >$member[username]</a></td><td width='25%'><div align='right'>$member[posts]</div></td></tr></table></td></tr></table>";
}
$hotmember1調(diào)用變量名
DESC LIMIT 0, 10");后面的10為調(diào)用條數(shù)
---------------------------------------------
7、論壇精華貼調(diào)用:
代碼
//社區(qū)精華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.="<table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td width='85%'><a href='viewthread.php?tid=$thread[tid]' target='_blank' title='作者:$thread[author] 版塊:$thread[name]' class='mainlink1'>·$thread[subject] </a></td></tr></table>" ;
}
$jingthreads調(diào)用變量名
DESC LIMIT 0, 7");后面的7為調(diào)用條數(shù)
($thread[subject], 35);后面的35為顯示字符數(shù)
---------------------------------------------
8、論壇最新貼調(diào)用:
代碼
//最新文章
$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.=" <LI><a href='viewthread.php?tid=$thread[tid]' title='作者:$thread[author] 回復(fù):$thread[lastpost]' target=_blank>$thread[subject]</A><br />";
}
$replythreads調(diào)用變量名
DESC LIMIT 0, 10");后面的10為調(diào)用條數(shù)
($thread[subject], 27);后面的27為顯示字符數(shù)
---------------------------------------------
9、友情鏈接調(diào)用
代碼
$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 .= "<a href=\"$flink[url]\"
target=\"_blank\" class='mainlink1'><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink
[name]\" alt=\"$flink[content]\"></a> ";
} else {
$tightlink_text .= "<a href=\"$flink[url]\"
target=\"_blank\" class='mainlink1'>[$flink[name]]</a> ";
}
}
}
if($tightlink_logo || $tightlink_text) {
$tightlink_logo .= $tightlink_logo ? '<br>' : '';
$data[] = array('type' => 3, 'content' =>
$tightlink_logo.$tightlink_text);
}
說明:
$flink[content]是LOGO鏈接調(diào)用變量
$flink[content]是文字鏈接調(diào)用變量
兩個要同時都有
---------------------------------------------
12、生成靜態(tài)HTML頁的方法
打開main.php
查找:
/*$discuz_action = 1;
把上面的所有代碼(不包括這句)替換為
[Copy to clipboard] [ - ]CODE:
<?
if(file_exists("main.html"))
{
$time=time();
//文件修改時間和現(xiàn)在時間相差?的話,直接導(dǎo)向html文件,否則重新生成html
if($time-filemtime("main.html")< 600)
{
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');
把下面的所有代碼(不包括這句)替換為
//在結(jié)尾加入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");
?>
反之則是不生成靜態(tài)HTML頁
===========================================================================
設(shè)計制作:緣亦如此
聯(lián)系方式:QQ:11881448
專業(yè)網(wǎng)站設(shè)計制作,論壇HOME制作設(shè)計,風(fēng)格設(shè)計。
支持社區(qū):六酷社區(qū)
網(wǎng)址:http://www.6co.cn

===========================================================================
請使用此風(fēng)格的保留風(fēng)格版權(quán),謝謝。不介意的話給我們做個鏈接也可以。呵!~
二樓更新
有問題可到
http://www.6co.cn/forumdisplay.php?fid=129
提出
請支持我們的社區(qū)
六酷社區(qū) http://www.6co.cn
經(jīng)常光顧我們的社區(qū),我會不定期在社區(qū)的風(fēng)格插件版塊內(nèi)發(fā)布一些插件、風(fēng)格及風(fēng)格配色!
================================================
風(fēng)格修改方法
1、模板的修改
修改templates/default/cohome.htm文件就行
---------------------------------------------
2、幻燈片圖片添加方法:
打開圖片目錄的topview.js文件,
var pics=后面為圖片地址,中間用,逗號隔開。
var links=后面是鏈接地址
var texts=后面是要顯示的文件
圖片、鏈接、名字都是一一對應(yīng)的。
---------------------------------------------
3、滾動圖片添加依法:
用dw打開根目錄的pichome.htm文件修改就行。
---------------------------------------------
論壇內(nèi)容調(diào)用:
修改根目錄的home.php文件
=========================================
4、小版塊調(diào)用說明:
復(fù)制代碼 代碼如下:
$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.="<table width='98%' height='20' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><a href='viewthread.php?tid=$shipingtp[tid]' target='_blank' title='作者:$shipingtp[author] 查看:$shipingtp[views]' class='mainlink1'>$shipingtp[subject]</a></td>
</tr></table>";
}
$shipingtp[subject]這前面的$shipingtp是變量名,每條調(diào)用的變量名都不能相同,改的時候這一段代碼中的變量名都要一樣,有一個不同就調(diào)用不出來。
fid =1這后面的數(shù)是版塊的FID值
DESC LIMIT 0, 16");這后面的16是調(diào)用條數(shù)
($shipingtp[subject],26);這后面的26是顯示字?jǐn)?shù)
設(shè)置好后在模板中的相應(yīng)位置只要插入$變量名+main 例:$shipingtpmain
調(diào)用出來的效果:實在夠惡!馮小剛徐帆早期激情情侶
---------------------------------------------
5、分類調(diào)用說明:
代碼:
復(fù)制代碼 代碼如下:
//IT數(shù)碼
$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.="<table width='98%' height='20' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><a href='forumdisplay.php?fid=$itshuoma[fid]' class='mainlink3'>【$itshuoma[name]】</a><a href='viewthread.php?tid=$itshuoma[tid]' target='_blank' title='作者:$itshuoma[author] 查看:$itshuoma[views]' class='mainlink1'>$itshuoma[subject]</a></td></tr></table>";
}
fup =21這后面的數(shù)是大版塊的FID值
DESC LIMIT 0, 10");這后面的10是調(diào)用條數(shù)
($itshuoma[subject],30);這后面的30是顯示字?jǐn)?shù)
設(shè)置好后在模板中的相應(yīng)位置只要插入$變量名+main 例:$itshuomamain
調(diào)用出來的效果:【電腦病毒】2006年世界最新殺毒軟件排名
如果不想要【電腦病毒】這樣的版塊出標(biāo)題前面只要把<a href='forumdisplay.php?fid=$itshuoma[fid]' class='mainlink3'>【$itshuoma[name]】</a>這句刪除就行
---------------------------------------------
6、會員發(fā)貼排行調(diào)用:
代碼
//發(fā)貼總排行
復(fù)制代碼 代碼如下:
$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.="<table width='100%' border='0' cellspacing='0' cellpadding='0' style='margin-top:4px'><tr><td width='5%'> </td>
<td width='89%' bgcolor='#FFFFFF'><table width='95%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr><td width='75%' valign='bottom' ><a href='viewpro.php?uid=$member[uid]' target='_blank' class='mainlink1' >$member[username]</a></td><td width='25%'><div align='right'>$member[posts]</div></td></tr></table></td></tr></table>";
}
DESC LIMIT 0, 10");后面的10為調(diào)用條數(shù)
---------------------------------------------
7、論壇精華貼調(diào)用:
代碼
復(fù)制代碼 代碼如下:
//社區(qū)精華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.="<table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td width='85%'><a href='viewthread.php?tid=$thread[tid]' target='_blank' title='作者:$thread[author] 版塊:$thread[name]' class='mainlink1'>·$thread[subject] </a></td></tr></table>" ;
}
DESC LIMIT 0, 7");后面的7為調(diào)用條數(shù)
($thread[subject], 35);后面的35為顯示字符數(shù)
---------------------------------------------
8、論壇最新貼調(diào)用:
代碼
復(fù)制代碼 代碼如下:
//最新文章
$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.=" <LI><a href='viewthread.php?tid=$thread[tid]' title='作者:$thread[author] 回復(fù):$thread[lastpost]' target=_blank>$thread[subject]</A><br />";
}
$replythreads調(diào)用變量名
DESC LIMIT 0, 10");后面的10為調(diào)用條數(shù)
($thread[subject], 27);后面的27為顯示字符數(shù)
---------------------------------------------
9、友情鏈接調(diào)用
代碼
復(fù)制代碼 代碼如下:
$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 .= "<a href=\"$flink[url]\"
target=\"_blank\" class='mainlink1'><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink
[name]\" alt=\"$flink[content]\"></a> ";
} else {
$tightlink_text .= "<a href=\"$flink[url]\"
target=\"_blank\" class='mainlink1'>[$flink[name]]</a> ";
}
}
}
if($tightlink_logo || $tightlink_text) {
$tightlink_logo .= $tightlink_logo ? '<br>' : '';
$data[] = array('type' => 3, 'content' =>
$tightlink_logo.$tightlink_text);
}
$flink[content]是LOGO鏈接調(diào)用變量
$flink[content]是文字鏈接調(diào)用變量
兩個要同時都有
---------------------------------------------
12、生成靜態(tài)HTML頁的方法
打開main.php
查找:
復(fù)制代碼 代碼如下:
/*$discuz_action = 1;
把上面的所有代碼(不包括這句)替換為
[Copy to clipboard] [ - ]CODE:
<?
if(file_exists("main.html"))
{
$time=time();
//文件修改時間和現(xiàn)在時間相差?的話,直接導(dǎo)向html文件,否則重新生成html
if($time-filemtime("main.html")< 600)
{
header("Location:main.html");
}
}
//在你的開始處加入ob_start();
ob_start();
define('CURRSCRIPT', 'main');
require './include/common.inc.php';
require DISCUZ_ROOT.'./include/forum.func.php';
復(fù)制代碼 代碼如下:
include template('bbs_all');
復(fù)制代碼 代碼如下:
//在結(jié)尾加入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");
?>
相關(guān)文章
用PHP中的 == 運(yùn)算符進(jìn)行字符串比較
用PHP中的 == 運(yùn)算符進(jìn)行字符串比較...2006-11-11php實現(xiàn)按指定大小等比縮放生成上傳圖片縮略圖的方法
這篇文章主要介紹了php實現(xiàn)按指定大小等比縮放生成上傳圖片縮略圖的方法,可實現(xiàn)針對圖片的等比縮放生成縮略圖的功能,是非常實用的技巧,需要的朋友可以參考下2014-12-12PHP實現(xiàn)單文件、多個單文件、多文件上傳函數(shù)的封裝示例
這篇文章主要介紹了PHP實現(xiàn)單文件、多個單文件、多文件上傳函數(shù)的封裝,結(jié)合實例形式詳細(xì)分析了php文件上傳的原理及針對文件上傳函數(shù)的封裝相關(guān)操作技巧,需要的朋友可以參考下2019-09-09基于preg_match_all采集后數(shù)據(jù)處理的一點(diǎn)心得筆記(編碼轉(zhuǎn)換和正則匹配)
這篇文章主要介紹了采集后數(shù)據(jù)處理的一點(diǎn)心得筆記,編碼轉(zhuǎn)換和正則匹配,基于preg_match_all,需要的朋友可以參考下2014-01-01PHP中使用glob函數(shù)實現(xiàn)一句話刪除某個目錄下的所有文件
這篇文章主要介紹了PHP中使用glob函數(shù)實現(xiàn)一句話刪除某個目錄下的所有文件,重點(diǎn)在glob函數(shù)的使用上,需要的朋友可以參考下2014-07-07PHP 5.3.1 安裝包 VC9 VC6不同版本的區(qū)別是什么
php官網(wǎng)提供了四個版本,VC9 x86 Non Thread Safe、VC9 x86 Thread Safe、VC6 x86 Non Thread Safe、VC6 x86 Thread Safe,大家看完這篇文章就知道應(yīng)該選擇什么樣的版本了。2010-07-07