7.0/7.1/7.2版
找到根目录下的:viewthread.php
修改代码:
查找:
- $post['avatar'] = discuz_uc_avatar($post['authorid']);
复制代码 在下行添加代码[以下两种请选一个使用]:
1.离线状态头像默认灰化,头像鼠标指向正常,离开再次灰化- if(!$onlineauthors[$post[authorid]])$post[avatar] = str_replace("<img","<img style='FILTER:gray()' alt='我现在是离线状态,如果有事请短信我,谢谢.' onmouseover="this.style.filter=''" onmouseout="this.style.filter='Gray();'"",$post[avatar]);
复制代码 2.离线状态头像一直灰化- if(!$onlineauthors[$post[authorid]])$post[avatar] = str_replace("<img","<img style='FILTER:gray()' alt='我现在是离线状态,如果有事请短信我,谢谢.'",$post[avatar]);
复制代码
X1/X1.5版
找到:source/module/forum/forum_viewthread.php
----
修改代码:
查找:
- $post['avatar'] = discuz_uc_avatar($post['authorid']);
复制代码 在下行添加代码[以下两种请选一个使用]:
1.离线状态头像默认灰化,头像鼠标指向正常,离开再次灰化
- if(($_G['setting']['vtonlinestatus'] == 2 && $_G['forum_onlineauthors'][$post['authorid']]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['invisible'])){
- }else{
- $post['avatar'] = str_replace("<img","<img style='FILTER:gray()' alt='我现在是离线状态,如果有事请短信我,谢谢.' onmouseover="this.style.filter=''" onmouseout="this.style.filter='Gray();'"",$post['avatar']);
- }
复制代码 2.离线状态头像一直灰化
- if(($_G['setting']['vtonlinestatus'] == 2 && $_G['forum_onlineauthors'][$post['authorid']]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['invisible'])){
- }else{
- $post[avatar] = str_replace("<img","<img style='FILTER:gray()' alt='我现在是离线状态,如果有事请短信我,谢谢.'",$post[avatar]);
- }
复制代码
|
上一篇: discuz X变量下一篇: 【discuz 1.0】首页列表显示会员IP
|