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

 找回密码
 立即注册
搜索

[分享]个人信息美化(1.12更新)

[复制链接]
fengxue 发表于 2005-1-11 03:03:09 | 显示全部楼层 |阅读模式
说明:
1 不是自己设计的 仅仅是拿来用而已
2 for 2.5  (2.0的用户请自己参考变量是否有变化)
3 自己修改的 接近于标准板 如果你添加了新的变量 请自己<tr><td>进去
4 抛砖引玉 大家根据框架自己修改适合自己坛子的
5 压缩包里的图片传入images/default/目录下 如果你使用其他目录 请注意下面图片的相对路径
6 请备份好自己的viewthread.htm模板
7 如果大家发现错误 麻烦帮忙指出 感激不尽
8 请注意帖子下面更新时间是否有变化 可能后面会修正一些问题
9 感谢Tea 提出意见
==================================
更新 05.1.12
加入光晕(原2.0作者17STAR)
打开:viewthread.php
找到:
  1. $post_user_info_sql = 'm.username, m.gender, m.groupid, m.regdate, m.lastactivity, m.postnum, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.avatarwidth, m.avatarheight, m.signature, m.customstatus, m.showemail';
复制代码


替换成下面的代码:

  1. //增加m.adminid字段显示
  2. $post_user_info_sql = 'm.username, m.gender, m.groupid, m.regdate, m.lastactivity, m.postnum, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.avatarwidth, m.avatarheight, m.signature, m.customstatus, m.showemail, m.adminid';
复制代码


编辑模板 - viewthread.htm
找到:
  1. <span class="bold">$post[author]</span>
复制代码


替换成:
//$post['adminid']=1管理员 2超斑 依次类推
//glow(color=光晕颜色设置,strength=光晕大小设置); height:10px; color:字体颜色设置;
  1. <!--{if $post['adminid'] == 1 }-->
  2. <span class="bold"><font style="filter: glow(color=#6633CC,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  3. <!--{elseif $post['adminid'] == 2}-->
  4. <span class="bold"><font style="filter: glow(color=#0066FF,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  5. <!--{elseif $post['adminid'] == 3}-->
  6. <span class="bold"><font style="filter: glow(color=#FF6633,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  7. <!--{else}-->
  8. <span class="bold"><font style="filter: glow(color=#002C57,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  9. <!--{/if}-->
复制代码





==================================
更新 05.1.11
下面的代码可以增添一个自定义头衔~~
  1. <!--{if $post[customstatus]}-->
  2. <tr>
  3. <td><img src="{IMGDIR}/point.gif">&nbsp;自定义头衔: $post[customstatus]<br><img src="images/default/biao-18.gif" width="144" height="1"></td>
  4. </tr>
  5. <!--{/if}-->
复制代码


来自部分显示有问题 更新代码如下

  1. <br><!--{if $post['location']}--><tr>
  2. <td><img src="{IMGDIR}/point.gif">&nbsp;{lang location}: $post[location]<br><img src="images/default/biao-18.gif" width="144" height="1"></td><!--{/if}-->
复制代码


=================================

正式修改代码 (上述问题已经更新过)

打开后台 修改viewthread.htm模板
找到
  1.         <!--{eval $postpid=$post[pid]}-->
  2.         $post[newpostanchor]
  3.         <tr bgcolor="$post[thisbg]">
复制代码


找到
  1. <td width="79%" height="100%" valign="top">
复制代码


注释或者删除掉上面2句之间所有的代码

