Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[美化] 用户信息美化 For 5.0 (9月14日更新)

[复制链接]
eaF1BEAM 发表于 2006-7-30 14:52:01 | 显示全部楼层 |阅读模式
演示地址:http://bbs.knat.com.cn/viewthread.php?tid=11870&extra=page%3D1

修正图片无法显示与边框不正常问题

重要提示:修改代码请正确修改,要仔细,不能有马虎,一个空格也不能放过。

关于有人说在线不正确的问题,这个很有可能是服务器缓存的设置造成的。

修改方法
1.修改viewthread.htm

  1. <!--{if $post['nickname']}--> <span class="smalltxt">($post[nickname])</span><!--{/if}-->
  2.                 <br><div class="smalltxt">
  3.                 $post[authortitle]
  4.                 <br>{eval showstars($post['stars']);}<br><!--{if $post['customstatus']}-->$post[customstatus]<br><!--{/if}--><br>
  5.                 <!--{if $avatarshowpos == 3 && $post['avatarshow'] && $showavatars}-->
  6.                         <center>$post[avatarshow]</center><br>
  7.                 <!--{elseif $post['avatar'] && $showavatars}-->
  8.                         <table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed; overflow: hidden">
  9.                         <tr><td align="center">$post[avatar]</td></tr></table><br>
  10.                 <!--{else}-->
  11.                         <br><br>
  12.                 <!--{/if}-->
  13.                 <!--{if $post['medals']}-->
  14.                         <!--{loop $post['medals'] $medal}-->
  15.                                 <img src="images/common/$medal[image]" border="0" alt="$medal[name]" /> &nbsp;
  16.                         <!--{/loop}-->
  17.                         <br>
  18.                 <!--{/if}-->
  19.                 {lang uid} $post[uid]<br>
  20.                 {lang digest_posts} <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--><br>
  21.                 {lang credits} $post[credits]<br>
  22.                 {lang posts} $post[posts]<br>
  23.                 <!--{loop $extcredits_thread $key $credit}-->
  24.                         $credit[title] $post[$key] $credit[unit]<br>
  25.                 <!--{/loop}-->
  26.                 {lang readperm} $post[readaccess]<br>
  27.                 {lang regtime} $post[regdate]
  28.                 <!--{loop $_DCACHE['fields_thread'] $field}-->
  29.                         <br>$field[title]
  30.                         <!--{if $field['selective']}-->
  31.                                 $field['choices'][$post['field_'.$field['fieldid']]]
  32.                         <!--{else}-->
  33.                                 $post['field_'.$field['fieldid']]
  34.                         <!--{/if}-->
  35.                 <!--{/loop}-->
  36.                 <!--{if $post['location']}--><br>{lang location} $post[location]<!--{/if}--><br>
  37.                 <!--{if $vtonlinestatus && $post['authorid']}-->
  38.                         <!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
  39.                                 {lang online_status} <b>{lang online}</b>
  40.                         <!--{else}-->
  41.                                 {lang online_status} {lang offline}
  42.                         <!--{/if}-->
  43.                 <!--{/if}-->
  44.                 <!--{if $avatarshowpos == 2 && $showavatars}--><br><br><center>$post[avatarshow]</center><!--{/if}-->
  45.                 </div>
  46.                 <!--{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}-->
  47.         <!--{else}-->
  48.                 <!--{if !$post['authorid']}-->
  49.                         <span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br><span class="smalltxt">{lang unregistered}
  50.                 <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
  51.                         <span class="bold">
  52.                         <!--{if $forum['ismoderator']}--><a href="viewpro.php?uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
  53.                         </span><br>{lang member_anonymous}
  54.                 <!--{else}-->
  55.                         <span class="bold">$post[author]</span><br>
  56.                         {lang member_deleted}
  57.                 <!--{/if}-->
  58.                 <br><br><br><br><br><br><br><br><br><br>
  59.         <!--{/if}-->
  60.         </td>
