名稱:作者欄位
美化 ( 2 種)
適用版本:
Discuz! 6.0.0
作者:
Linux0911
說明:兩種如展示圖所示,其中一種是仿 AL8
Forum 的,兩種美化任你切換。
模板全部採用 Div + CSS 編寫, 加快執行速度
本人技術不佳, 如有不完善之處請見諒~
轉載請註明來源:http://linux0911.no-ip.info/Discuz/
最後更新: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}-->替換為
(1)
複製內容到剪貼簿
代碼:
{template membercard6}或
(2)
複製內容到剪貼簿
代碼:
{template imgauthor}按結構上傳檔案即可