[code]名稱:作者欄位美化(第二版)
適用版本:Discuz!5.5.0/5.0
作者:ktp22004
說明:是仿 AL8 Forum+美化的
模板全部採用 Div + CSS 編寫, 加快執行速度
最後更新:2007-08-31 20:00
修改檔案:viewthread.htm
難易程度:幼稚園
1. 修改 viewthread.htm
<cite><!--{if $forum['ismoderator']}-->
<!--{if $allowviewip && ($thread['digest'] >= 0 || !$post['first'])}--><label><a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]" id="ajax_getip_$post[count]" onclick="ajaxmenu(event, this.id, 10000, null, 0)" title="{lang admin_getip}">IP</a></label><!--{/if}-->
<!--{/if}-->
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<a href="space.php?uid=$post[authorid]" target="_blank" id="userinfo$post[pid]" class="dropmenu" onmouseover="showMenu(this.id)">$post[author]</a></cite>
<!--{if $post['nickname']}--><p>$post[nickname]</p><!--{/if}-->
<!--{if $post['avatar'] && $showavatars}-->
$post[avatar]
<!--{/if}-->
<p><em>$post[authortitle]</em></p>
<p>{eval showstars($post['stars']);}</p>
<!--{if $post['customstatus']}--><p class="customstatus">$post[customstatus]</p><!--{/if}-->
<!--{if $customauthorinfo[1]}--><dl class="profile">{eval @eval('echo "'.$customauthorinfo[1].'";');}</dl><!--{/if}-->
<!--{if $post['medals']}--><p>
<!--{loop $post['medals'] $medal}-->
<img src="images/common/$medal[image]" alt="$medal[name]" />
<!--{/loop}--></p>
<!--{/if}-->
<ul>
<!--{if $spacestatus}-->
<li class="space">
<!--{if !empty($post[spacename])}-->
<a href="space.php?uid=$post[authorid]" target="_blank" title="$post[spacename]">
<!--{else}-->
<a href="space.php?uid=$post[authorid]" target="_blank" title="{$post[username]}{lang space_userspace}">
<!--{/if}-->
{lang space}</a></li>
<!--{elseif $supe['status']}-->
<li class="space"><a href="$supe[siteurl]/?uid/$post[authorid]" target="_blank">{lang space}</a></li>
<!--{/if}-->
<li class="pm"><a href="pm.php?action=send&uid=$post[authorid]" target="_blank" id="ajax_uid_$post['pid']" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">{lang send_pm}</a></li>
<li class="buddy"><a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" onclick="ajaxmenu(event, this.id, null, 0)">{lang add_to_buddylist}</a></li>
<!--{if $vtonlinestatus && $post['authorid']}-->
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
<li class="online">{lang online}
<!--{else}-->
<li class="offline">{lang offline}
<!--{/if}-->
</li>
<!--{/if}-->
</ul>
<!--{else}-->
<!--{if !$post['authorid']}-->
<a href="javascript:;">{lang guest} <em>$post[useip]</em></a></cite>
{lang unregistered}
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<!--{if $forum['ismoderator']}--><a href="space.php?uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
{lang member_anonymous}
<!--{else}-->
$post[author]</cite>
{lang member_deleted}
<!--{/if}-->
<!--{/if}-->
<td width="18%" valign="top" class="t_user"><a name="pid$post[pid]"></a> $post[newpostanchor] $post[lastpostanchor]
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (1) -->
<div>
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (1) -->
<table cellpadding="0" cellspacing="0" style="margin-left: auto; margin-right: auto; width: 163px; border: 0;">
<tr><td><img src="images/membercard5/biao-9.gif" width="163" height="5" style="border: 0;" alt="" /></td></tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 3px; background-image: url('images/membercard5/biao-10.gif');"><img src="images/membercard5/biao-10.gif" width="3" height="5" alt="" /></td>
<td style="background-image: url('images/membercard5/biao-bg.gif');">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="smalltxt">
<div class="smalltxt">
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<a href="viewpro.php?uid=$post[authorid]" class="bold" title="$post[author] {lang view_profile}">$post[author]</a><!--{if $post['nickname']}--><span class="smalltxt" style="color: #CA0000" title="$post[author] {lang nickname}">($post[nickname])</span><!--{/if}-->
<!--{if $forum['ismoderator'] && $allowviewip}-->
<a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]" id="ajax_getip_$post[count]" onclick="ajaxmenu(event, this.id, 10000)"><img src="{IMGDIR}/ip.gif" style="margin-left: auto; margin-right: auto; border: 0;" alt="{lang admin_getip}" /></a>
<!--{/if}--><br /><span title="{lang memcp_usergroups_title}">$post[authortitle]</span>
<!--{if $post['stars']>0}-->
<table cellpadding="0" cellspacing="0" style="width: 148px; border: 0; text-align: center;">
<tr>
<td style="width: 5px;"><img src="images/membercard5/biao-13.gif" width="5" height="17" alt="" /></td>
<td style="background-image: url('images/membercard5/biao-14.gif'); text-align: left;"><span class="smalltxt">{eval showstars($post['stars']);}</span></td>
<td style="width: 5px;"><img src="images/membercard5/biao-15.gif" width="5" height="17" alt="" /></td>
</tr>
</table>
<!--{/if}-->
<!--{if $post['customstatus']}--><span title="$post[author] {lang custom_status}">$post[customstatus]</span><!--{/if}-->
<!--{if $avatarshowpos == 3 && $post['avatarshow'] && $showavatars}-->
<span align="center">$post[avatarshow]</span><br />
<!--{elseif $post['avatar'] && $showavatars}-->
<table width="95%" cellspacing="0" cellpadding="0" style="table-layout: fixed; overflow: hidden; border: 0; margin-top: 5px;">
<tr><td align="center">$post[avatar]</td></tr></table><br />
<!--{else}-->
<br /><br />
<!--{/if}-->
<fieldset><legend>
<font color="#FF9900">榮譽勳章</font></a></legend><!--{if $post['medals']}--> <!--{loop $post['medals'] $medal}--><img src="images/common/$medal[image]" border="0" alt="$medal[name]" />
<!--{/loop}-->
<!--{else}-->
目前沒有勳章
<br>
<!--{/if}--><table border="0" cellspacing="0" cellpadding="0"></table></fieldset>
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (2) -->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
UID: $post['uid']<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang gender}:<!--{if $post['gender'] == 1}--> {lang male}<br /><!--{elseif $post['gender'] == 2}--> {lang female}<br /><!--{else}--> {lang secret}<br /><!--{/if}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang digest_posts}: <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--> 篇<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang credits}: $post[credits] 點<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang posts}: $post[posts] 篇<br />
<!--{if $discuz_uid}-->
<!--{loop $extcredits_thread $key $credit}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
$credit[title]: $post[$key] $credit[unit]<br /><!--{/loop}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang readperm}: $post[readaccess]<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang regtime}: $post[regdate]<br />
<!--{if $post['field_'.$field['fieldid']] !=""}--><!--{loop $_DCACHE['fields_thread'] $field}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
$field[title]:
<!--{if $field['selective']}-->
$field['choices'][$post['field_'.$field['fieldid']]]
<!--{else}-->
$post['field_'.$field['fieldid']]
<!--{/if}-->
<!--{/loop}--><!--{/if}-->
<!--{if $post['location']}--><img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang location}: $post[location]<br /><!--{/if}-->
<!--{if $vtonlinestatus && $post['authorid']}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" /> {lang online_status}: <b>{lang online}</b>
<!--{else}-->
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" /> {lang online_status}: {lang offline}
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<!--{else}-->
<!--{if !$post['authorid']}-->
<span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br /><span class="smalltxt">{lang unregistered}</span>
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<!--{if $forum['ismoderator']}--><span class="bold"><a href="viewpro.php?uid=$post[authorid]">{lang anonymous}</a></span><!--{else}--><span class="bold">{lang anonymous}</span><!--{/if}-->
<br />{lang member_anonymous}
<!--{else}-->
<span class="bold">$post[author]</span><br />
{lang member_deleted}
<!--{/if}-->
<br /><br /><br />
<!--{/if}-->
</div>
</td>
</tr>
</table>
</td>
<td style="width: 3px; background-image: url('images/membercard5/biao-11.gif');"><img src="images/membercard5/biao-11.gif" width="3" height="3" style="border: 0" alt="" /></td>
</tr>
</table>
</td>
</tr>
<tr><td><img src="images/membercard5/biao-12.gif" width="163" height="5" style="border: 0;" alt="" /></td></tr>
</table>
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (3) -->
</div>
</td>
<td width="18%" valign="top" class="t_user"><a name="pid$post[pid]"></a> $post[newpostanchor] $post[lastpostanchor]
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (1) -->
<div>
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (1) -->
<table cellpadding="0" cellspacing="0" style="margin-left: auto; margin-right: auto; width: 163px; border: 0;">
<tr><td><img src="images/membercard5/biao-9.gif" width="163" height="5" style="border: 0;" alt="" /></td></tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 3px; background-image: url('images/membercard5/biao-10.gif');"><img src="images/membercard5/biao-10.gif" width="3" height="5" alt="" /></td>
<td style="background-image: url('images/membercard5/biao-bg.gif');">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="smalltxt">
<div class="smalltxt">
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<a href="viewpro.php?uid=$post[authorid]" class="bold" title="$post[author] {lang view_profile}">$post[author]</a><!--{if $post['nickname']}--><span class="smalltxt" style="color: #CA0000" title="$post[author] {lang nickname}">($post[nickname])</span><!--{/if}-->
<!--{if $forum['ismoderator'] && $allowviewip}-->
<a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]" id="ajax_getip_$post[count]" onclick="ajaxmenu(event, this.id, 10000)"><img src="{IMGDIR}/ip.gif" style="margin-left: auto; margin-right: auto; border: 0;" alt="{lang admin_getip}" /></a>
<!--{/if}--><br /><span title="{lang memcp_usergroups_title}">$post[authortitle]</span>
<!--{if $post['stars']>0}-->
<table cellpadding="0" cellspacing="0" style="width: 148px; border: 0; text-align: center;">
<tr>
<td style="width: 5px;"><img src="images/membercard5/biao-13.gif" width="5" height="17" alt="" /></td>
<td style="background-image: url('images/membercard5/biao-14.gif'); text-align: left;"><span class="smalltxt">{eval showstars($post['stars']);}</span></td>
<td style="width: 5px;"><img src="images/membercard5/biao-15.gif" width="5" height="17" alt="" /></td>
</tr>
</table>
<!--{/if}-->
<!--{if $post['customstatus']}--><span title="$post[author] {lang custom_status}">$post[customstatus]</span><!--{/if}-->
<!--{if $avatarshowpos == 3 && $post['avatarshow'] && $showavatars}-->
<span align="center">$post[avatarshow]</span><br />
<!--{elseif $post['avatar'] && $showavatars}-->
<table width="95%" cellspacing="0" cellpadding="0" style="table-layout: fixed; overflow: hidden; border: 0; margin-top: 5px;">
<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}-->
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (2) -->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
UID: $post['uid']<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang gender}:<!--{if $post['gender'] == 1}--> {lang male}<br /><!--{elseif $post['gender'] == 2}--> {lang female}<br /><!--{else}--> {lang secret}<br /><!--{/if}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang digest_posts}: <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--> 篇<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang credits}: $post[credits] 點<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang posts}: $post[posts] 篇<br />
<!--{if $discuz_uid}-->
<!--{loop $extcredits_thread $key $credit}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
$credit[title]: $post[$key] $credit[unit]<br /><!--{/loop}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang readperm}: $post[readaccess]<br />
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang regtime}: $post[regdate]<br />
<!--{if $post['field_'.$field['fieldid']] !=""}--><!--{loop $_DCACHE['fields_thread'] $field}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
$field[title]:
<!--{if $field['selective']}-->
$field['choices'][$post['field_'.$field['fieldid']]]
<!--{else}-->
$post['field_'.$field['fieldid']]
<!--{/if}-->
<!--{/loop}--><!--{/if}-->
<!--{if $post['location']}--><img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" />
{lang location}: $post[location]<br /><!--{/if}-->
<!--{if $vtonlinestatus && $post['authorid']}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" /> {lang online_status}: <b>{lang online}</b>
<!--{else}-->
<img src="images/membercard5/little.gif" width="12" height="12" style="border: 0" alt="" /> {lang online_status}: {lang offline}
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<img src="images/membercard5/biao-18.gif" width="130" height="1" style="border: 0" alt="" /><br />
<!--{else}-->
<!--{if !$post['authorid']}-->
<span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br /><span class="smalltxt">{lang unregistered}</span>
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<!--{if $forum['ismoderator']}--><span class="bold"><a href="viewpro.php?uid=$post[authorid]">{lang anonymous}</a></span><!--{else}--><span class="bold">{lang anonymous}</span><!--{/if}-->
<br />{lang member_anonymous}
<!--{else}-->
<span class="bold">$post[author]</span><br />
{lang member_deleted}
<!--{/if}-->
<br /><br /><br />
<!--{/if}-->
</div>
</td>
</tr>
</table>
</td>
<td style="width: 3px; background-image: url('images/membercard5/biao-11.gif');"><img src="images/membercard5/biao-11.gif" width="3" height="3" style="border: 0" alt="" /></td>
</tr>
</table>
</td>
</tr>
<tr><td><img src="images/membercard5/biao-12.gif" width="163" height="5" style="border: 0;" alt="" /></td></tr>
</table>
<!-- Linux0911 Forum at no-ip 2007 (c) All Rights Reserved. (3) -->
</div>
</td>