AL8 Forum
   登錄註冊幫助


標題: [D6.0] 首頁三格6.0正式版[圖片+最新帖+新回復](BIG5繁體版)完美發佈2008.4.20更新
 lingogo
 0060309
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 457

精華: 0

積分: 4185 點

現金: 0 元

存款: 5 元

閱讀權限: 25

註冊: 2006-12-10

狀態: 離線
 
發表於 2007-9-28 23:25  資料  個人空間  主頁 短消息  加為好友 
首頁三格6.0正式版[圖片+最新帖+新回復](BIG5繁體版)完美發佈2008.4.20更新

QUOTE:
*******************************************
原作者:WOWO
此文轉:http://wowo.nike.tw/WOWO論壇
技術支持:alan888 / WOWO
適用:DZ6.0正式版(並能搭配正式版六風格)
難度:☆
款式:暫時提供4款式~可以喜好自行選擇搭配!(如反應不錯~會再增加!)
第一款演示:請查看41樓圖片演示
第三款演示:請查看25樓圖片演示
第二款演示 : http://wowo.slew.org/index.php
第四款演示 : http://wowo.byethost13.com/index.php
語言支持:BIG5 繁體中文版
備注:
1.此帖僅發表AL8 轉貼或修改時,請務必保留原作者及出處!謝謝
2.凡是2007.10.18前安裝者!!
只需修改模板discuz.htm及下載新附件上傳替換即可!
3.附件內附帶詳細安裝說明!
!

數据庫升級:無
修改模板:1個
修改PHP:1個
**************************************************

說明 :
長久以來一直喜歡使用安裝alan888站長的四格插件!
自從DZ升級5.5後!alan888大哥就沒在發布站長的四格正式版插件!
而小弟也是從DZ5.0直接升級DZ6.0!~但是一直找不到alan888站長發布的四格正式版插件!
所以就自己想想是否能改一個自己喜歡的X格插件!結果不小心成功了!
獨享~~不如分享!~~就把此插件分享於各位前輩及先進!希望大家喜歡!
此兩款式小弟均以測試,並已安裝本壇,尚無任何問題發生!
如有不小心冒犯他人著作之處,請不吝告訴小弟,小弟定當馬上加以改進!
再次感謝alan888站長大哥~~如有編寫錯誤?還請alan888大哥及各位前輩指正!謝謝!
聲明:若有因為安裝過程上造成使用者的問題或其它損害,小弟並不負責任何責任!
請安裝前務必自行備份原檔~以防萬一操作失誤!


PS:小弟這是第一次發帖哦!如有不對?還請各位前輩指正賜教!
如安裝使用成功~覺得還不錯~還請大家能回復支持一下~感謝!
**************************************************************
2008最新版本已經發佈分享~喜歡此3格的朋友可以到以下連結查看!~謝謝支持!
http://www.alan888.com/Discuz/thread-140307-1-11.html


新增修正2007.10.18修正)重新完美發佈!
1.版本款式全面更新,插件由本人重新編寫過!
2.修正最後回復無法直接連結到最後回復帖處!
3.修正上方導航欄位,完美搭配論壇風格顯示!
4.新增共4款不同款式,可依自己喜好選擇安裝!
5.FLASH圖片可自定義宣傳展示~不調用論壇圖片!
6.修正宣傳圖片顯示大小,加快圖片開啟速度!


2007.11.7更新
1.加入可隱藏不想顯示版塊(最新帖-最新回復)顯示三格內!
凡是2007.11.7日之前安裝者?請修改index.php
上傳並覆蓋原檔即可!!

修改方法:請查看第2樓說明!


需修改的文件:就兩個~簡單又實用!(對於初學者安裝更容易!)
還是簡單+常用:最新發表+論壇圖片宣傳+最新回復(不再多增加數据庫查詢)
修改:
1: index.php
2: discuz.htm

安裝開始:
1.index.php (PS:4種款式皆共用!!)
找到:
QUOTE:
$rsshead = $rssstatus

