修改代码,急,会的或者高手请教帮下忙,谢谢
谁可以帮我修改下,因为我之前修改过viewthtead.htm文件,
现在是:
<!--{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 $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}-->
家族 $post[famname]<br>
{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 $post[mypet]}-->
<table width="155" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>
<fieldset style='width:155px'>
<legend><font color=red>宠物信息</font></legend>
<div align="center">宠物名: <a href="pet.php?index=viewpet&username=$post[author]">$post[mypet]</a><br>
<script language="JavaScript">
var i=0;
function draw(obj,s){
if(obj.style.display=='none'){
obj.style.display='block';
s.innerHTML='[<font color=red>隐藏宠物资料</font>]';
}else{
obj.style.display='none';
s.innerHTML='[<font color=blue>显示宠物资料</font>]';
}
}
</script>
<span style=cursor:hand onclick=draw(none$post[number],block$post[number]) id=block$post[number] title="显示/隐藏 宠物资料">[<font color=blue>显示宠物资料</font>]</span>
</div><br>
<div id=none$post[number] style=display:none>
<div align="center">$post[petpic2]</div>
宠物状态: $post[petdead] $post[shit]<br>
级别: $post[mypetjob] 转/ $post[petshowlevel] 级<br>
HP: $post[mypethp] / $post[petmaxhp]<br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_left.gif' width=3></TD>
<TD width=114 background= "images/pet/rpg/img_backing.gif" height=13><img src='images/pet/rpg/orange.gif' width=' $post[hpf]%' height='9'><img src=' images/pet/rpg/hp.gif' height='9'></td>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_right.gif' width=3></TD>
</tr>
</table>
MP: $post[mypetmp] / $post[petmaxmp]<br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_left.gif' width=3></TD>
<TD width=114 background="images/pet/rpg/img_backing.gif" height=13><img src='images/pet/rpg/blue.gif' width=' $post[mpf]%' height='9'><img src='images/pet/rpg/exp.gif' height='9'></td>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_right.gif' width=3></TD>
</tr>
</table>
SP: $post[mypetsp] / 5000<br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_left.gif' width=3></TD>
<TD width=114 background="images/pet/rpg/img_backing.gif" height=13><img src=' images/pet/rpg/green.gif' width='$post[spf]%' height='9'><img src='images/pet/rpg/mp.gif' height='9'></td>
<TD width=3 height=13><IMG height=13 src=' images/pet/rpg/img_right.gif' width=3></TD>
</tr>
</table>
EXP: $post[epf]% [ $post[mypetexp] ]<br>
<table width='120' border='0' cellspacing='0' cellpadding='0' bordercolor='#000000'>
<tr>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_left.gif' alt= $post[mypetexp] width=3></TD>
<TD width=114 background="images/pet/rpg/img_backing.gif" height=13><img src='images/pet/rpg/blue.gif' width='$post[epf]%' alt= $post[mypetexp] height='9'><img src=' images/pet/rpg/exp.gif' alt= $post[mypetexp] height='9'></td>
<TD width=3 height=13><IMG height=13 src='images/pet/rpg/img_right.gif' alt= $post[mypetexp] width=3></TD>
</tr>
</table>
</div>
</fieldset>
</td></tr>
</table>
<!--{/if}-->
</div>
<!--{if $post['alipay']}--><br><a href="https://www.alipay.com/paytopost[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="space.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}-->
开头和结尾都和楼主发的代码一样的,只是中间我加了显示宠物信息那段代码,
我不会改,我怕一改就完蛋,
所以会的帮忙改下,显示方式:经验,魔法,生命在上面,宠物信息在下面,谢谢. |
|