复制代码


修改为

  1. <!--{if $post['nickname']}--> <span class="smalltxt">($post[nickname])</span><!--{/if}-->
  2.                 <br><div class="smalltxt">
  3.                 {eval showstars($post['stars']);}<br><!--{if $post['customstatus']}-->$post[customstatus]<br><!--{/if}--><br>
  4.                 <!--{if $avatarshowpos == 3 && $post['avatarshow'] && $showavatars}-->
  5.                         <center>$post[avatarshow]</center><br>
  6.                 <!--{elseif $post['avatar'] && $showavatars}-->
  7.                         <table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed">
  8.                         <tr><td align="center">$post[avatar]</td></tr></table><br>
  9.                 <!--{else}-->
  10.                         <br><br>
  11.                 <!--{/if}-->
  12. <table width="155" border="0" align="center" cellpadding="0" cellspacing="0">
  13. <tr><td background="{IMGDIR}/pic/kuan03.gif">
  14. <table cellSpacing=0 cellPadding=0 border=0>
  15. <tr><td width=8></td>
  16. <td background="{IMGDIR}/pic/kuan04.gif"><span class=smalltxt><IMG src="{IMGDIR}/pic/rb01.gif" width=1>
  17. $post[authortitle]&nbsp;
  18. <!--{if $credits < 100}--><IMG src="{IMGDIR}/pic/money0.gif" align=absMiddle border=0>
  19. <!--{else}-->
  20. <IMG src="{IMGDIR}/pic/money1.gif" align=absMiddle border=0>
  21. <!--{/if}-->
  22. </span></td></tr></table></td></tr>
  23. <tr>
  24. <td background="{IMGDIR}/pic/kuan02.gif" bgColor="#f8f8f8" align="middle">
  25. <table cellSpacing="0" cellPadding="0" border="0" width="85%" align="center">
  26. <tr><td colspan="2">
  27. <img src="{IMGDIR}/pic/icon_1.gif" border="0"> &nbsp;{lang uid}: $post[uid] <br>
  28. <img src="{IMGDIR}/pic/icon_2.gif" border="0"> {lang digest_posts}: <font color="#9B21E8"><!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--></font><br>
  29. <img src="{IMGDIR}/pic/icon_1.gif" border="0"> {lang credits}: <font color="#FD289B">$post[credits]</font><br>
  30. <img src="{IMGDIR}/pic/icon_2.gif" border="0"> {lang posts}: <font color="#33CC33">$post[posts]</font><br>
  31. <!--{loop $extcredits_thread $key $credit}--><img src="{IMGDIR}/pic/icon_1.gif" border="0"> $credit[title]: <font color="red">
  32. $post[$key] $credit[unit]</font><br><!--{/loop}-->
  33. <img src="{IMGDIR}/pic/icon_2.gif" border="0"> {lang readperm}: <font color="#5D8D12">$post[readaccess]</font><br>
  34. <img src="{IMGDIR}/pic/icon_1.gif" border="0"> {lang regtime}: <font color="#CC3333">$post[regdate]</font>

  35. <!--{loop $_DCACHE['fields_thread'] $field}-->
  36.                         <br><img src="{IMGDIR}/pic/icon_2.gif" border="0"> $field[title]: <font color="#6699CC"></font>
  37.                         <!--{if $field['selective']}-->
  38.                                 $field['choices'][$post['field_'.$field['fieldid']]]
  39.                         <!--{else}-->
  40.                                 $post['field_'.$field['fieldid']]
  41.                         <!--{/if}-->
  42.                 <!--{/loop}-->

  43. <!--{if $post['location']}--><br>
  44. <img src="{IMGDIR}/pic/icon_1.gif" border="0"> {lang location}: <font color="#990033">$post[location]</font><!--{/if}-->

  45. <!--{if $vtonlinestatus && $post['authorid']}-->
  46. <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}--><br>
  47. <img src="{IMGDIR}/pic/icon_2.gif" border="0"> {lang online_status}: <img src="{IMGDIR}/pic/on.gif">
  48. <!--{else}--><br>
  49. <img src="{IMGDIR}/pic/icon_2.gif" border="0"> {lang online_status}: <img src="{IMGDIR}/pic/off.gif">
  50. <!--{/if}--><!--{/if}-->

  51. </td></tr></table></td></tr><tr><td><IMG height="4" src="{IMGDIR}/pic/kuan01.gif" width="155"></td></tr><TR><TD height=5>
  52. </TD></TR></table>

  53. <!--{if $post['medals']}-->
  54. <table width="155" border="0" align="center" cellpadding="0" cellspacing="0">
  55. <tr><td background="{IMGDIR}/pic/kuan03.gif">
  56. <table cellSpacing=0 cellPadding=0 border=0><tr><td width=8></td>
  57. <td background="{IMGDIR}/pic/kuan04.gif" height=15>
  58. <font color=red>荣誉勋章</font></td></tr></table></td></tr>
  59. <tr><td background="{IMGDIR}/pic/kuan02.gif" bgColor=#f8f8f8 align=middle >
  60. <table cellSpacing="0" cellPadding="0" border="0" width="85%" align="center">
  61. <tr><td bgColor=#f8f8f8 align="center">
  62. <!--{loop $post['medals'] $medal}-->
  63. <img src="images/common/$medal[image]" border="0" alt="$medal[name]">
  64. <!--{/loop}-->
  65. </td></tr></table></td></tr>
  66.   <tr><td><IMG height=4 src="{IMGDIR}/pic/kuan01.gif" width=155></td></tr>
  67. <TR><TD height=10>
  68. </TD></TR></table>
  69.                 <!--{/if}-->

  70. <!--{if $avatarshowpos == 2}--><center>$post[avatarshow]</center><!--{/if}-->

  71. <!--{else}-->
  72. <!--{if $allowviewip && $forum['ismoderator']}--><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}-->
  73.                 <!--{if !$post['authorid']}-->
  74.                         <span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br><span class="smalltxt">{lang unregistered}
  75.                 <!--{else}-->
  76.                         <span class="bold">$post[author]</span><br>
  77.                         {lang member_deleted}
  78.                 <!--{/if}-->
  79.                 <br><br><br><br><br>
  80.         <!--{/if}-->

  81. <!--{if $post['alipay']}--><CENTER><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></CENTER><!--{/if}-->
