列印

主題列表頁 (forumdisplay) 顯示會員頭像 for Discuz! 6.0.0

主題列表頁 (forumdisplay) 顯示會員頭像 for Discuz! 6.0.0

from: http://www.alan888.com/Discuz/thread-111151-1-1.html

程式名稱: 主題列表頁顯示會員頭像
程式作者: 夜之戀
增補作者: 夜之戀
技術支援: http://nightly-love.net 夜之戀綜合社區
版權聲明: 轉載請註明本站
說  明: 未有說明




1. 修改 forumdisplay.php

找 (有 2 個)
複製內容到剪貼簿
代碼:
WHERE t.fid='$fid' $filteradd AND $displayorderadd
上加
複製內容到剪貼簿
代碼:
LEFT JOIN {$tablepre}memberfields mf ON(mf.uid = t.authorid)
複製內容到剪貼簿
代碼:
WHERE t.tid IN ($stickytids) AND t.displayorder IN (2, 3)
上加
複製內容到剪貼簿
代碼:
LEFT JOIN {$tablepre}memberfields mf ON(mf.uid = t.authorid)
複製內容到剪貼簿
代碼:
SELECT t.* FROM {$tablepre}threads t
添加紅字 (有 4 次)
引用:
SELECT t.*, mf.avatar FROM {$tablepre}threads t
2. 修改 css.htm

最底下加入 (如有其他風格也需加入)
複製內容到剪貼簿
代碼:
/* 主題列表頁 (forumdisplay) 顯示會員頭像 - START */
a:hover img.ava_border {border-color: #FF9900}
img.ava_border, a img.ava_border {border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff; float:left; }
/* 主題列表頁 (forumdisplay) 顯示會員頭像 - END */
3. 修改 forumdisplay.htm

找到
複製內容到剪貼簿
代碼:
                                <td class="author">
                                        <cite>
                                        <!--{if $thread['authorid'] && $thread['author']}-->
                                                <a href="space.php?action=viewpro&uid=$thread[authorid]">$thread[author]</a>
                                        <!--{else}-->
                                                <!--{if $forum['ismoderator']}-->
                                                        <a href="space.php?action=viewpro&uid=$thread[authorid]">{lang anonymous}</a>
                                                <!--{else}-->
                                                        {lang anonymous}
                                                <!--{/if}-->
                                        <!--{/if}-->
                                        </cite>
改為
                                <td class="author">
<!--// 主題列表頁 (forumdisplay) 顯示會員頭像 - START -->
<span id="t$thread[tid]" onmouseover="showMenu(this.id)">
        <a href="viewpro.php?uid=$thread[authorid]"><img src="$thread[avatar]" onerror="src='images/avatars/noavatar.gif'" class="ava_border" width="22" height="22" alt="" /></a>
</span>
<div class="headermenu_popup" id="t$thread[tid]_menu" style="display: none; background-color: #FFF; filter: Alpha(Opacity=85); opacity: 0.85; width: auto;">
        <span style="white-space: nowrap;">
                <img src="$thread[avatar]" style="border: 0" hspace="2" vspace="2" alt="" onerror="src='./images/avatars/noavatar.gif'" /><br />
                {lang author}: <a href="viewpro.php?uid=$thread[authorid]">$thread[author]</a><br />
                {lang dateline}: <span class="lighttxt">$thread[dateline]</span>
        </span>
</div>
<!--// 主題列表頁 (forumdisplay) 顯示會員頭像 - END -->
                                        <cite>
                                        <!--{if $thread['authorid'] && $thread['author']}-->
                                                <a href="space.php?action=viewpro&uid=$thread[authorid]">$thread[author]</a>
                                        <!--{else}-->
                                                <!--{if $forum['ismoderator']}-->
                                                        <a href="space.php?action=viewpro&uid=$thread[authorid]">{lang anonymous}</a>
                                                <!--{else}-->
                                                        {lang anonymous}
                                                <!--{/if}-->
                                        <!--{/if}-->
                                        </cite>


後臺 → 論壇管理 → 介面風格 → 更新 css 檔案快取
附件: 您所在的用戶組無法下載或查看附件
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

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

TOP

我以前有用過
覺得不是很實用


Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

我覺得主題列表顯示頭像
美化的~但不是說很實用



Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

回覆 1# Linux0911 的帖子

等待以九的東西 自己看爽用的 謝謝老大喔 愛你唷 啵啵~~
時尚論壇Fashion forum..http://twkym.com/car/bbs/
讓自己休息專心上班~...空間時間到給他爛嚕^^..
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

失敗= =

添加紅字 (有 4 次)

是3次還4次?
時尚論壇Fashion forum..http://twkym.com/car/bbs/
讓自己休息專心上班~...空間時間到給他爛嚕^^..
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

複製內容到剪貼簿
代碼:
WHERE t.fid='$fid' $filteradd AND $displayorderadd
有兩個地方  上面都要加
複製內容到剪貼簿
代碼:
LEFT JOIN {$tablepre}memberfields mf ON(mf.uid = t.authorid)
本帖最近評分記錄
  • Linux0911 現金 +50 非常好有注意到~ 2007-10-14 11:54 PM
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

引用:
原帖由 hijkl321 於 2007-10-14 10:53 PM 發表
失敗= =

添加紅字 (有 4 次)

是3次還4次?
4個
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

回覆 7# kazo 的帖子

成功..謝謝 qq"

再請問一下 作者 跟發佈時間 要怎ㄇ改成在圖片下面 呢
會爆格 跑到右邊@@...

[ 本帖最後由 hijkl321 於 2007-10-14 11:32 PM 編輯 ]
時尚論壇Fashion forum..http://twkym.com/car/bbs/
讓自己休息專心上班~...空間時間到給他爛嚕^^..
Linux0911 Forum © 2004-2009 All Rights Reserved.

TOP

引用:
原帖由 kazo 於 2007-10-14 11:03 PM 發表
WHERE t.fid='$fid' $filteradd AND $displayorderadd有兩個地方  上面都要加LEFT JOIN {$tablepre}memberfields mf ON(mf.uid = t.authorid)
ok, fixed, thanks~
引用:
原帖由 hijkl321 於 2007-10-14 11:16 PM 發表
成功..謝謝 qq"

再請問一下 作者 跟發佈時間 要怎ㄇ改成在圖片下面 呢
會爆格 跑到右邊@@...
情況是甚麼, 擷圖一下~
Hack 安裝錯誤, 80% 來自粗心, 請專心安裝
Linux0911 打造您的個性論壇

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

TOP

見附件 麻煩一下嚕^^~
附件: 您所在的用戶組無法下載或查看附件
時尚論壇Fashion forum..http://twkym.com/car/bbs/
讓自己休息專心上班~...空間時間到給他爛嚕^^..
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)