列印

AL8 首頁四格 首頁直排顯示方式 (四格延伸應用系列)

AL8 首頁四格 首頁直排顯示方式 (四格延伸應用系列)

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

效果如下:


整理:Linux0911
功能:將原本四格橫向顯示的方式改為直向式的,看很多人需要特此製作~
由於修改過程繁雜, 考慮讓使用者直接套用成果, 所以只須下載附件覆蓋原本的 foruminfo.htm, discuz.htm
若 discuz.htm 有改過, 請先備份此檔案, 本檔案以原版的為修改基礎~

開始安裝


下載附件依結構上傳檔案

./templates/default/foruminfo.htm (如果有請先備份以免出錯)
./templates/default/discuz.htm (如果有請先備份以免出錯)

後臺更新快取, 完成!

DIY 開始

a. 如果你想將聯盟論壇在線列表一起放到右邊

修改 discuz.htm

找到
複製內容到剪貼簿
代碼:
<!--{if $_DCACHE['forumlinks']}-->
<div class="box">
        <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks]" alt="" onclick="toggle_collapse('forumlinks');" /></span>
        <h4>{lang board_links}</h4>
        <table summary="{lang board_links}" id="forumlinks" cellpadding="0" cellspacing="0" style="$collapse[forumlinks]">
                <!--{loop $_DCACHE['forumlinks'] $flink}-->
                        <tr>
                                <td>
                                        <!--{if $flink['type'] == 1}--><img src="$flink[logo]" alt="" class="forumlink_logo" /><!--{/if}-->
                                        $flink[content]
                                </td>
                        </tr>
                <!--{/loop}-->
        </table>
</div>
<!--{/if}-->

<!--{if empty($gid) && $supe['status'] && $supe['maxupdateusers'] && $_DCACHE['supe_updateusers']}-->
<div class="box" id="supe_maxupdateusers">
        <h4><a href="$supe[siteurl]" target="_blank">{lang supe_updateusers}</a></h4>
        <ul class="userlist">
                <!--{loop $_DCACHE['supe_updateusers'] $supe_updateuser}-->
                        <li><a href="$supe[siteurl]/?uid/{$supe_updateuser[uid]}" target="_blank">{$supe_updateuser[username]}</a></li>
                <!--{/loop}-->
        </ul>
</div>
<!--{/if}-->

<!--{if empty($gid) && ($whosonlinestatus || $maxbdays)}-->
        <div class="box" id="online">
        <!--{if $whosonlinestatus}-->
                <!--{if $detailstatus}-->
                        <span class="headactions"><a href="$indexname?showoldetails=no#online" title="{lang pm_close}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang pm_close}" /></a></span>
                        <h4>
                                <strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
                                - <em>$onlinenum</em> {lang onlines}
                                - <em>$membercount</em> {lang index_members}(<em>$invisiblecount</em> {lang index_invisibles}),
                                <em>$guestcount</em> {lang index_guests}
                                - {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
                        </h4>
                <!--{else}-->
                        <span class="headactions"><a href="$indexname?showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
                        <h4>
                                <strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
                                - {lang total} <em>$onlinenum</em> {lang onlines}
                                - {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
                        </h4>
                <!--{/if}-->
        <!--{else}-->
                <h4><strong><a href="member.php?action=online">{lang onlinemember}</a></strong></h4>
        <!--{/if}-->
        <!--{if $maxbdays}-->
                <div id="bdayslist">
                        <!--{if $_DCACHE['birthdays_index']['todaysbdays']}--><a href="member.php?action=list&amp;type=birthdays">{lang todays_birthdays}</a>: $_DCACHE[birthdays_index][todaysbdays]<!--{else}-->{lang todays_birthdays_none}<!--{/if}-->
                </div>
        <!--{/if}-->
        <!--{if $whosonlinestatus}-->
                <dl id="onlinelist">
                <dt>$_DCACHE[onlinelist][legend]</dt>
                <!--{if $detailstatus}-->
                        <dd>
                        <ul class="userlist">
                        <!--{if $whosonline}-->
                                <!--{loop $whosonline $key $online}-->
                                        <li title="{lang time}: $online[lastactivity]{LF} {lang action}: $online[action] <!--{if $online['fid']}-->{LF}{lang forum}: $online[fid]<!--{/if}-->">
                                        <img src="images/common/$online[icon]" alt="" />
                                        <!--{if $online['uid']}-->
                                                <a href="space.php?uid=$online[uid]">$online[username]</a>
                                        <!--{else}-->
                                                $online[username]
                                        <!--{/if}-->
                                        </li>
                                <!--{/loop}-->
                        <!--{else}-->
                                <li style="width: auto">{lang online_only_guests}</li>
                        <!--{/if}-->
                        </ul>
                        </dd>
                <!--{/if}-->
                </dl>
        <!--{/if}-->
        </div>
<!--{/if}-->
移到
複製內容到剪貼簿
代碼:
<!--// 右邊的內容 - END -->
的上面即可


b. 如果你除了四格還要再加東西上去

修改 foruminfo.htm

找到
複製內容到剪貼簿
代碼:
<div class="box">
        <h4 style="font-size: 11pt">最新回覆文章</h4>
        <!--{loop $_DCACHE['newreply'] $newreply}-->
                $newreply[content]
        <!--{/loop}-->
</div>
下面添加 (每一格為這種 div 模式添加即可)
引用:
<div class="box">
        <h4 style="font-size: 11pt">XXXXX</h4>
        XXXXX
</div>
存檔, 完成!

備註:XXXXX 請自己改為你想要的內容, 例如 Youtube, 或是 Flash、圖片等都可以自行運用!
附件: 您所在的用戶組無法下載或查看附件
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

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

TOP

回覆 1# Linux0911 的帖子

正呀!!!!!!!十卜

請問有冇得整到連forumdisplay同viewthread都顯示到呀

thank you
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

超棒了!!

我融合的一些...改成我想要的了!!

謝謝"Linux0911"分享!


Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

回覆 3# 【ㄚ椿】 的帖子

你首頁怎搭配子版塊下拉的教一下.....
(這站內有一篇教學,可是會有錯誤!)

謝謝~
我也有註冊成為貴壇會員喔

Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

謝謝"Linux0911"分享!
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

直排風格無法顯示?
請各位指教一下!感謝!
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

回覆 6# Coolday 的帖子

直排不是不行, 而是你要做兩個插件的整合


基本上紅色都是原始的, 完全沒動過程式碼

藍色的部分是我額外加上去的~其實改的地方不多

直排插件:
http://linux0911.no-ip.info/Discuz/thread-10197-1-1.html

只需要再改一次 discuz.htm 檔案, 即可正常使用
附件: 您所在的用戶組無法下載或查看附件
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

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

TOP

超超棒了!!  遲點試安裝!感謝樓主分享! Thx......!
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

一定要裝阿!!
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)