虚位以待(AD)
虚位以待(AD)
首页 > CMS教程 > Discuz! > discuzx头部用户名前小图标根据男女性别显示

discuzx头部用户名前小图标根据男女性别显示
类别:Discuz!   作者:码皇   来源:互联网   点击:

方法步骤: 打开header htm文件,查找:div class="avt y"a href="home php?mod=spaceuid=$_G" c="34"!--{avatar($_G,small)}-- a div 在下面添加:!--{if getuserprofile( & 039;gender & 039;) == 1}-- style vw ,魔客吧
方法步骤:

打开header.htm文件,查找:
  1. <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]" c="34"><!--{avatar($_G[uid],small)}--></a></div>
复制代码
在下面添加:
  1. <!--{if getuserprofile('gender') == 1}-->
  2. <style>
  3. .vwmy { background:url({IMGDIR}/m.gif) no-repeat scroll 0 0px transparent;padding-left:18px; }
  4. </style>
  5. <!--{elseif getuserprofile('gender') == 2}-->
  6. <style>
  7. .vwmy { background:url({IMGDIR}/f.gif) no-repeat scroll 0 0px transparent;padding-left:18px; }
  8. </style>
  9. <!--{/if}-->

然后

ico.rar

将解压出来的两个图片上传到自己当前风格的图片目录。

更新缓存。 2010-11-25 21:05 上传 下载附件 (16.71 KB)
相关热词搜索: discuzx头部用户名前小图标根据男女性别显