主要目的是增加论坛交流对用户的各类信息的掌握及快捷访问,增进互动性
打开: template/default/forum/viewthread_node.htm
查找:
- <!--{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'])}--> - <em>{lang online}
- <!--{else}-->
- <em>{lang offline}
- <!--{/if}-->
- </em>
- <!--{/if}-->
上面代码也就是弹出窗在线显示部分的代码
将其全部替换为:
- <!--{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'])}--> - <em><img src="{IMGDIR}/ol.gif" title="$post[author] {lang
online}"> - <!--{else}-->
- <em><img src="{IMGDIR}/ofl.gif" title="$post[author] {lang
offline}"> - <!--{/if}-->
- </em>
- <!--{/if}-->
- <em><a
href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]"
target="_blank">{$post[authortitle]}</a></em>$authorverifys - <div>
- <!--{if
$post['customstatus'] &&
$_G['group']['allowcstatus']}--><p><img
src="{IMGDIR}/qa.gif"><em
style="color:#CCC">$post[customstatus]</em><img
src="{IMGDIR}/qz.gif"></p><!--{/if}--> - </div>
- <div style="margin-bottom:5px;">
- <em> 已有 <strong
>$post1,124 views</strong> 人访问过 <strong
>Ta</strong> 的<a
href="home.php?mod=space&uid=$post[authorid]"><strong
> 个人空间</strong></a>, 没事去逛逛</em> - </div>
- <div>
- <a
href="home.php?mod=space&uid=$post[authorid]"
target="_blank"><img src="{IMGDIR}/homelink.gif"
title="去窜窜门,逛逛 Ta 的个人空间"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=friend&view=me&from=space"
target="_blank"><img src="static/image/feed/friend.gif"
title="他的好友"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=doing&view=me&from=space"
target="_blank"><img src="static/image/feed/doing.gif"
title="他的新鲜事"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=blog&view=me&from=space"
target="_blank"><img src="static/image/feed/blog.gif"
title="他的日志"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=share&view=me&from=space"
target="_blank"><img src="static/image/feed/share.gif"
title="他的分享"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=album&view=me&from=space"
target="_blank"><img src="static/image/feed/album.gif"
title="他的相册"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=home&view=me&from=space"
target="_blank"><img src="static/image/feed/comment.gif"
title="他的动态"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=favorite&view=me&type=all"
target="_blank"><img src="static/image/feed/favorite.gif"
title="他的收藏"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=reward&view=me"
target="_blank"><img src="static/image/feed/reward.gif"
title="他的悬赏"></a></br> - <a
href="home.php?mod=space&uid=$post[authorid]&do=poll&view=me"
target="_blank"><img src="static/image/feed/poll.gif"
title="他的投票"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=debate&view=me"
target="_blank"><img src="static/image/feed/debate.gif"
title="他的辩论"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=activity&view=me"
target="_blank"><img src="static/image/feed/activity.gif"
title="他的活动"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=trade&view=me"
target="_blank"><img src="static/image/feed/goods.gif"
title="他的商品"></a> - <a
href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&pid=$post[pid]"><img
src="static/image/feed/pm.gif"
title="如果做不到最直接的面对面交流,那就打开网络聊天的窗口"></a> - <a
href="home.php?mod=spacecp&ac=poke&op=send&uid=$post[authorid]&handlekey=propokehk_$post[authorid]"
id="a_poke_$key"><img src="static/image/feed/poke.gif"
title="打个招呼,即便是老朋友,也要经常联系才成"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=wall"
target="_blank"><img src="static/image/feed/wall.gif"
title="想说的话太多,直接到他的空间给他留言"></a> - <!--{if $_G['setting']['allowviewuserthread'] !== false}-->
- <!--{eval $space['posts'] = $space['posts'] -
$space['threads'];}--> - <a
href="home.php?mod=space&uid=$post[authorid]&do=thread&view=me&type=reply&from=space"
target="_blank"><img src="static/image/feed/post.gif"
title="他的回帖"></a> - <a
href="home.php?mod=space&uid=$post[authorid]&do=thread&view=me&type=thread&from=space"
target="_blank"><img src="static/image/feed/thread.gif"
title="他的主题"></a> - <!--{/if}-->
- </div>
保存覆盖,更新缓存即可
其中在线显示部分需要一张自制的离线图片,你只需要把 static/image/common/ol.gif 变成灰度图片即可,或者你自己制作在线离散图标,记得换个名字,并修改代码中相应部分即可!
演示如下: