返回列表 回復 發帖

首頁三格6.0正式版[圖片+最新帖+新回復](BIG5繁體版)完美發佈


*******************************************
原作者:WOWO
此文轉:http://wowo.nike.tw/WOWO論壇
技術支持:alan888 / WOWO
適用:DZ6.0正式版(並能搭配正式版六風格)
難度:☆
款式:暫時提供4款式~可以喜好自行選擇搭配!(如反應不錯~會再增加!)
第一款演示:http://wowo.nike.tw/
第二款演示:http://yuki.wowo.0lx.net/bbs/index.php
第三款演示 : 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:小弟第一次發帖哦!如有不對?還請各位前輩指正賜教!
如安裝使用成功~覺得還不錯~還請大家能回復支持一下~感謝!
**************************************************************
新增修正2007.10.18修正)重新完美發佈!
1.版本款式全面更新,插件由本人重新編寫過!
2.修正最後回復無法直接連結到最後回復帖處!
3.修正上方導航欄位,完美搭配論壇風格顯示!
4.新增共4款不同款式,可依自己喜好選擇安裝!
5.FLASH圖片可自定義宣傳展示~不調用論壇圖片!
6.修正宣傳圖片顯示大小,加快圖片開啟速度!

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

安裝開始:
1.index.php (PS:4種款式皆共用!!)
找到:
$rsshead = $rssstatus
在這段之上加入:
  1. //----WOWO首頁三格代碼開始
  2. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
  3. //新發表
  4. $hack_cut_str = 18; //標題字數建議值18-22(盡量勿大修改否則會跳行)
  5. $hack_cut_strauthor = 9; //顯示行數不建議修改保持默認即可
  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 ORDER BY t.dateline DESC LIMIT 0, 8");
  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 = 18; //標題字數建議值18-22(盡量勿大修改否則會跳行)
  31. $hack_cut_strauthor = 9; //顯示行數不建議修改保持默認即可
  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 ORDER BY t.lastpost DESC LIMIT 0, 8");
  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. //----WOWO首頁三格代碼結束
複製代碼
********************************************************
注意!!!以下取其喜好一款安裝即可~切勿共用!

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
  1. <!--WOWO首頁flash美化START-->
  2. <div class="maintable">
  3. <div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
  4. <tr height="27">
  5. <td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
  6. <td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
  7. <td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
  8. </tr>
  9. <tr>
  10. <td width="30%">
  11.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  12.      <tr valign="top">
  13.       <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  14.       <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  15.       <!--{loop $new_post_threadlist $nthread}-->
  16.        <!--{if $nthread[replies]}-->
  17.         <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>
  18.                    <!--{else}-->
  19.         <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>
  20.        <!--{/if}-->
  21.       <!--{/loop}-->
  22.       </td>
  23.      </tr>
  24.     </table>
  25.    </td>
  26. <td width="40%">
  27.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  28.      <tr valign="top">
  29.     <script type="text/javascript">
  30. var varText = ""
  31. function addInfo(title,photourl,link){
  32. if(varText!=""){
  33. varText+="|||";
  34. }
  35. varText+=title+"|_|"+photourl+"|_|"+link;
  36. }
  37. linkarr = new Array();
  38. picarr = new Array();
  39. textarr = new Array();
  40. linkarr[1] = "index.php";
  41. picarr[1] = "http://您的網站地址/images/toplist/toplist_1.jpg";
  42. textarr[1] = "WOWO論壇圖片宣傳展示";
  43. linkarr[2] = "index.php";
  44. picarr[2] = "http://您的網站地址/images/toplist/toplist_2.jpg";
  45. textarr[2] = "WOWO論壇圖片宣傳展示";
  46. linkarr[3] = "index.php";
  47. picarr[3] = "http://您的網站地址/images/toplist/toplist_3.jpg";
  48. textarr[3] = "WOWO論壇圖片宣傳展示";
  49. linkarr[4] = "index.php";
  50. picarr[4] = "http://您的網站地址/images/toplist/toplist_4.jpg";
  51. textarr[4] = "WOWO論壇圖片宣傳展示";
  52. linkarr[5] = "index.php";
  53. picarr[5] = "http://您的網站地址/images/toplist/toplist_5.jpg";
  54. textarr[5] = "WOWO論壇圖片宣傳展示";
  55. addInfo(textarr[1],picarr[1],linkarr[1]);
  56. addInfo(textarr[2],picarr[2],linkarr[2]);
  57. addInfo(textarr[3],picarr[3],linkarr[3]);
  58. addInfo(textarr[4],picarr[4],linkarr[4]);
  59. addInfo(textarr[5],picarr[5],linkarr[5]);
  60. document.write('<object classid="clsid:D27CDB6E-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">');
  61. document.write('<param name="allowScriptAccess" value="sameDomain" />');
  62. document.write('<param name="movie" value="http://您的網站地址/images/toplist/flash.swf" />');
  63. document.write('<param name="FlashVars" value="info='+varText+'">');
  64. document.write('<param name="quality" value="high" />');
  65. document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
  66. 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" />');
  67. document.write('</object>');
  68. </script>
  69. </tr>
  70.     </table>
  71.    </td>
  72. <td width="30%">
  73.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  74.      <tr valign="top">
  75.       <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  76.       <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  77.       <!--{loop $new_reply_threadlist $rthread}-->
  78.        <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>
  79.       <!--{/loop}-->
  80.       </td>
  81.      </tr>
  82.     </table>
  83.    </td>
  84.   </tr>
  85. </table>
  86. </div>
  87. </div>
  88. <!--WOWO首頁flash美化END-->
