Discuz教程网

[代码修改] 【DiscuzX1.5】个人信息下显示相关内容

[复制链接]
authicon dly 发表于 2010-10-17 17:15:00 | 显示全部楼层 |阅读模式
资源名称:个人信息下显示相关内容
适用版本:DiscuzX1.5(其他版本同理可改)
语言编码:GBK
插件作者:mwtee
原帖地址:http://www.mwtee.com/
资源简介:
个人信息下显示相关内容
友情提示:文件修改需谨慎,最好做到要备份!

打开\template\default\common\common.css
在最下面添加如下代码:
  1. /*内容页内个人资料下方的显示控制*/
  2. #jinfo{margin:10px 5px;}
  3. #jinfo li{float:left;height:1.6em;text-indent:20px;width:49.5%;}
  4. #jinfo li.jblog{background:transparent url(static/image/common/icon.gif) no-repeat 0 0;}
  5. #jinfo li.jpm{background:transparent url(static/image/common/icon.gif) no-repeat 0 -19px;}
  6. #jinfo li.jbuddy{background:transparent url(static/image/common/icon.gif) no-repeat 0 -38px;}
  7. #jinfo li.jonline{background:transparent url(static/image/common/icon.gif) no-repeat 0 -58px;}
复制代码




在打开:\template\default\forum\viewthread_node.htm
查找:
  1. <!--{if $post['medals']}-->
复制代码




在其上方加入如下代码:
  1. <div id="jinfo">
  2.    <ul>
  3.       <li class="jblog">
  4.       <a href="home.php?mod=space&uid=$post['authorid']" target="_blank" title="{lang space}"> 个人空间</a>
  5.       </li>
  6.         <li class="jpm">   
  7.             <a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&pid=$post[pid]" onclick="hideMenu('userinfo$post[pid]');showWindow('sendpm', this.href)" title="{lang send_pm}">{lang send_pm}</a></li>
  8.          </li>
  9.       <li class="jbuddy"><a href="home.php?mod=space&uid=$post[authorid]&do=profile" target="_blank" title="{lang member_viewpro}"> 详细资料</a></li>
  10.       <li class="jonline">
  11.         <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
  12.       <!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
  13.        <em>{lang online}
  14.       <!--{else}-->
  15.        <em>{lang offline}
  16.       <!--{/if}-->
  17.       </em>
  18.      <!--{/if}-->           
  19.    </li>
  20.     </ul>
  21.     </div>
复制代码
file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.png
将icon.gif 图片上传到static/image/common目录下
后台更新缓存即可

演示效果如下:





上一篇:【DiscuzX1.5】仿6.1经典横排,调用多条数据版 ,默认隐藏开关控制显示!
下一篇:【DiscuzX1.5】网站底部背景颜色的修改方法
authicon 月之海洋 发表于 2011-5-7 08:59:56 | 显示全部楼层
不错,我喜欢
authicon 纤陌陌 发表于 2011-5-8 00:59:52 | 显示全部楼层
顶你一下,好贴要顶!
authicon №小乖 发表于 2011-5-9 00:59:40 | 显示全部楼层
喜欢喜欢喜欢
authicon 乐娃娃 发表于 2011-5-9 10:59:51 | 显示全部楼层
不错,我喜欢
authicon lilac_yao 发表于 2011-5-22 01:59:54 | 显示全部楼层
好像不错的样子
authicon nmzc 发表于 2011-5-24 13:59:34 | 显示全部楼层
有意思~顶顶 ,继续顶顶。继续顶哦
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-16 19:41

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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