本人是改的︺じ☆ve 的,呵呵,希望同意哈,不同意PM我,我关了!我第一次发哦!
个人信息美化FOR5.0.0!(加宽,收缩版)BY冰:https://discuz.dismall.com/thread-389485-1-1.html
主要是把昵称改到下面了,把主题和回复分开,把失踪天数弄起了,支持"该用户已被删除"的显示.
本来想把家族,婚姻集合了的,可是又考虑到有的朋友没有安,又没集合了,要的朋友可以PM我..
修正了 用户栏目定制 问题 谢谢taro0401提出
下面献丑了,第一次哦!
第一步:打开 viewthread.php 找
$post['regdate'] = gmdate($dateformat, $post['regdate'] + $timeoffset * 3600);
上面加
$post['missday'] = intval(($timestamp-$post['lastactivity'])/(3600*24));
查找
$postlist[$post['pid']] = $post;
上面加
//---------------------------------
$topicquery = $db->query("SELECT tid FROM {$tablepre}threads WHERE author='$post[author]'");
$post[topicallnum] = $db->num_rows($topicquery);
$post[posts] = $post[posts] - $post[topicallnum];
$post[alls] = $post[posts] + $post[topicallnum];
//---------------------------------
打开:viewthread.htm 找
<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>
改为
<!--馨园-美化开始-->
<td width="175" valign="top" class="row2" style="word-break: break-all">
<table width="163" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td><img src="images/common/biao-9.gif" width="163" height="5"></td>
</tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3" background="images/common/biao-10.gif"><img src="images/common/biao-10.gif" width="3" height="5"></td>
<td valign="top" background="images/common/biao-bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td valign="top"><a name="pid$post[pid]"></a>
<!--{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']}-->
<span class="bold""><!--{if $post['gender'] == 1}-->
<a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold"><font style='filter: glow(color=#00B02D,strength=3); height:10px; padding:2px' color=#FFFFC8 face=Comic Sans MS><span class="bold">$post[author]</span></font></a>
<!--{elseif $post['gender'] != 0}-->
<a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold"><font style='filter: glow(color=deeppink,strength=3); height:10px; padding:2px' color=white face=Comic Sans MS><span class="bold">$post[author]</span></font></a>
<!--{else}-->
<a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold"><font style='filter: glow(color=blue,strength=3); height:10px; padding:2px' color=#FFFFC8 face=Comic Sans MS><span class="bold">$post[author]</span></font></a>
<!--{/if}--></span>
<table width="148" border="0" align="center" cellpadding="0" cellspacing="0" class="smalltxt">
<b>$post[authortitle]</b>
<tr><td width="5"><img src="images/common/biao-13.gif" width="5" height="17"></td><td background="images/common/biao-14.gif">
{eval showstars($post['stars']);}
</td><td width="5"><img src="images/common/biao-15.gif" width="5" height="17"></td></tr></table>
<!--{if $post['customstatus']}-->$post[customstatus]<!--{/if}-->
<!--{if $post['nickname']}-->
<br><font style='filter: glow(color=#FF9900,strength=3); height:10px; padding:2px' color=#FFFFC8 face=Comic Sans MS><span class="smalltxt">$post[nickname]</span></font></br>
<!--{/if}--><br>
<!--{if $avatarshowpos == 3 && $post['avatarshow']}-->
<center>$post[avatarshow]</center><br>
<!--{elseif $post['avatar']}-->
<table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed">
<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}-->
<img src="images/common/little.gif" width="12" height="12">
{lang uid} $post[uid]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
{lang digest_posts} <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--><br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
{lang credits} $post[credits]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
{lang posts} $post[alls]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
主题 $post[topicallnum]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
回复 $post[posts]<br>
<!--{loop $extcredits_thread $key $credit}-->
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
$credit[title] $post[$key] $credit[unit]<br>
<!--{/loop}-->
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
{lang readperm} $post[readaccess]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<img src="images/common/little.gif" width="12" height="12">
{lang regtime} $post[regdate]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<!--{loop $_DCACHE['fields_thread'] $field}-->
<img src="images/common/little.gif" width="12" height="12">
$field[title]
<!--{if $field['selective']}-->
$field['choices'][$post['field_'.$field['fieldid']]]
<!--{else}-->
$post['field_'.$field['fieldid']]
<!--{/if}--><br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<!--{/loop}-->
<!--{if $post['location']}-->
<img src="images/common/little.gif" width="12" height="12">
{lang location} $post[location]<br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<!--{/if}-->
<img src="images/common/little.gif" width="12" height="12">
失踪 <span class="element_invisible">$post[missday] 天</span><br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<!--{if $vtonlinestatus && $post['authorid']}-->
<!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}--><img src="images/common/little.gif" width="12" height="12">
{lang online_status}<IMG SRC=images/common/online.gif alt={lang online} align=absmiddle><br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<!--{else}--><img src="images/common/little.gif" width="12" height="12">
{lang online_status} <IMG SRC=images/common/offline.gif alt={lang offline} align=absmiddle> <br>
<img src="images/common/biao-18.gif" width="130" height="1"><br>
<!--{/if}-->
<!--{/if}-->
<!--{if $avatarshowpos == 2}--><center>$post[avatarshow]</center><!--{/if}-->
<!--{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></tr></table></td>
<td width="3" background="images/common/biao-11.gif"><img src="images/common/biao-11.gif" width="3" height="3"></td></tr></table></td></tr><tr><td><img src="images/common/biao-12.gif" width="163" height="5"></td></tr></table></td>
<!--馨园-美化结束-->
[ 本帖最后由 X-Ice 于 2006-9-3 18:27 编辑 ] |