複製代碼
在下方加入第三款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.slew.org/index.php
  1. <!--WOWO首頁flash美化START-->
  2. <div class="maintable">
  3. <div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
  4. <tr height="27">
  5. <td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
  6. <td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
  7. <td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
  8. </tr>
  9. <tr>
  10. <td width="28%">
  11.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  12.      <tr valign="top">
  13.     <script type="text/javascript">
  14. <!--
  15. var focus_width=390
  16. var focus_height=210
  17. var text_height=0
  18. var swf_height = focus_height+text_height
  19. /*圖片*/
  20. var pics='ab/pic1.jpg|ab/pic2.jpg|ab/pic3.jpg|ab/pic4.jpg|ab/pic5.jpg|ab/pic6.jpg'
  21. /*連接*/
  22. var links='index.php|index.php|index.php|index.php|index.php|index.php'
  23. 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 +'">');
  24. document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
  25. document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
  26. document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
  27. 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>');
  28. //-->
  29. </script>
  30. </tr>
  31.     </table>
  32. </td>
  33. <td width="35%">
  34.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  35.      <tr valign="top">
  36.       <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  37.       <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  38.       <!--{loop $new_post_threadlist $nthread}-->
  39.        <!--{if $nthread[replies]}-->
  40.         <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>
  41.                    <!--{else}-->
  42.         <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>
  43.        <!--{/if}-->
  44.       <!--{/loop}-->
  45.       </td>
  46.      </tr>
  47.     </table>
  48.    </td>
  49. <td width="35%">
  50.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  51.      <tr valign="top">
  52.       <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  53.       <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  54.       <!--{loop $new_reply_threadlist $rthread}-->
  55.        <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>
  56.       <!--{/loop}-->
  57.       </td>
  58.      </tr>
  59.     </table>
  60.    </td>
  61.   </tr>
  62. </table>
  63. </div>
  64. </div>
  65. <!--WOWO首頁flash美化END-->