在這段之上加入:
//----WO WO首頁三格代碼開始
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//新發表
$hack_cut_str = 20; //標題字數建議值18-22(盡量勿大修改否則會跳行)
$hack_cut_strauthor = 9; //顯示行數不建議修改保持默認即可
$new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 10";
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = ereg_replace('<[^>]*>','',$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'] = '';
        }
        $new_post_threadlist[] = $nthread;
}
//新回復
$hack_cut_str = 20; //標題字數建議值18-22(盡量勿大修改否則會跳行)
$hack_cut_strauthor = 9; //顯示行數不建議修改保持默認即可
$new_reply_threadlist = array();
$rthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, 10";
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);
        $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
        $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
  $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
        if($rthread['highlight']) {
                $string = sprintf('%02d', $rthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $rthread['highlight'] = 'style="';
                $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $rthread['highlight'] .= '"';
        } else {
                $rthread['highlight'] = '';
        }
        $new_reply_threadlist[] = $rthread;
}
//----WO WO首頁三格代碼結束
********************************************************
注意!!!以下取其喜好一款安裝即可~切勿共用!

2.修改模板templates/default/discuz.htm (以下4款式共用)
找到
<div id="ad_text"></div>
(以上4款式共用)



在下方加入第一款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.nike.tw/本壇安裝中
<!--WOWO首頁flash美化START-->
<div class="maintable">
<div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
<tr height="27">
<td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
</tr>
<tr>
<td width="35%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_post_threadlist $nthread}-->
       <!--{if $nthread[replies]}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
                   <!--{else}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
       <!--{/if}-->
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
<td width="28%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
    <script type="text/javascript">
<!--
var focus_width=390
var focus_height=210
var text_height=0
var swf_height = focus_height+text_height
/*圖片*/
var pics='ab/pic1.jpg|ab/pic2.jpg|ab/pic3.jpg|ab/pic4.jpg|ab/pic5.jpg|ab/pic6.jpg'
/*連接*/
var links='index.php|index.php|index.php|index.php|index.php|index.php'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</script>
</tr>
    </table>
</td>
<td width="35%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_reply_threadlist $rthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
  </tr>
</table>
</div>
</div>
<!--WOWO首頁flash美化END-->
在下方加入第二款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示:http://yuki.wowo.0lx.net/bbs/index.php
<!--WOWO首頁flash美化START-->
<div class="maintable">
<div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
<tr height="27">
<td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
</tr>
<tr>
<td width="30%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_post_threadlist $nthread}-->
       <!--{if $nthread[replies]}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
                   <!--{else}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
       <!--{/if}-->
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
<td width="40%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
    <script type="text/javascript">
