主要目的是增加論壇交流對用户的各類信息的掌握及快捷訪問,增進互動性
打開: 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,134 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 變成灰度圖片即可,或者你自己製作在線離散圖標,記得換個名字,並修改代碼中相應部分即可!
演示如下:

