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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 教大家在头像上方显示在线/离线图标的方法!

[复制链接]
chengwei7268189 发表于 2013-3-1 08:43:28 | 显示全部楼层 |阅读模式

演示地址:http://www.yucheng.so/thread-9008-1-1.html
在想要的位置加上如下代码:
  1. <i style=" float:right" title="<!--{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['authorinvisible'])}-->在线<!--{else}-->离线<!--{/if}--><!--{/if}-->" class="<!--{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['authorinvisible'])}-->zaixian<!--{else}-->lixian<!--{/if}--><!--{/if}-->"></i>
复制代码
请针对自己的情况定义css!不明白的回帖即可!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
vallkiss 发表于 2013-3-1 08:53:12 | 显示全部楼层
嗯  现在很多论坛都用了这个小图标提示  谢谢分享
回复

使用道具 举报

1314学习网 发表于 2013-3-1 10:18:43 | 显示全部楼层
前排支持下。。。
回复

使用道具 举报

左手的爱 发表于 2013-3-1 11:32:52 | 显示全部楼层
囧  加你演示的那个地址   加到哪个文件??
回复

使用道具 举报

djhao 发表于 2013-3-1 11:40:46 | 显示全部楼层
:victory:
回复

使用道具 举报

心灵的冲动 发表于 2013-3-1 12:50:21 | 显示全部楼层
这个是Q图标 还是在线图标呢?修改那个文件呢?
回复

使用道具 举报

绯色雪月 发表于 2013-3-3 08:39:01 来自手机 | 显示全部楼层
谢谢啊
回复

使用道具 举报

zhangwei829 发表于 2013-3-3 13:42:24 | 显示全部楼层
怎么加啊
回复

使用道具 举报

baiwancredit 发表于 2013-3-3 14:18:35 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| chengwei7268189 发表于 2013-3-4 14:17:12 | 显示全部楼层
左手的爱 发表于 2013-3-1 11:32
囧  加你演示的那个地址   加到哪个文件??

forum/viewthread_node.htm啊
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-2 08:46 , Processed in 0.102314 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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