複製代碼
在下方加入第四款)取其一安裝即可~切勿共用!
已經修正到最佳~盡量勿再修改!
演示: http://wowo.byethost13.com/index.php
  1. <!--WOWO首頁flash美化START-->
  2. <div class="maintable">
  3. <div class="mainbox forumlist" style="padding:0;"><table cellspacing="0" cellpadding="0"><thead class="category">
  4. <tr height="27">
  5. <td align="center" style="padding:0"><h3>≡ 論壇活動公告 ≡</h3></td>
  6. <td align="center" style="padding:0"><h3>≡ 最新話題 ≡</h3></td>
  7. <td align="center" style="padding:0"><h3>≡ 最新回復 ≡</h3></td>
  8. </tr>
  9. <tr>
  10. <td width="40%">
  11.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  12.      <tr valign="top">
  13.     <script type="text/javascript">
  14. var varText = ""
  15. function addInfo(title,photourl,link){
  16. if(varText!=""){
  17. varText+="|||";
  18. }
  19. varText+=title+"|_|"+photourl+"|_|"+link;
  20. }
  21. linkarr = new Array();
  22. picarr = new Array();
  23. textarr = new Array();
  24. linkarr[1] = "index.php";
  25. picarr[1] = "http://您的網站地址/images/toplist/toplist_1.jpg";
  26. textarr[1] = "WOWO論壇圖片宣傳展示";
  27. linkarr[2] = "index.php";
  28. picarr[2] = "http://您的網站地址/images/toplist/toplist_2.jpg";
  29. textarr[2] = "WOWO論壇圖片宣傳展示";
  30. linkarr[3] = "index.php";
  31. picarr[3] = "http://您的網站地址/images/toplist/toplist_3.jpg";
  32. textarr[3] = "WOWO論壇圖片宣傳展示";
  33. linkarr[4] = "index.php";
  34. picarr[4] = "http://您的網站地址/images/toplist/toplist_4.jpg";
  35. textarr[4] = "WOWO論壇圖片宣傳展示";
  36. linkarr[5] = "index.php";
  37. picarr[5] = "http://您的網站地址/images/toplist/toplist_5.jpg";
  38. textarr[5] = "WOWO論壇圖片宣傳展示";
  39. addInfo(textarr[1],picarr[1],linkarr[1]);
  40. addInfo(textarr[2],picarr[2],linkarr[2]);
  41. addInfo(textarr[3],picarr[3],linkarr[3]);
  42. addInfo(textarr[4],picarr[4],linkarr[4]);
  43. addInfo(textarr[5],picarr[5],linkarr[5]);
  44. document.write('<object classid="clsid:D27CDB6E-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">');
  45. document.write('<param name="allowScriptAccess" value="sameDomain" />');
  46. document.write('<param name="movie" value="http://您的網站地址/images/toplist/flash.swf" />');
  47. document.write('<param name="FlashVars" value="info='+varText+'">');
  48. document.write('<param name="quality" value="high" />');
  49. document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
  50. 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" />');
  51. document.write('</object>');
  52. </script>
  53. </tr>
  54.     </table>
  55.    </td>
  56. <td width="30%">
  57.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  58.      <tr valign="top">
  59.       <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  60.       <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  61.       <!--{loop $new_post_threadlist $nthread}-->
  62.        <!--{if $nthread[replies]}-->
  63.         <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>
  64.                    <!--{else}-->
  65.         <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>
  66.        <!--{/if}-->
  67.       <!--{/loop}-->
  68.       </td>
  69.      </tr>
  70.     </table>
  71.    </td>
  72. <td width="30%">
  73.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  74.      <tr valign="top">
  75.       <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  76.       <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  77.       <!--{loop $new_reply_threadlist $rthread}-->
  78.        <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>
  79.       <!--{/loop}-->
  80.       </td>
  81.      </tr>
  82.     </table>
  83.    </td>
  84.   </tr>
  85. </table>
  86. </div>
  87. </div>
  88. <!--WOWO首頁flash美化END-->
複製代碼
3.上傳附件包至相關位置(提供4款式附件下載)選其一配套即可!
PS1: 安裝第一款&第三款請下載附件 NO.1
PS2: 安裝第二款&第四款請下載附件 NO.2

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

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

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

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

http://sas.tw/sas/upfiles/net/NO.1.rar
http://sas.tw/sas/upfiles/net/NO.2.rar

備份http://sas.tw/sas/upfiles/net/NO.3.rar

2007.10.20 更新!!修正!!

2007.10.20 更新!!修正!!
凡於2007.10.20之前安裝~請修改!


templates/default/discuz.htm

在這段之上加一句:
<!--WOWO首頁flash美化END-->
</div>
上傳覆蓋原檔即可!


回覆 #32 tfk123 的帖子
我已經超過一天發帖5篇限制~無法回復了!~就發在這裡了!~希望你能看到!

幫您修改好了!
下載覆蓋原檔即可!

http://www.badongo.com/file/4790367

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

感謝支持!
返回列表 回復 發帖