复制代码


2.上传附件pic文件夹到images/模板图片下!

[ 本帖最后由 eaF1BEAM 于 2006-11-15 10:25 编辑 ]

评分

1

查看全部评分

173cn 发表于 2006-7-30 14:52:37 | 显示全部楼层
沙发
回复

使用道具 举报

无敌小哈皮 发表于 2006-7-30 15:12:26 | 显示全部楼层
板凳
不错,我喜欢
回复

使用道具 举报

紫菜卷 发表于 2006-7-30 15:57:50 | 显示全部楼层
安了。
回复

使用道具 举报

266690 发表于 2006-7-30 16:28:44 | 显示全部楼层
SO SO。。。。
回复

使用道具 举报

WeDone 发表于 2006-7-30 17:12:27 | 显示全部楼层
这个不错,谢谢提供
回复

使用道具 举报

jnow 发表于 2006-7-31 10:27:08 | 显示全部楼层
先回,再用
回复

使用道具 举报

开心一生 发表于 2006-7-31 11:28:51 | 显示全部楼层
看过很多次了
回复

使用道具 举报

HY清风 发表于 2006-7-31 14:43:57 | 显示全部楼层
还好啊!
回复

使用道具 举报

cjdave 发表于 2006-7-31 16:17:59 | 显示全部楼层
可是在线状态不对了:(
http://bbs.egook.cn
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-25 10:26 , Processed in 0.115813 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表