主要目的是增加论坛交流对用户的各类信息的掌握及快捷访问,增进互动性

打开: 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,124 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 变成灰度图片即可,或者你自己制作在线离散图标,记得换个名字,并修改代码中相应部分即可!

演示如下: