AGAMES 討論區

 找回密碼
 快速註冊
搜索
查看: 1808|回復: 0
打印 上一主題 下一主題

首頁三格2008進化版(新款FLASH+最新帖+新回復) [複製鏈接]

七級帝王會員

☆Prince★}+}|電腦王子

Rank: 7Rank: 7Rank: 7

帖子
3799
EXP
6040 點
金幣
4990 個
好友
0
註冊時間
2008-3-27

友誼之星勳章

跳轉到指定樓層
樓主
發表於 2008-11-16 19:53:46 |只看該作者 |正序瀏覽
*******************************************
改編作者:WOWO
適用:DZ6.0 / DZ6.1正式版(並能搭配正式版六風格)
難度:☆
款式:暫時提供一款式 (有空將會繼續增加)
語言支持:BIG5 繁體中文版 (其他語言編碼請自行轉換)
備注:
1.此帖新款FLASH三格僅發表AL8 轉貼或改編時,請務必保留原作者及此帖出處以及此聲明!謝謝
2..安裝前請務必備份原擋

修改模板:1個
修改PHP:1個

**************************************************

演示截圖:


[說明以及聲明] :
感謝支持本人發表分享所有首頁格類版本的老朋友以及新朋友,謝謝支持!
此版本為本人論壇 WOWO論壇 目前所安裝的版本之AL8首發改編版第一款
先前版本在AL8分享後,獲得大家的支持與肯定, 所以還是決定不保留分享出來給大家!
聲明:但本壇版本為原創獨有,強烈禁止仿制/改編以及再次修改!!必定追究!
如此版反應不錯?我會再發表分享關於此新款FLASH更多的格類版本跟大家分享!
再次感謝各位前輩及先進的支持~~

[安裝注意事項] :
此版特色:訪問需為螢幕解析度1024X768像素!為最佳
或是風格解析度需要支援為: 1024X768
1.版本款式全面更新,插件由本人重新編寫過!
2.修正最後回復無法直接連結到最後回復帖處!
3.修正上方導航欄位,完美搭配論壇風格顯示!
4.修正加入可隱藏不想顯示在三格內的fid論壇板塊!
5.FLASH圖片可自定義宣傳展示~不調用論壇圖片!
6.再修正宣傳圖片顯示大小,加快圖片開啟速度!


廢話不多說:

安裝開始:
首先先下載此帖WOWO首頁三格NO.6附件包
1.打開index.php
找到
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
複製代碼


在下方加入:


  1. //----WO WO首頁NEW三格代碼開始BY:WOWO
  2. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
  3. //最新主題
  4. $hack_cut_str = 26; //標題字數
  5. $hack_cut_strauthor = 10;
  6. $new_post_threadlist = array();
  7. $nthread = array();
  8. $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");
  9. while($nthread = $db->fetch_array($query)) {
  10.         $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
  11.         $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
  12.         $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
  13.         $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
  14.         $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
  15.         if($nthread['highlight']) {
  16.                 $string = sprintf('%02d', $nthread['highlight']);
  17.                 $stylestr = sprintf('%03b', $string[0]);
  18.                 $nthread['highlight'] = 'style="';
  19.                 $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  20.                 $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  21.                 $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  22.                 $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  23.                 $nthread['highlight'] .= '"';
  24.         } else {
  25.                 $nthread['highlight'] = '';
  26.         }
  27.         $new_post_threadlist[] = $nthread;
  28. }
  29. //最新回復
  30. $hack_cut_str = 26; //標題字數
  31. $hack_cut_strauthor = 10;
  32. $new_reply_threadlist = array();
  33. $rthread = array();
  34. $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");
  35. while($rthread = $db->fetch_array($query)) {
  36.         $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);
  37.         $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
  38.         $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
  39.                 $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
  40.         $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
  41.         if($rthread['highlight']) {
  42.                 $string = sprintf('%02d', $rthread['highlight']);
  43.                 $stylestr = sprintf('%03b', $string[0]);
  44.                 $rthread['highlight'] = 'style="';
  45.                 $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  46.                 $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  47.                 $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  48.                 $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  49.                 $rthread['highlight'] .= '"';
  50.         } else {
  51.                 $rthread['highlight'] = '';
  52.         }
  53.         $new_reply_threadlist[] = $rthread;
  54. }
  55. //----WO WO首頁NEW三格代碼結束BY:WOWO
複製代碼

2.打開模板discuz.htm (如果你風格中有此模板都必須修改)
默認為: templates/default/discuz.htm
找到:
  1. <div id="ad_text"></div>
複製代碼

將下方調用代碼添加到上方這段的上方或是下方(皆可)

  1. {template foruminfo}
複製代碼

補充:
1.加入上方為此三格顯示在廣告上方
2.加入下方為此三格顯示在廣告下方

3.上傳附件包內模板foruminfo.htm

templates/default/之內

4.上傳圖檔附件包wowo資料夾到 images資料夾之內!!
將整個WOWO資料夾上傳即可

5.上傳圖檔連結調用附件xml資料夾到論壇根目錄
將整個xml資料夾上傳即可

6.後台更新緩存立即實現

安裝完成!

======================================================
自定義編輯以及修改說明:
1.如果不想調用某個版或某個區或者某些版的帖子可在
打開: index.php
找到AND f.fid not in (0)<<<共4處(新主題+新回復+一周熱門+隨機精華)

修改為如示範:
AND f.fid not in (1,2,3)<<<舉例其中的1,2,3為 不想調用的 fid

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

如何知道論壇板塊fid?
答:從網址列最後即可看到!!

2.編輯FLASH圖檔並上傳覆蓋 (圖檔副檔名必須為 jpg 非 JPG 否則圖片將無法顯示)
1.所有圖檔都在 images/wowo/內

主圖檔檔名為:
0.jpg
1.jpg
2.jpg
3.jpg
4.jpg
圖檔大小須注意: 432X204

副圖檔檔名為:
s0.jpg
s1.jpg
s2.jpg
s3.jpg
s4.jpg
圖檔大小須注意: 76X40

舉例: 0.jpg & s0.jpg 這兩張圖檔必須為相對應!!


3.編輯圖檔對應連結
注意:連結地址結尾必須為php / htm / html 形式方可連結無錯!

打開附件包中 xml 資料夾打開 data.xml
就可以編輯了喔!!
附件: 你需要登錄才可以下載或查看附件。沒有帳號?快速註冊
Alta Multimedia - Facebook:http://www.facebook.com/altahkmm
您需要登錄後才可以回帖 登錄 | 快速註冊

Archiver|手機版|AGAMES 討論區

GMT+8, 2024-9-20 11:43 , Processed in 0.045430 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回頂部