然后替换成下面的代码即可

  1. <td valign="top" width="21%">
  2. <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  3. <tr><td><img src="images/default/biao-9.gif" width="100%" height="5"></td></tr>
  4. <tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  5. <tr><td width="3" background="images/default/biao-10.gif"><img src="images/default/biao-10.gif" width="3" height="5"></td>
  6. <td valign="top" background="images/default/biao-bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="3">
  7. <tr><td valign="top"><a name="pid$post[pid]"></a>
  8. <table width="100%" border=0 cellspacing="0" cellpadding="0" style="table-layout: fixed">
  9. <tr><td>        <!--{if $post['authorid']}-->
  10.                 <!--{if $post['adminid'] == 1 }-->
  11. <span class="bold"><font style="filter: glow(color=#6633CC,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  12. <!--{elseif $post['adminid'] == 2}-->
  13. <span class="bold"><font style="filter: glow(color=#0066FF,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  14. <!--{elseif $post['adminid'] == 3}-->
  15. <span class="bold"><font style="filter: glow(color=#FF6633,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  16. <!--{else}-->
  17. <span class="bold"><font style="filter: glow(color=#002C57,strength=3); height:10px; color:white; padding:1px">$post[author]</font></span>
  18. <!--{/if}--><br><span class="smalltxt">
  19.                 <!--{if $post['username']}-->用户组:$post[authortitle]<!--{else}-->{lang member_deleted}<!--{/if}-->
  20.         <!--{else}-->
  21.                 <span class="bold">{lang guest}</span> <span class="smalltxt">$post[useip]</span><br><span class="smalltxt">{lang unregistered}
  22.         <!--{/if}--></td>
  23. <td align=right width=55><!--{if $ismoderator && $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}--></td></tr>
  24. <tr><td colspan=2>
  25. <table width=100% border=0 cellpadding=0 cellspacing=0>
  26. <tr><td></td>
  27. </tr>
  28. </table></td></tr></table>
  29. <table width="165" border="0" align="center" cellpadding="0" cellspacing="0">
  30. <tr>
  31. <td width="5"><img src="images/default/biao-13.gif" width="5" height="17"></td>
  32. <td background="images/default/biao-14.gif" valign=middle>{eval showstars($post['stars']);}</td>
  33. <td width="5"><img src="images/default/biao-15.gif" width="5" height="17"></td>
  34. </tr>
  35. </table><br>
  36. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
  37. <tr>
  38. <td align="center">
  39. <!--{if $post['avatar']}-->
  40. $post[avatar]<br>
  41.         <!--{else}-->
  42.                 <br><br>
  43.         <!--{/if}--></td>
  44. </tr>
  45. </table>
  46. <table border=0 width=100% cellpadding=0 cellspacing=0>
  47. <!--{if $post[customstatus]}-->
  48. <tr>
  49. <td><img src="{IMGDIR}/point.gif">&nbsp;职位: $post[customstatus]<br><img src="images/default/biao-18.gif" width="144" height="1"></td>
  50. </tr>
  51. <!--{/if}-->
  52. <tr>
  53. <td><img src="{IMGDIR}/point.gif">&nbsp;{lang credit_title}: $post[credit]&nbsp;枚<br><img src="images/default/biao-18.gif" width="144" height="1"></td>
  54. </tr>
  55. <tr>
  56. <td><img src="{IMGDIR}/point.gif">&nbsp;{lang postnum}: $post[postnum]&nbsp;篇<br><img src="images/default/biao-18.gif" width="144" height="1"></td>
  57. </tr>
  58. <tr>
  59. <td><img src="{IMGDIR}/point.gif">&nbsp;{lang regtime}: $post[regdate]<br><img src="images/default/biao-18.gif" width="144" height="1"></td>
  60. </tr>
  61. <br><!--{if $post['location']}--><tr>
  62. <td><img src="{IMGDIR}/point.gif">&nbsp;{lang location}: $post[location]<br><img src="images/default/biao-18.gif" width="144" height="1"></td><!--{/if}-->
  63. <tr>
  64. <td><img src="{IMGDIR}/point.gif"><!--{if $vtonlinestatus && $post['authorid']}-->
  65.                 <!--{if $timestamp - $post['lastactivity'] <= 10800}-->
  66.                         {lang online_status}: <b>{lang online}</b>
  67.                 <!--{else}-->
  68.                         {lang online_status}: {lang offline}
  69.                 <!--{/if}-->
  70.         <!--{/if}--><img src="images/default/biao-18.gif" width="144" height="1"></td>
  71. </tr>
  72. </table></td></tr>
  73. </table></td>
  74. <td width="3" background="images/default/biao-11.gif"><img src="images/default/biao-11.gif" width="3" height="3"></td>
  75. </tr></table>
  76. </td></tr>
  77. <tr><td><img src="images/default/biao-12.gif" width="100%" height="5"></td></tr>
  78. </table>        </td>
复制代码

[ Last edited by fengxue on 2005-1-12 at 23:00 ]
1_Ch2scTj3Y2uu.jpg

pic.rar

1.92 KB, 下载次数: 474

评分

1

查看全部评分

回复

使用道具 举报

222222 发表于 2005-1-11 03:09:53 | 显示全部楼层
不错哦...
回复

使用道具 举报

iall4u 发表于 2005-1-11 09:55:59 | 显示全部楼层
挺漂亮地
回复

使用道具 举报

Tea 发表于 2005-1-11 14:06:40 | 显示全部楼层
good~加個分~
回复

使用道具 举报

single 发表于 2005-1-11 15:23:30 | 显示全部楼层
非常好的东西,谢谢了,我借了用用
回复

使用道具 举报

QQ 发表于 2005-1-11 17:51:56 | 显示全部楼层
收藏....
回复

使用道具 举报

 楼主| fengxue 发表于 2005-1-11 22:15:10 | 显示全部楼层
Originally posted by Tea at 2005-1-11 14:06
good~加個分~

献丑了~哈哈 我弄了1H多~~~郁闷~~
回复

使用道具 举报

pinae 发表于 2005-1-11 23:21:27 | 显示全部楼层
还不错,支持
回复

使用道具 举报

 楼主| fengxue 发表于 2005-1-12 23:00:58 | 显示全部楼层
顶一下 更新了 有错误请指出~~谢谢
回复

使用道具 举报

shjam 发表于 2005-1-27 16:16:53 | 显示全部楼层
蛮不错的
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-10-13 03:43 , Processed in 0.128354 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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