主要目的是增加論壇交流對用户的各類信息的掌握及快捷訪問,增進互動性

打開: template/default/forum/viewthread_node.htm
查找:

  1. <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
  2.                                                 <!--{if
    ($_G['setting']['vtonlinestatus'] == 2 &&
    $_G[forum_onlineauthors][$post[authorid]]) ||
    ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -
    $post['lastactivity'] <= 10800) &&
    !$post['authorinvisible'])}-->
  3.                                                         <em>{lang online}
  4.                                                 <!--{else}-->
  5.                                                         <em>{lang offline}
  6.                                                 <!--{/if}-->
  7.                                                 </em>
  8.                                         <!--{/if}-->

上面代碼也就是彈出窗在線顯示部分的代碼
將其全部替換為:

  1. <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
  2.                                                 <!--{if
    ($_G['setting']['vtonlinestatus'] == 2 &&
    $_G[forum_onlineauthors][$post[authorid]]) ||
    ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -
    $post['lastactivity'] <= 10800) &&
    !$post['authorinvisible'])}-->
  3. <em><img src="{IMGDIR}/ol.gif" title="$post[author] {lang
    online}">
  4.                                                 <!--{else}-->
  5. <em><img src="{IMGDIR}/ofl.gif" title="$post[author] {lang
    offline}">
  6.                                                 <!--{/if}-->
  7.                                                 </em>
  8.                                         <!--{/if}-->
  9.                                         <em><a
    href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]"
    target="_blank">{$post[authortitle]}</a></em>$authorverifys
  10.                                         <div>
  11.                                         <!--{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}-->
  12.                                         </div>
  13.                                         <div style="margin-bottom:5px;">
  14.                         <em> 已有 <strong
    >$post1,134 views</strong> 人訪問過 <strong
    >Ta</strong> 的<a
    href="home.php?mod=space&uid=$post[authorid]"><strong
    > 個人空間</strong></a>, 沒事去逛逛</em>
  15.                                         </div>
  16.                                         <div>
  17.                                                         <a
    href="home.php?mod=space&uid=$post[authorid]"
    target="_blank"><img src="{IMGDIR}/homelink.gif"
    title="去竄竄門,逛逛 Ta 的個人空間"></a>
  18.                                                         <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>
  19.                                                         <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>
  20.                                                         <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>
  21.                                                         <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>
  22.                                                         <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>
  23.                             <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>
  24.                                                     <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>
  25.                                                     <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>
  26.                                                         <a
    href="home.php?mod=space&uid=$post[authorid]&do=poll&view=me"
    target="_blank"><img src="static/image/feed/poll.gif"
    title="他的投票"></a>
  27.                                                         <a
    href="home.php?mod=space&uid=$post[authorid]&do=debate&view=me"
    target="_blank"><img src="static/image/feed/debate.gif"
    title="他的辯論"></a>
  28.                                                         <a
    href="home.php?mod=space&uid=$post[authorid]&do=activity&view=me"
    target="_blank"><img src="static/image/feed/activity.gif"
    title="他的活動"></a>
  29.                                                         <a
    href="home.php?mod=space&uid=$post[authorid]&do=trade&view=me"
    target="_blank"><img src="static/image/feed/goods.gif"
    title="他的商品"></a>
  30.                                                         <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>
  31.                                                         <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>
  32.                                                         <a
    href="home.php?mod=space&uid=$post[authorid]&do=wall"
    target="_blank"><img src="static/image/feed/wall.gif"
    title="想説的話太多,直接到他的空間給他留言"></a>
  33.                                                         <!--{if $_G['setting']['allowviewuserthread'] !== false}-->
  34. <!--{eval $space['posts'] = $space['posts'] -
    $space['threads'];}-->
  35. <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>
  36. <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>
  37.                                                         <!--{/if}-->
  38.                                         </div>

保存覆蓋,更新緩存即可
其中在線顯示部分需要一張自制的離線圖片,你只需要把 static/image/common/ol.gif 變成灰度圖片即可,或者你自己製作在線離散圖標,記得換個名字,並修改代碼中相應部分即可!

演示如下: