列印

AL8 首頁四格 加入 圖片 SHOW (四格延伸應用系列)

AL8 首頁四格 加入 圖片 SHOW (四格延伸應用系列)

安裝前請先安裝:AL8 首頁四格顯示 for Discuz 6.0.0
http://linux0911.no-ip.info/Discuz/thread-9664-1-1.html

效果如下:滑鼠移過 Flash 便會顯示


作者:忘了
整理:Linux0911
功能:用 Flash 來 Show 圖片, 點圖片可以前往指定的連結

開始安裝

1. 下載附件依結構上傳檔案

2. 修改 foruminfo.htm

找到 (修改紅字為 5)
引用:
<td colspan="4">
找到 (使用者欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 25%">
找到 (論壇資料欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 21%">
找到 (最新文章欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 27%">
找到 (最新回覆欄, 修改其比例適合自己論壇風格)
引用:
<td style="width: 27%">
找到
複製內容到剪貼簿
代碼:
                                <h4 style="font-size: 11pt">最新回覆文章</h4>
                                <table cellspacing="0" cellpadding="0">
                                        <!--{loop $_DCACHE['newreply'] $newreply}-->
                                                $newreply[content]
                                        <!--{/loop}-->
                                </table>
                        </td>
下面添加
引用:
<!--// 圖片 SHOW - START-->
                        <td style="width: 23%">
                                <h4 style="font-size: 11pt">圖片 SHOW</h4>
                                <table cellspacing="0" cellpadding="0" style="vertical-align: center">
<script type="text/javascript">
        var swf_width = 306;      
        var swf_height = 200;
        var files='images/toplist_1.jpg|images/toplist_2.jpg|images/toplist_3.jpg|images/toplist_4.jpg|images/toplist_5.jpg|images/toplist_1.jpg';
        var links='index.php|index.php|index.php|index.php|Index.php';
        var texts='【1】圖片宣傳展示 111|【2】圖片宣傳展示 222|【3】圖片宣傳展示 333|【4】圖片宣傳展示 444|【5】圖片宣傳展示 555|【6】圖片宣傳展示666'
        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="'+ swf_width +'" height="'+ swf_height +'">');
        document.write('<param name="movie" value="images/pixviewer.swf" /><param name="quality" value="high" />');
        document.write('<param name="menu" value="false" /><param name=wmode value="opaque" />');
        document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
        document.write('<embed src="images/pixviewer.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        document.write('</object>');
</script>
                                </table>
                        </td>
<!--// 圖片 SHOW - END-->
修改裡面的 (這邊以 6 個做示範)
var files='images/toplist_1.jpg|images/toplist_2.jpg|images/toplist_3.jpg|images/toplist_4.jpg|images/toplist_5.jpg|images/toplist_1.jpg';
圖片的檔案位置, 每個以 | 做結尾, 數量要跟以下兩個搭配

var links='index.php|index.php|index.php|index.php|index.php|http://index.php';
圖片的超連結, 就是你點圖片會連到哪裡, 每個以 | 做結尾, 數量要跟上下兩個搭配

var texts='【1】圖片宣傳展示 1|【2】圖片宣傳展示 222|【3】圖片宣傳展示 333|【4】圖片宣傳展示 444|【5】圖片宣傳展示 555|【6】圖片宣傳展示 666'
圖片的標題在此修改, 每個以 | 做結尾, 數量要跟上面兩個搭配

完成
附件: 您所在的用戶組無法下載或查看附件
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

本人現在忙於研究所, 沒多的時間管論壇, 有問題別發 pm 給我, 謝謝~
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

hi..
i can't find foruminfo.htm in the folder. Thank you
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

回覆 2# kduleo 的帖子

you have to add-on this plugins first:
http://linux0911.no-ip.info/Discuz/thread-9664-1-1.html

then you might got foruminfo.htm file for modifying this article's app
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

本人現在忙於研究所, 沒多的時間管論壇, 有問題別發 pm 給我, 謝謝~
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

How can i make some of the category show like a? Is it using hack? Thank you
附件: 您所在的用戶組無法下載或查看附件
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

回覆 4# kduleo 的帖子

引用:
系統設置首頁 » 論壇管理 » 編輯論壇

下級子論壇橫排:
設置下級子論壇橫排時每行論壇數量,如果設置為 0,則按正常方式排列
Not hacks, it's the built-in discuz! system from 5.5.0 version later

you may try the follwing steps:

if filled in 0 value, it will look like the b type;

if filled in 3 value, it will look like the a type, like my forum;

you may try this for yourself then.
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

本人現在忙於研究所, 沒多的時間管論壇, 有問題別發 pm 給我, 謝謝~
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP



論壇聲明
  • 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
    如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
    請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!
最佳瀏覽解析度:不低於 1024 (最佳 1280 以上).(支援 IE 7, Mozilla Firefox, Safari, Chrome)
The Best Surfing Resolution: No Lower than 1024 (Best: above 1280).(IE 7, Mozilla Firefox, Safari, Chrome Supported)