Board logo

標題: AL8 首頁四格 加入 圖片 SHOW (四格延伸應用系列) [列印本頁]

作者: Linux0911    時間: 2007-12-8 08:42 PM     標題: AL8 首頁四格 加入 圖片 SHOW (四格延伸應用系列)

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

效果如下:滑鼠移過 Flash 便會顯示
[attach]6016[/attach]

作者:忘了
整理: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'
圖片的標題在此修改, 每個以 | 做結尾, 數量要跟上面兩個搭配

完成
作者: kduleo    時間: 2008-10-24 07:54 PM

hi..
i can't find foruminfo.htm in the folder. Thank you
作者: Linux0911    時間: 2008-10-26 12:34 AM     標題: 回覆 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
作者: kduleo    時間: 2008-10-26 10:22 PM

How can i make some of the category show like a? Is it using hack? Thank you
作者: Linux0911    時間: 2008-10-29 09:22 AM     標題: 回覆 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.




歡迎光臨 Linux0911 Forum (http://linux0911.no-ip.info/Discuz/) Powered by Discuz! 6.0.0