2006-9-18 18:25
nickyjelly
作者欄位美化 ( 3 種+含摺疊方式) for Discuz! 5.0.0 by Linux0911
[quote]名稱:作者欄位美化 ( 3 種+摺疊方式)
適用版本:[b]Discuz! 5.0.0[/b]
修改者:[url=http://linux0911.no-ip.info/Discuz/viewpro.php?uid=1]Linux0911[/url]
說明:三種如展示圖所示,其中一種是仿 AL8 Forum 的,三種美化任你切換,增加遊客只能看到部分資料,須成為會員或登錄方可查看完整資料
[color=#33CC33]轉載請註明來源:[url]http://linux0911.no-ip.info/Discuz[/url][/color]
最後更新:2006-09-03 16:40
修改檔案:viewthread.htm
[color=#666666]備註:如需摺疊者,請先備份相關檔案,[/color][color=#33CC33]不裝美化也可以摺疊[/color][color=#666666],跟著步驟二修改便可完成[/color]
[/quote]
[color=Red][size=6]演示在第4帖[/size][/color]
1. 修改 viewthread.htm
找到
[code] <td width="18%" valign="top" class="t_user">$post[newpostanchor] $post[lastpostanchor]
<!--{if $forum['ismoderator']}-->
<!--{if $allowviewip}--><a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]"><img src="{IMGDIR}/ip.gif" border="0" align="right" alt="{lang admin_getip}" /></a><!--{/if}-->
<!--{/if}-->
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold">$post[author]</a><!--{if $post['nickname']}--> <span class="smalltxt">($post[nickname])</span><!--{/if}-->
<br><div class="smalltxt">
$post[authortitle]
<br>{eval showstars($post['stars']);}<br><!--{if $post['customstatus']}-->$post[customstatus]<br><!--{/if}--><br>
<!--{if $avatarshowpos == 3 && $post['avatarshow'] && $showavatars}-->
<center>$post[avatarshow]</center><br>
<!--{elseif $post['avatar'] && $showavatars}-->
<table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed; overflow: hidden">
<tr><td align="center">$post[avatar]</td></tr></table><br>
<!--{else}-->
<br><br>
<!--{/if}-->
<!--{if $post['medals']}-->
<!--{loop $post['medals'] $medal}-->
<img src="images/common/$medal[image]" border="0" alt="$medal[name]" />
<!--{/loop}-->
<br>
<!--{/if}-->
{lang uid} $post[uid]<br>
{lang digest_posts} <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--><br>
{lang credits} $post[credits]<br>
{lang posts} $post[posts]<br>
<!--{loop $extcredits_thread $key $credit}-->
$credit[title] $post[$key] $credit[unit]<br>
<!--{/loop}-->
{lang readperm} $post[readaccess]<br>
{lang regtime} $post[regdate]
<!--{loop $_DCACHE['fields_thread'] $field}-->
<br>$field[title]
<!--{if $field['selective']}-->
$field['choices'][$post['field_'.$field['fieldid']]]
<!--{else}-->
$post['field_'.$field['fieldid']]
<!--{/if}-->
<!--{/loop}-->
<!--{if $post['location']}--><br>{lang location} $post[location]<!--{/if}--><br>
<!--{if $vtonlinestatus && $post['authorid']}-->
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
{lang online_status} <b>{lang online}</b>
<!--{else}-->
{lang online_status} {lang offline}
<!--{/if}-->
<!--{/if}-->
<!--{if $avatarshowpos == 2 && $showavatars}--><br><br><center>$post[avatarshow]</center><!--{/if}-->
</div>
<!--{if $post['alipay']}--><br><a href="https://www.alipay.com/payto:$post[alipay]?partner=20880020258585430156" target="_blank"><img src="{IMGDIR}/payto.gif" border="0" alt="{lang payto_author}" /></a><!--{/if}-->
<!--{else}-->
<!--{if !$post['authorid']}-->
<span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br><span class="smalltxt">{lang unregistered}
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<span class="bold">
<!--{if $forum['ismoderator']}--><a href="viewpro.php?uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
</span><br>{lang member_anonymous}
<!--{else}-->
<span class="bold">$post[author]</span><br>
{lang member_deleted}
<!--{/if}-->
<br><br><br><br><br><br><br><br><br><br>
<!--{/if}-->
</td>
[/code]
替換為
[code]{template membercard5}[/code]
[code]{template author5}[/code]
[code]{template imgauthor}[/code]
2. 需要摺疊者須先備份檔案 viewthread.htm, membercard5.htm, author5.htm, imgauthor5.htm (看你裝什麼版)
不想摺疊的項目 (即顯示出來) 便可填寫在 [color=#3333CC]<!-- 物件在此顯示 --> [/color]便可
預設的 viewthread.htm ( 即是你沒安裝以上美化版的,Discuz! 5.0.0 正式版模板)
找
[code] {lang uid} $post[uid]<br>
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (1) START -->
<style type="text/css">
<!--
.detailicon { cursor: hand; }
.userdetail { display: none; }
-->
</style>
<a href="###"><span class="detailicon" OnClick="flip(ud_$post[pid], document.images.img_$post[pid])" id="img_$post[pid]"><img src="{IMGDIR}/collapsed_yes.gif" id="img_$post[pid]" style="border: 0;" title="縮放會員資料" /></span></a>
<!-- 物件在此顯示 -->
<table width="100%" border="0" cellspacing="1"><tr class="smalltxt"><td class="userdetail" id="ud_$post[pid]">
<!-- 作者欄位摺疊 (1) END -->
[/code]
再找
[code] <!--{else}-->
<!--{if !$post['authorid']}-->
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (2) START -->
</td></tr></table>
<script type="text/javascript" >
function flip (ud, img)
{
if (ud.style.display == "block")
{
ud.style.display="none";
img.src = '{IMGDIR}/collapsed_yes.gif';
}
else
{
ud.style.display="block";
img.src = '{IMGDIR}/collapsed_no.gif';
}
}
</script>
<!-- 作者欄位摺疊 (2) END -->
[/code]
imgauthor.htm
找
[code] {lang uid} $post[uid]<br />[/code]
上面添加
[code][<!-- 作者欄位摺疊 (1) START -->
<style type="text/css">
<!--
.detailicon { cursor: hand; }
.userdetail { display: none; }
-->
</style>
<a href="###"><span class="detailicon" OnClick="flip(ud_$post[pid], document.images.img_$post[pid])" id="img_$post[pid]"><img src="{IMGDIR}/collapsed_yes.gif" id="img_$post[pid]" style="border: 0;" title="縮放會員資料" /></span></a>
<!-- 物件在此顯示 -->
<table width="100%" border="0" cellspacing="1"><tr class="smalltxt"><td class="userdetail" id="ud_$post[pid]">
<!-- 作者欄位摺疊 (1) END -->
[/code]
找
[code] <!--{else}-->
<!--{if !$post['authorid']}-->
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (2) START -->
</td></tr></table>
<script type="text/javascript" >
function flip (ud, img)
{
if (ud.style.display == "block")
{
ud.style.display="none";
img.src = '{IMGDIR}/collapsed_yes.gif';
}
else
{
ud.style.display="block";
img.src = '{IMGDIR}/collapsed_no.gif';
}
}
</script>
<!-- 作者欄位摺疊 (2) END -->
[/code]
membercard5.htm
找
[code]<img src="images/membercard5/biao-18.gif" width="130" height="1" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" alt="" />
UID: $post['uid']<br />
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (1) START -->
<style type="text/css">
<!--
.detailicon { cursor: hand; }
.userdetail { display: none; }
-->
</style>
<br /><a href="###"><span class="detailicon" OnClick="flip(ud_$post[pid], document.images.img_$post[pid])" id="img_$post[pid]"><img src="{IMGDIR}/collapsed_yes.gif" id="img_$post[pid]" style="border: 0;" title="縮放會員資料" /></span></a>
<!-- 物件在此顯示 -->
<table width="100%" border="0" cellspacing="1"><tr class="smalltxt"><td class="userdetail" id="ud_$post[pid]">
<!-- 作者欄位摺疊 (1) END -->
[/code]
找
[code]<!--{else}-->
<!--{if !$post['authorid']}-->
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (2) START -->
</td></tr></table>
<script type="text/javascript" >
function flip (ud, img)
{
if (ud.style.display == "block")
{
ud.style.display="none";
img.src = '{IMGDIR}/collapsed_yes.gif';
}
else
{
ud.style.display="block";
img.src = '{IMGDIR}/collapsed_no.gif';
}
}
</script>
<!-- 作者欄位摺疊 (2) END -->
[/code]
author5.htm
找
[code]<table cellspacing="0" border="0" width="100%"><tr><td width="100%"><table width="100%" border="1" align="center" cellspacing="0" cellpadding="0">
<tr><td><img src="images/author5/joehack.gif" alt="" /> UID: $post['uid']</td></tr></table></td></tr></table>
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (1) START -->
<style type="text/css">
<!--
.detailicon { cursor: hand; }
.userdetail { display: none; }
-->
</style>
<a href="###"><span class="detailicon" OnClick="flip(ud_$post[pid], document.images.img_$post[pid])" id="img_$post[pid]"><img src="{IMGDIR}/collapsed_yes.gif" id="img_$post[pid]" style="border: 0;" title="縮放會員資料" /></span></a>
<!-- 物件在此顯示 -->
<table width="100%" border="0" cellspacing="0"><tr class="smalltxt"><td class="userdetail" id="ud_$post[pid]">
<!-- 作者欄位摺疊 (1) END -->
[/code]
找
[code]<!--{else}-->
<!--{if !$post['authorid']}-->
[/code]
上面添加
[code]<!-- 作者欄位摺疊 (2) START -->
</td></tr></table>
<script type="text/javascript" >
function flip (ud, img)
{
if (ud.style.display == "block")
{
ud.style.display="none";
img.src = '{IMGDIR}/collapsed_yes.gif';
}
else
{
ud.style.display="block";
img.src = '{IMGDIR}/collapsed_no.gif';
}
}
</script>
<!-- 作者欄位摺疊 (2) END -->
[/code]
[[i] 本帖最後由 nickyjelly 於 2006-9-18 18:35 編輯 [/i]]
2006-9-18 18:28
zmzmzmzmzm
示演要人註冊既~"~.....
2006-9-18 18:30
nickyjelly
[quote][b]原帖由 [i]zmzmzmzmzm[/i] 於 2006-9-18 18:28 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid701031][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
示演要人註冊既~"~..... [/quote]
我冇權限上傳咁多野@@"
所以只可以有網址演示....
2006-9-18 18:34
nickyjelly
[color=#990000][font=標楷體][size=6]演示[/size][/font][/color]
2006-9-18 18:44
keihileon
請問如果我裝了d5的生命值,發帖詳情和今日心情,請問怎樣出現??
2006-9-18 18:51
nickyjelly
[quote][b]原帖由 [i]keihileon[/i] 於 2006-9-18 18:44 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid701058][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
請問如果我裝了d5的生命值,發帖詳情和今日心情,請問怎樣出現?? [/quote]
照樣修改.
2006-9-18 19:11
keihileon
[quote][b]原帖由 [i]nickyjelly[/i] 於 2006-9-18 18:51 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid701079][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
照樣修改. [/quote]
即係點...可以整出來嗎?
2006-9-18 19:20
nickyjelly
[quote][b]原帖由 [i]keihileon[/i] 於 2006-9-18 19:11 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid701116][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
即係點...可以整出來嗎? [/quote]
根本是在你下載了的模版上,
跟據你要修改的東西照樣修改.
2006-9-18 19:42
keihileon
[quote][b]原帖由 [i]nickyjelly[/i] 於 2006-9-18 19:20 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid701128][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
根本是在你下載了的模版上,
跟據你要修改的東西照樣修改. [/quote]
so 麻煩的....不改了...
[[i] 本帖最後由 keihileon 於 2006-9-18 19:43 編輯 [/i]]
2006-9-19 17:34
talkbbs
支持:em21:
2006-10-2 06:06
shugyho
真是很好的美化呢太感謝了:em32: :em32:
2006-10-2 11:05
KFORUM.
好靚啊..第1樣岩我多d
2006-10-6 16:32
kyo7458
imgauthor.htm 找不到這ˇ檔案
2006-10-6 18:43
wantgo
thanks~
感謝大大您的無私分享~
2006-10-14 13:30
HKCHATS
[size=6][color=Red]點解我裝完後變成咁??[/color]
[/size][img]www.hkchats.com/qqd.GIF[/img]
2006-10-14 13:32
KFORUM.
[quote][b]原帖由 [i]HKCHATS[/i] 於 10-14-06 13:30 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid724985][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
點解我裝完後變成咁??
[url]www.hkchats.com/qqd.GIF[/url] [/quote]
可能裝錯左..!!
2006-10-14 13:39
HKCHATS
[quote][b]原帖由 [i]KFORUM.[/i] 於 2006-10-14 13:32 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid724988][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
可能裝錯左..!! [/quote]
我跟足哂架喎
2006-10-14 16:48
abone
[quote][b]原帖由 [i]HKCHATS[/i] 於 2006-10-14 13:39 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid724999][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
我跟足哂架喎 [/quote]
第一part果度...
是但貼一個咋啵~
唔係3個喔..
2006-10-18 12:20
g0212014
已經修改完畢........感謝你了:D
2006-10-23 09:55
vincent19
支持啊我都找了好耐啦, thx~
2006-10-23 14:55
himchow
是否本身風格底色的地方會冇左,變成附件入面的顏色
2006-10-25 23:25
chhsop
感恩阿
成功結合 HP MP EXP 美化
2006-11-4 23:56
GCF
為何我安裝完畢後
顯示為
作者欄
--------------
文章內容
而不是
作 | 文章內容
者 |
欄 |
2006-11-14 08:35
康熙
我想問下 如果裝佐寵物 or 其他 點係作者欄顯示出來?
2006-11-14 20:26
supergicdm
果然是第下第一好帖
終於又學到一招囉!!
愈來愈熟悉Discuz囉!!
讚
推推推:em37:
2006-11-16 21:04
99236299
[quote][b]原帖由 [i]kyo7458[/i] 於 2006-10-6 16:32 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=1#pid718105][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
imgauthor.htm 找不到這ˇ檔案 [/quote]
me too~~~~~~~~~~~~
2006-11-25 05:18
tays
:em32: 成功安裝!~多謝教學!~
演示:[url]http://tays.no-ip.info/Discuz/thread-437-1-1.html###[/url]
2006-11-25 12:42
pkdiu487
多謝分享~~~靚左好多~
2007-1-17 15:29
小智仔
點解變成咁既?
[img]http://img134.imageshack.us/img134/3433/6902ck3.png[/img]
[[i] 本帖最後由 小智仔 於 2007-1-17 15:35 編輯 [/i]]
2007-1-17 21:18
mics
感謝提供
已經安裝完成:):)
不過有個問題
[img]http://evco.us/q.png[/img]
紅色框起來的地方是接著的
請問那邊是在哪裡改,可否告訴我
我找了好久都找不到
感謝:):)
[[i] 本帖最後由 mics 於 2007-1-17 21:20 編輯 [/i]]
2007-1-18 00:02
Bitt
請問LeoBBS風格是否不可以裝這個美化呢? 因為我找不到有關檔案
2007-1-18 12:05
mics
[quote][b]原帖由 [i]Bitt[/i] 於 2007-1-18 00:02 發表。 [/b][url=http://www.alan888.com/Discuz/viewthread.php?tid=84275&page=2#pid815449][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
請問LeoBBS風格是否不可以裝這個美化呢? 因為我找不到有關檔案 [/quote]
要下載附件= ='''
若找不到其他的檔案
去default找
2008-6-26 15:27
tpomps95
*** 作者被禁止或刪除 內容自動屏蔽 ***
頁:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.