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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[美化] [for D4.0]左侧个人资料[加入ID荧光颜色头像颜色边框及性别显示][12.17/23:30更新]

[复制链接]
whitegerry 发表于 2005-12-17 19:58:14 | 显示全部楼层 |阅读模式
美化见图示





详情见本论坛演示:http://xxhome.lyzzz.net/forum/viewthread.php?tid=111348


本修改把管理员查看ip图标移动到其他位置了,比如移到评分或者楼层那里。而此位置由性别图标替换,未填性别的将不显示性别图标,性别图标可在论坛帖子页保存。

***************************************************************

12.17日23:30以前的请作如下修改

查找
  1. <!--{if $post['gender'] == 1}-->
  2. <!--{if $timestamp - $post['lastactivity'] <= 1200}-->
  3. <img src="{IMGDIR}/Male.gif" width="21" height="19" align=right border="0" alt="帅哥哟,在线,有人找我吗?">
  4. <!--{else}-->
  5. <img src="{IMGDIR}/ofMale.gif" width="21" height="19" align=right border="0" alt="帅哥哟,离线,有人找我吗?">
  6. <!--{/if}-->
  7. <!--{elseif $post['gender'] != 0}-->
  8. <!--{if $timestamp - $post['lastactivity'] <= 1200}-->
  9. <img src="{IMGDIR}/feMale.gif" width="21" height="19" align=right border="0" alt="美女呀,在线,快来找我吧!">
  10. <!--{else}-->
  11. <img src="{IMGDIR}/offeMale.gif" width="21" height="19" align=right border="0" alt="美女呀,离线,快来找我吧!">
  12. <!--{/if}-->
  13. <!--{/if}-->
复制代码


修改为
  1. <!--{if $post['gender'] == 1}-->
  2. <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
  3. <img src="{IMGDIR}/Male.gif" width="21" height="19" align=right border="0" alt="帅哥哟,在线,有人找我吗?">
  4. <!--{else}-->
  5. <img src="{IMGDIR}/ofMale.gif" width="21" height="19" align=right border="0" alt="帅哥哟,离线,有人找我吗?">
  6. <!--{/if}-->
  7. <!--{elseif $post['gender'] != 0}-->
  8. <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
  9. <img src="{IMGDIR}/feMale.gif" width="21" height="19" align=right border="0" alt="美女呀,在线,快来找我吧!">
  10. <!--{else}-->
  11. <img src="{IMGDIR}/offeMale.gif" width="21" height="19" align=right border="0" alt="美女呀,离线,快来找我吧!">
  12. <!--{/if}-->
  13. <!--{/if}-->
复制代码


***************************************************************



具体修改过程

打开viewthread.htm,

1.增加性别图标显示


查找
  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}-->
复制代码

后面添加
  1. <!--{if $post['gender'] == 1}-->
  2. <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
  3. <img src="{IMGDIR}/Male.gif" width="21" height="19" align=right border="0" alt="帅哥哟,在线,有人找我吗?">
  4. <!--{else}-->
  5. <img src="{IMGDIR}/ofMale.gif" width="21" height="19" align=right border="0" alt="帅哥哟,离线,有人找我吗?">
  6. <!--{/if}-->
  7. <!--{elseif $post['gender'] != 0}-->
  8. <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
  9. <img src="{IMGDIR}/feMale.gif" width="21" height="19" align=right border="0" alt="美女呀,在线,快来找我吧!">
  10. <!--{else}-->
  11. <img src="{IMGDIR}/offeMale.gif" width="21" height="19" align=right border="0" alt="美女呀,离线,快来找我吧!">
  12. <!--{/if}-->
  13. <!--{/if}-->
复制代码




2.给ID加上性别颜色

查找
  1. <a href="viewpro.php?uid=$post[authorid]" target="_blank" class="bold">$post[author]</a>
复制代码

替换为
  1. <!--{if $post['gender'] == 1}-->
  2.                 <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>
  3.                 <!--{elseif $post['gender'] != 0}-->
  4.                 <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>
  5.                 <!--{else}-->
  6.                 <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>
  7.      <!--{/if}-->
复制代码


3.给头像加颜色边框

查找
  1. <table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed">
  2.                         <tr><td align="center">$post[avatar]</td></tr></table>
复制代码

替换为
  1. <table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed">
  2.                         <tr><td align="center">
  3.                         <!--{if $post['gender'] == 1}-->
  4.                 <font style='filter: glow(color=green,strength=2); height:20px; padding:2px' color=#FFFFC8 face=Comic Sans MS><span class="bold">$post[avatar]</font>
  5.                         <!--{elseif $post['gender'] != 0}-->
  6.                 <font style='filter: glow(color=deeppink,strength=2); height:20px; padding:2px' color=white face=Comic Sans MS><span class="bold">$post[avatar]</font>
  7.                 <!--{else}-->
  8.                 <font style='filter: glow(color=blue,strength=2); height:20px; padding:2px' color=#FFFFC8 face=Comic Sans MS><span class="bold">$post[avatar]</font>
  9.                 <!--{/if}-->
  10.                         </td></tr></table>
复制代码



其中的颜色, 大家可根据自己或者会员的喜欢更改.

性别图标下载:https://discuz.dismall.com/attachment.php?aid=27107

[ 本帖最后由 whitegerry 于 2005-12-20 23:03 编辑 ]
freddy 发表于 2005-12-17 19:58:57 | 显示全部楼层
支持山山
回复

使用道具 举报

linsie 发表于 2005-12-17 20:00:12 | 显示全部楼层
曰 我的沙发被楼上抢了 不舒服啊
回复

使用道具 举报

freddy 发表于 2005-12-17 20:01:00 | 显示全部楼层

回复 #3 linsie 的帖子

就抢!咋地?抢你没商量!HOHO~
回复

使用道具 举报

 楼主| whitegerry 发表于 2005-12-17 20:02:59 | 显示全部楼层
热闹,哈哈,偶看你们吵吵
回复

使用道具 举报

linsie 发表于 2005-12-17 20:03:59 | 显示全部楼层
小样 我比不上你 你伟大 你厉害 我发个帖子上来 你帮我看看是什么情况?
回复

使用道具 举报

freddy 发表于 2005-12-17 20:04:40 | 显示全部楼层
偶不喜欢吵架滴~先认输了...
回复

使用道具 举报

jimmyjimmyqqq 发表于 2005-12-17 20:05:49 | 显示全部楼层
純支持好了,我不太愛用IF = ='
回复

使用道具 举报

killua_bo 发表于 2005-12-17 20:06:44 | 显示全部楼层
不错!!!
回复

使用道具 举报

离恨天 发表于 2005-12-17 20:21:07 | 显示全部楼层
我想知道性别图片放在哪里?是images文件夹里还是它的一个子文件夹了?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 09:19 , Processed in 0.113558 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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