var varText = ""
function addInfo(title,photourl,link){
if(varText!=""{
varText+="|||";
}
varText+=title+"|_|"+photourl+"|_|"+link;
}
linkarr = new Array();
picarr = new Array();
textarr = new Array();
linkarr[1] = "index.php";
picarr[1] = "http://您的網站地址/images/toplist/toplist_1.jpg";
textarr[1] = "WOWO論壇圖片宣傳展示";
linkarr[2] = "index.php";
picarr[2] = "http://您的網站地址/images/toplist/toplist_2.jpg";
textarr[2] = "WOWO論壇圖片宣傳展示";
linkarr[3] = "index.php";
picarr[3] = "http://您的網站地址/images/toplist/toplist_3.jpg";
textarr[3] = "WOWO論壇圖片宣傳展示";
linkarr[4] = "index.php";
picarr[4] = "http://您的網站地址/images/toplist/toplist_4.jpg";
textarr[4] = "WOWO論壇圖片宣傳展示";
linkarr[5] = "index.php";
picarr[5] = "http://您的網站地址/images/toplist/toplist_5.jpg";
textarr[5] = "WOWO論壇圖片宣傳展示";
addInfo(textarr[1],picarr[1],linkarr[1]);
addInfo(textarr[2],picarr[2],linkarr[2]);
addInfo(textarr[3],picarr[3],linkarr[3]);
addInfo(textarr[4],picarr[4],linkarr[4]);
addInfo(textarr[5],picarr[5],linkarr[5]);
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="420" height="210" id="01" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="http://您的網站地址/images/toplist/flash.swf" />');
document.write('<param name="FlashVars" value="info='+varText+'">');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
document.write('<embed src="http://您的網站地址/images/toplist/flash.swf" FlashVars="info='+varText+'" quality="high" bgcolor="#ffffff" width="420" height="210" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</tr>
    </table>
   </td>
<td width="30%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_reply_threadlist $rthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
  </tr>
</table>
</div>
</div>
<!--WOWO首頁flash美化END-->
在下方加入第三款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.slew.org/index.php
<!--WOWO首頁flash美化START-->
<div class="maintable">
<div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
<tr height="27">
<td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
</tr>
<tr>
<td width="28%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
    <script type="text/javascript">
<!--
var focus_width=390
var focus_height=210
var text_height=0
var swf_height = focus_height+text_height
/*圖片*/
var pics='ab/pic1.jpg|ab/pic2.jpg|ab/pic3.jpg|ab/pic4.jpg|ab/pic5.jpg|ab/pic6.jpg'
/*連接*/
var links='index.php|index.php|index.php|index.php|index.php|index.php'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</script>
</tr>
    </table>
</td>
<td width="35%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_post_threadlist $nthread}-->
       <!--{if $nthread[replies]}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
                   <!--{else}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
       <!--{/if}-->
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
<td width="35%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_reply_threadlist $rthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
  </tr>
</table>
</div>
</div>
<!--WOWO首頁flash美化END-->
在下方加入第四款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.byethost13.com/index.php
<!--WOWO首頁flash美化START-->
<div class="maintable">
<div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
<tr height="27">
<td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
</tr>
<tr>
<td width="40%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
    <script type="text/javascript">
var varText = ""
function addInfo(title,photourl,link){
if(varText!=""{
varText+="|||";
}
varText+=title+"|_|"+photourl+"|_|"+link;
}
linkarr = new Array();
picarr = new Array();
textarr = new Array();
linkarr[1] = "index.php";
picarr[1] = "http://您的網站地址/images/toplist/toplist_1.jpg";
textarr[1] = "WOWO論壇圖片宣傳展示";
linkarr[2] = "index.php";
picarr[2] = "http://您的網站地址/images/toplist/toplist_2.jpg";
textarr[2] = "WOWO論壇圖片宣傳展示";
linkarr[3] = "index.php";
picarr[3] = "http://您的網站地址/images/toplist/toplist_3.jpg";
textarr[3] = "WOWO論壇圖片宣傳展示";
linkarr[4] = "index.php";
picarr[4] = "http://您的網站地址/images/toplist/toplist_4.jpg";
textarr[4] = "WOWO論壇圖片宣傳展示";
linkarr[5] = "index.php";
picarr[5] = "http://您的網站地址/images/toplist/toplist_5.jpg";
textarr[5] = "WOWO論壇圖片宣傳展示";
addInfo(textarr[1],picarr[1],linkarr[1]);
addInfo(textarr[2],picarr[2],linkarr[2]);
addInfo(textarr[3],picarr[3],linkarr[3]);
addInfo(textarr[4],picarr[4],linkarr[4]);
addInfo(textarr[5],picarr[5],linkarr[5]);
document.write('<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="420" height="210" id="01" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="http://您的網站地址/images/toplist/flash.swf" />');
document.write('<param name="FlashVars" value="info='+varText+'">');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
document.write('<embed src="http://您的網站地址/images/toplist/flash.swf" FlashVars="info='+varText+'" quality="high" bgcolor="#ffffff" width="420" height="210" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</tr>
    </table>
   </td>
<td width="30%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_post_threadlist $nthread}-->
       <!--{if $nthread[replies]}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
                   <!--{else}-->
        <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最後回復: 暫時沒有回復'>$nthread[view_subject]</a></div>
       <!--{/if}-->
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
<td width="30%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr valign="top">
      <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
      <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
      <!--{loop $new_reply_threadlist $rthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最後回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
      <!--{/loop}-->
      </td>
     </tr>
    </table>
   </td>
  </tr>
</table>
</div>
</div>
<!--WOWO首頁flash美化END-->
3.上傳附件包至相關位置(提供4款式附件下載)選其一配套即可!
PS1: 安裝第一款&第三款請下載附件 NO.1
PS2: 安裝第二款&第四款請下載附件 NO.2

內附詳細安裝說明!!純粹分享!!感謝支持!


4.附件圖檔一定要jpg(小寫) 非JPG ,否則圖片將無法顯示哦!
PS1:第一款圖檔大小 390X210 以內否則易發生錯誤哦!
PS2:第二款圖檔大小 306X200 以內否則易發生錯誤哦!


5.圖片請自行更換~檔名開頭只要相同即可,上傳覆蓋原檔!

PS:小弟第一次發帖哦!如有不對?還請各位前輩指正賜教!
如安裝使用成功~覺得還不錯~還請大家能回復鼓勵給予支持一下~感謝!

2008.4.20新增解決複製index.php代碼Bug修正檔

倘若您複製index發生錯誤?請下載附件NO.3解壓縮後
打開將裡面代碼複製到您index.php加入的位置即可!!

警告!!注意~~~~請勿將下方也複製進去喔!!~出了問題偶可不負責哦!
<?php

?>



下載請記得回復~謝謝~!

[ 本帖最後由 lingogo 於 2008-4-20 20:02 編輯 ]



 附件: 您所在的用戶組無法下載或查看附件



 AL8 Forum © All rights reserved.
頂部
 lingogo
 0060309
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 457

精華: 0

積分: 4185 點

現金: 0 元

存款: 5 元

閱讀權限: 25

註冊: 2006-12-10

狀態: 離線
 
發表於 2007-9-28 23:26  資料  個人空間  主頁 短消息  加為好友 
2007.10.20 更新!!修正!!
凡於2007.10.20之前安裝~請修改!

templates/default/discuz.htm

在這段之上加一句:
<!--WOWO首頁flash美化END-->



上傳覆蓋原檔即可!


2007.11.7更新
修正:加入可隱藏不想顯示論壇版塊方法


修改index.php

1.將一樓index.php代碼重新複製修改原檔!

2.找到:
QUOTE:
如果不想調用某個版或某個區或者某些版的帖子可在index.php
修改(共2處)新帖+新回復部分

找到;
AND f.fid not in (0)

修改為:
AND f.fid not in (1,2,3)其中1,2,3為 不想調用的 fid

修改不想顯示的fid即可!
多個不想顯示的版塊, 請用逗号,間隔!



如覺得還不錯??請回復支持鼓勵一下!!

感謝支持!


[ 本帖最後由 lingogo 於 2007-11-7 03:18 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 Kendrew
 0056424
Rank: 2Rank: 2

頭銜: Member

帖子: 84

精華: 0

積分: 1110 點

現金: 80 元

存款: 0 元

閱讀權限: 15

註冊: 2006-10-28

狀態: 離線
 
發表於 2007-9-28 23:27  資料  個人空間  短消息  加為好友 
放心我唔會回的..




 AL8 Forum © All rights reserved.
頂部
 123456
 0002454
Rank: 2Rank: 2

頭銜: Member

帖子: 85

精華: 0

積分: 1040 點

現金: 4 元

存款: 0 元

閱讀權限: 15

註冊: 2004-5-28

狀態: 離線
 
發表於 2007-9-28 23:28  資料  個人空間  短消息  加為好友 
留位观望。




 AL8 Forum © All rights reserved.
頂部
 kafai2407
 0061721
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1067

精華: 0

積分: 2580 點

現金: 39 元

存款: 7316 元

閱讀權限: 70

註冊: 2006-12-22

來自: 某一條河

狀態: 離線
 
發表於 2007-9-28 23:39  資料  個人空間  短消息  加為好友 
4格靚D

如果要選,,我會選第1




 AL8 Forum © All rights reserved.
頂部
 街舞小子
 0039118
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 街舞小子 的詳細資料

頭銜: Lord

帖子: 470

精華: 0

積分: 5100 點

現金: 80 元

存款: 0 元

閱讀權限: 25

註冊: 2006-1-23

狀態: 離線
 
發表於 2007-9-28 23:52  資料  個人空間  短消息  加為好友 
只支持
    唔係太好




 AL8 Forum © All rights reserved.
頂部
 。貓B。
 0071968
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 261

精華: 0

積分: 1690 點

現金: 0 元

存款: 711 元

閱讀權限: 20

註冊: 2007-4-3

來自: 貓王國

狀態: 離線
 
發表於 2007-10-15 20:22  資料  個人空間  短消息  加為好友 
THE LINK TIME OUT     下載不到
樓主能否更新?

另外如果我想要 第一款左右兩邊的樣式配第二款的 flash.... 要如何改    tks!!!




永遠支持王傑
 AL8 Forum © All rights reserved.
頂部
 lingogo
 0060309
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 457

精華: 0

積分: 4185 點

現金: 0 元

存款: 5 元

閱讀權限: 25

註冊: 2006-12-10

狀態: 離線
 
發表於 2007-10-16 15:17  資料  個人空間  主頁 短消息  加為好友 
回覆 #7 。貓B。 的帖子

http://www.badongo.com/file/4508066
連結還沒失效呀!!~~可以下載的!

1.badongo這個檔案空間應該是不用註冊的!
進去後必須等待倒數~~會出現驗證碼>填上驗證碼>>就可以下載了!
如果還不行??註冊一下就可以了~~~註冊免費!

2.因為都沒人回復~~所以也就懶的更新了!
下載人數:14人   回帖只有:5人

3.你說的??OK呀!
這幾天我會寫好放第二樓~~請隨時查看此帖更新!

謝謝支持!




 AL8 Forum © All rights reserved.
頂部
 CARO
 0088366
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 CARO 的詳細資料

頭銜: Forum Legend

自述: 失暈的小雞雞

帖子: 3053

精華: 0

積分: 19446 點

現金: 130 元

存款: 0 元

閱讀權限: 70

註冊: 2007-10-4

狀態: 離線
 
發表於 2007-10-16 16:13  資料  個人空間  短消息  加為好友 
為何不用cache???




 AL8 Forum © All rights reserved.
頂部
 lingogo
 0060309
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 457

精華: 0

積分: 4185 點

現金: 0 元

存款: 5 元

閱讀權限: 25

註冊: 2006-12-10

狀態: 離線
 
發表於 2007-10-16 18:16  資料  個人空間  主頁 短消息  加為好友 
回覆 #9 CARO 的帖子

個人就喜歡三格~所以自己改!!
此帖:純粹於分享而已!
修改簡單+實用!~~也不會增加數據庫查詢次數!

已新增最新版演示: 第2樓!

[ 本帖最後由 lingogo 於 2007-10-16 18:22 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 a918666
 0088804
Rank: 2Rank: 2
點擊查看 a918666 的詳細資料

頭銜: Member

帖子: 50

精華: 0

積分: 600 點

現金: 80 元

存款: 0 元

閱讀權限: 15

註冊: 2007-10-11

狀態: 離線
 
發表於 2007-10-16 19:55  資料  個人空間  短消息  加為好友 
好讚的首頁三格
安裝去了
感謝!!




 AL8 Forum © All rights reserved.
頂部
 。貓B。
 0071968
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 261

精華: 0

積分: 1690 點

現金: 0 元

存款: 711 元

閱讀權限: 20

註冊: 2007-4-3

來自: 貓王國

狀態: 離線
 
發表於 2007-10-16 20:07  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 lingogo 於 2007-10-16 15:17 發表
http://www.badongo.com/file/4508066
連結還沒失效呀!!~~可以下載的!
1.badongo這個檔案空間應該是不用註冊的!
進去後必須等待倒數~~會出現驗證碼>填上驗證碼>>就可以下載了!
如果還不行??註冊一下就可以 ...



 謝謝你丫 我以為會石沉大海沒人理了     可是找了好久就只有這個版本最合心意
樓主你真好    

而且我剛再試了下載~成功了~感恩喔~~~~

  偶會期待著第1+2款的出現   tks!!!

[ 本帖最後由 。貓B。 於 2007-10-16 20:09 編輯 ]




永遠支持王傑
 AL8 Forum © All rights reserved.
頂部
 seasonsjoe
 0054965
Rank: 3Rank: 3Rank: 3
點擊查看 seasonsjoe 的詳細資料

頭銜: Conqueror

帖子: 207

精華: 0

積分: 2050 點

現金: 88 元

存款: 720 元

閱讀權限: 20

註冊: 2006-10-12

狀態: 離線
 
發表於 2007-10-16 20:20  資料  個人空間  短消息  加為好友 
唔錯 ~~!! 可以選用 !!




 AL8 Forum © All rights reserved.