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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[美化] 帖中身份显示美化!for D4 (显示该用户被删除问题已解决)

[复制链接]
快乐飞仙 发表于 2006-1-11 00:41:47 | 显示全部楼层 |阅读模式
附件二楼已补上

看到“九天 (じ☆ve♂秋)”发过,好像不成功,所以发上来,效果一样
宠物,Q秀等有些功能要安装相应插件,自已自行加上,大小按个人意愿修改就行
游客发帖版面严重混乱问题解决更新!

一楼演示,二楼修改方法(简单)。

演示:http://go138.008.net

[ 本帖最后由 快乐飞仙 于 2006-10-28 07:06 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

 楼主| 快乐飞仙 发表于 2006-1-11 00:46:31 | 显示全部楼层
修改开始:

修改viewthread.htm

找到
  1. <input type="hidden" name="formhash" value="{FORMHASH}">
复制代码


下面加

  1. <script type="text/javascript" language="javascript">
  2. <!-- ==================[ 帖间个人信息美化 ]================== -->
  3. <!-- ==================[ 函数 现在为四层,则 ii<=4]================== -->
  4. function show1(num,sss) {
  5.         for (ii=1;ii<=4;ii++)
  6.         {
  7.         eval("d1"+sss+ii).style.display="none";
  8.         eval("bt1"+sss+ii).style.background = "url('images/public/i_bt_off.gif')";
  9.         }
  10.         eval("d1"+sss+num).style.display="";
  11.         eval("bt1"+sss+num).style.background = "url('images/public/i_bt_on.gif')";
  12. }
  13. <!-- ==================[ 帖间个人信息美化 ]================== -->
  14. </script>
复制代码


再找
  1. <td width="21%" align="center" valign="top" style="word-break: break-all">
复制代码


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


替换成


  1. <!--{if $post[medals]<>""}-->
  2. <!--{if $post['avatar']}-->
  3. $post[avatar]<!--{else}--><img src="images/avatars/nopic.gif" align="center">
  4. <!--{/if}-->
  5.        
  6. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  7. <tr><td background="images/public/kuan03.gif">
  8. <table cellSpacing=0 cellPadding=0 border=0>
  9.   <tr><td width=8></td>
  10. <td height=15 background="images/public/kuan04.gif">
  11. <span class="smalltxt"><IMG src="images/public/rb01.gif" width="1">
  12. <!--{if $post['username']}-->
  13. <span class="STYLE8">$post[authortitle]</span><!--{else}-->{lang member_deleted}<!--{/if}--><img src="./images/common/money$post[bankstatus].gif" border="0" align=absmiddle><!--{if $isadmin}-->alt="存款: $post[bank] 元{LF}瑞行: $post[bankmimi] 元"<!--{/if}-->
  14. </span></td>
  15. </tr></table></td></tr>  
  16. <tr><td background="images/public/kuan02.gif" align=middle >
  17. <table width="100%" border="0" cellspacing="0" cellpadding="3">
  18. <tr>
  19.   <td class="row1">{eval showstars($post['stars']);}</td>
  20.   <td class="row1">
  21. <!--{if $forum['ismoderator']}-->
  22.                 <!--{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}-->
  23.         <!--{/if}--></td>
  24. </tr>
  25. <tr>
  26.   <td colspan="2" align="center" class="row1">
  27. <!--{if $post['authorid'] && $post['username']}-->
  28.                 <a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold">$post[author]</a>
  29.                 <!--{if $post['nickname']}--> <span class="smalltxt"><span class="STYLE7">[</span>$post[nickname]<span class="STYLE7">]</span></span><!--{/if}--></td>
  30. </tr>
  31. </table></td></tr>
  32.   <tr><td><img height=4 src="images/public/kuan01.gif" width=100%></td>
  33.   </tr>
  34.   <TR><TD height=8>
  35. </TD>
  36. </TR>
  37. </table>

  38.   <TABLE height="175" cellSpacing="0" cellPadding="0" width="153" align="center" border="0">
  39. <TBODY>
  40. <TR>
  41. <TD height="3"></TD>
  42. <TD align="middle" width="138" background="images/public/i_bg.gif" colSpan="5" height="209" rowSpan="11">
  43. <DIV id="d1$post[number]1">
  44. <!--{if $avatarshowpos == 1}--><center>$post[avatarshow]</center><!--{/if}-->
  45. <!--{if $avatarshowpos == 2}--><center>$post[avatarshow]</center><!--{/if}-->
  46. <!--{if $avatarshowpos == 3}--><center>$post[avatarshow]</center><!--{/if}--></DIV>
  47. <DIV id="d1$post[number]2" style="DISPLAY: none">
  48. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  49. <IMG src="images/public/icon_1.gif" /> {lang uid}: $post[uid]</div>
  50. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  51. <IMG src="images/public/icon_2.gif" /> {lang digest_posts}: <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]">$post[digestposts]</a><!--{else}-->$post[digestposts]<!--{/if}--></div>
  52. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  53. <IMG src="images/public/icon_1.gif" /> {lang credits}: <font color="#9B21E8">$post[credits]</font></div>
  54. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  55. <IMG src="images/public/icon_2.gif" /> {lang posts}: <font color="#FD289B">$post[posts]</font></div>
  56. <!--{loop $extcredits_thread $key $credit}-->
  57. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  58. <IMG src="images/public/icon_1.gif" />  $credit[title]: $post[$key] $credit[unit]
  59. </div><!--{/loop}-->
  60. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  61. <IMG src="images/public/icon_2.gif" /> {lang readperm}: <font color="#5D8D12">$post[readaccess]</font></div>
  62. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  63. <IMG src="images/public/icon_1.gif" /> {lang regtime}: <font color="#6699CC">$post[regdate]</font></div>
  64. <!--{loop $_DCACHE['fields_thread'] $field}-->
  65. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  66. <IMG src="images/public/icon_2.gif" /> $field[title]
  67. <!--{if $field['selective']}-->
  68.         $field['choices'][$post['field_'.$field['fieldid']]]
  69.   <!--{else}-->
  70.         $post['field_'.$field['fieldid']]
  71. <!--{/if}-->
  72. </div><!--{/loop}-->
  73. <!--{if $post['location']}-->
  74. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  75. <IMG src="images/public/icon_1.gif" /> {lang location}: <font color="#990033">$post[location]</font></div><!--{/if}-->
  76. <div style="OVERFLOW: hidden;width:90%;TEXT-ALIGN: left">
  77. <IMG src="images/public/icon_2.gif" />
  78. <!--{if $vtonlinestatus && $post['authorid']}-->
  79. <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
  80. {lang online_status}: <img src="images/admincp/online.gif"><!--{else}-->
  81. {lang online_status}: <img src="images/admincp/offline.gif"><!--{/if}--><!--{/if}--></div>
  82. </DIV>
  83. <DIV id="d1$post[number]3" style="DISPLAY: none"><TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK:break-all" height="205" cellSpacing="0" cellPadding="2" width="138" align="center" border="0" valign="top">
  84. <TBODY>
  85. <TR vAlign="top">
  86. <TD align="center">
  87. <br /><br /><a href="" title="偶要领养宠物"><font color="#CC00FF">暂无此插件</font></a>
  88. </TD></TR></TBODY></TABLE></DIV>
  89. <DIV id="d1$post[number]4" style="DISPLAY: none">
  90. <TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK:break-all" height="205" cellSpacing="0" cellPadding="2" width="138" align="center" border="0" valign="top">
  91. <TBODY>
  92. <TR vAlign="top">
  93. <TD align="center">
  94. <br /><br /><a href="memcp.php?action=profile" title="填写QQ资料"><font color="#CC00FF">偶要登记QQ秀</font></a>
  95. </TD></TR></TBODY></TABLE></DIV></TD></TR>
  96. <TR>
  97. <TD id="bt1$post[number]1" style="CURSOR: hand" onClick="show1(1,$post[number])" align="middle" width="15" background="images/public/i_bt_on.gif" height="50"><font color="#CC00FF">天</font><BR />
  98.   <font color="#5CA408">下</font><BR />
  99.     <font color="#CC00FF">秀</font></TD></TR>
  100. <TR>
  101. <TD background="images/public/i_bt_none.gif" height="3"></TD></TR>
  102. <TR>
  103. <TD id="bt1$post[number]2" style="CURSOR: hand" onClick="show1(2,$post[number])" align="middle" background="images/public/i_bt_off.gif" height="50"><font color="#CC00FF">资</font><BR /><font color="#5CA408">※</font><BR /><font color="#CC00FF">料</font></TD></TR>
  104. <TR>
  105. <TD background="images/public/i_bt_none.gif" height="3"></TD></TR>
  106. <TR>
  107. <TD id="bt1$post[number]3" style="CURSOR: hand" onClick="show1(3,$post[number])" align="middle" background="images/public/i_bt_off.gif" height="50"><font color="#CC00FF">宠</font><BR /><font color="#5CA408">※</font><BR /><font color="#CC00FF">物</font></TD></TR>
  108. <TR>
  109. <TD background="images/public/i_bt_none.gif" height="3"></TD></TR>
  110. <TR>
  111. <TD id="bt1$post[number]4" style="CURSOR: hand" onClick="show1(4,$post[number])" align="middle" background="images/public/i_bt_off.gif" height="50"><font color="#5CA408">Q</font><BR /><font color="#5CA408">Q</font><BR /><font color="#CC00FF">秀</font></TD></TR>                          
  112. <TR>
  113. <TD height="3"></TD></TR></TBODY></TABLE>
  114. <!--{/if}-->

  115. <!--{if $post[medals]<>""}-->
  116. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  117. <TR><TD height=8></TD></TR>
  118. <tr><td background="images/public/kuan03.gif">
  119. <table cellSpacing=0 cellPadding=0 border=0>
  120.   <tr><td width=8></td>
  121. <td height=15 background="images/public/kuan04.gif">
  122. <span class="smalltxt">
  123. <!--{if $post[customstatus]}-->
  124. <IMG src="images/public/rb01.gif" width="5"><font color="#CC3399">$post[customstatus]</font><!--{/if}-->&nbsp;<font color=red>荣誉勋章</font></span></td>
  125. </tr></table></td></tr>  
  126. <tr><td background="images/public/kuan02.gif" align=middle >
  127. <table width="100%" border="0" cellspacing="0" cellpadding="3">
  128. <tr><td align="center" class="row1">
  129. <!--{if $post['medals']}-->
  130.         <!--{loop $post['medals'] $medal}-->
  131.                 <img src="images/common/$medal[image]" border="0" alt="$medal[name]">
  132.         <!--{/loop}-->
  133. <!--{/if}-->
  134. </td></tr></table></td></tr>
  135.   <tr><td><img height=4 src="images/public/kuan01.gif" width=100%></td>
  136.   </tr>
  137. <TR><TD height=8>
  138. </TD>
  139. </TR></table>
  140. <!--{/if}-->
  141.                
  142. <!--{if $post['alipay']}--><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}-->
  143.         <!--{else}-->
  144.                 <!--{if !$post['authorid']}-->
  145. <!--{if $forum['ismoderator']}-->
  146.                 <!--{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}-->
  147.         <!--{/if}--><br><br>
  148.                         <span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br>
  149.                         <span class="smalltxt">{lang unregistered}<br>
  150.                 <!--{else}-->
  151. <!--{if $forum['ismoderator']}-->
  152.                 <!--{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}-->
  153.         <!--{/if}--><br><br>
  154.                         <span class="bold">$post[author]</span><br>
  155.                         {lang member_deleted}
  156.                 <!--{/if}-->
  157.                          <br>
  158.         <!--{/if}-->
复制代码


修改完成!

将附件上传到images目录下

附件:

[ 本帖最后由 快乐飞仙 于 2006-1-13 15:25 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

shenstef 发表于 2006-1-11 00:50:03 | 显示全部楼层
支持一下 很PP的
回复

使用道具 举报

 楼主| 快乐飞仙 发表于 2006-1-11 01:00:03 | 显示全部楼层
哗!
楼上的真快,好在先留了沙发。
回复

使用道具 举报

szqyn 发表于 2006-1-11 01:06:30 | 显示全部楼层
漂亮
回复

使用道具 举报

PHP论坛 发表于 2006-1-11 01:17:59 | 显示全部楼层
回复

使用道具 举报

netscope 发表于 2006-1-11 01:19:40 | 显示全部楼层
可以自己修改~
回复

使用道具 举报

烤烟者 发表于 2006-1-11 01:19:58 | 显示全部楼层
一般 !
回复

使用道具 举报

karl907 发表于 2006-1-11 01:53:23 | 显示全部楼层
支持
回复

使用道具 举报

qtwrk 发表于 2006-1-11 02:25:39 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-6 06:08 , Processed in 0.128574 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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