资源名称: | 个人信息下显示相关内容 | 适用版本: | DiscuzX1.5(其他版本同理可改) | 语言编码: | GBK
| 插件作者: | mwtee | 原帖地址: | http://www.mwtee.com/ | 资源简介:
| 个人信息下显示相关内容 | 友情提示: | 文件修改需谨慎,最好做到要备份! |
打开\template\default\common\common.css
在最下面添加如下代码:- /*内容页内个人资料下方的显示控制*/
- #jinfo{margin:10px 5px;}
- #jinfo li{float:left;height:1.6em;text-indent:20px;width:49.5%;}
- #jinfo li.jblog{background:transparent url(static/image/common/icon.gif) no-repeat 0 0;}
- #jinfo li.jpm{background:transparent url(static/image/common/icon.gif) no-repeat 0 -19px;}
- #jinfo li.jbuddy{background:transparent url(static/image/common/icon.gif) no-repeat 0 -38px;}
- #jinfo li.jonline{background:transparent url(static/image/common/icon.gif) no-repeat 0 -58px;}
复制代码
在打开:\template\default\forum\viewthread_node.htm
查找:- <!--{if $post['medals']}-->
复制代码
在其上方加入如下代码:- <div id="jinfo">
- <ul>
- <li class="jblog">
- <a href="home.php?mod=space&uid=$post['authorid']" target="_blank" title="{lang space}"> 个人空间</a>
- </li>
- <li class="jpm">
- <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>
- </li>
- <li class="jbuddy"><a href="home.php?mod=space&uid=$post[authorid]&do=profile" target="_blank" title="{lang member_viewpro}"> 详细资料</a></li>
- <li class="jonline">
- <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
- <!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
- <em>{lang online}
- <!--{else}-->
- <em>{lang offline}
- <!--{/if}-->
- </em>
- <!--{/if}-->
- </li>
- </ul>
- </div>
复制代码 file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.png
将icon.gif 图片上传到static/image/common目录下
后台更新缓存即可
演示效果如下:

|
上一篇: 【DiscuzX1.5】仿6.1经典横排,调用多条数据版 ,默认隐藏开关控制显示!下一篇: 【DiscuzX1.5】网站底部背景颜色的修改方法
|