個人資料離開天數

Home Home
引用 | 編輯 香吉士
2009-09-22 20:23
樓主
推文 x1
【插件資訊】

插件名稱:個人資料離開天數
適用版本:7.0
語言編碼:通用
插件作者:pole1010
版權所屬:pole1010
原帖連結:http://www.alan888.com/Discuz/thread-170728-1-14.html
支持網站:http://allen.ncc.to/index.php

【插件說明】

在 templates/default/viewthread_node.htm 裡查找:
複製程式
{eval @eval('echo "'.$customauthorinfo[2].'";');}

下面增加
複製程式
<!-- 離開天數 -->
<!--{eval $post['offdays'] = intval(($timestamp - $post['lastactivity']) / 86400);}-->
<dt>離開天數</dt><dd>$post['offdays']</dd>
<!-- 離開天數 -->

上傳覆蓋更新緩存即可!


離開天數 可以自己改 例:失蹤天數...等等等

例圖:


獻花 x1
引用 | 編輯 lgh1039
2010-02-17 14:45
1樓
  
這個算是很有趣的功能~
謝謝分享教學^^

獻花 x0
引用 | 編輯 asdlkj123852
2012-04-26 12:02
2樓
  
這個只有通用於7.0板本嗎其他不行嗎

獻花 x0