LifeType 1.0/Plugins/topcommentvisitors

LifeType 1.0/Plugins/topcommentvisitors

出自LifeType 中文文件計畫

(修訂版本間差異)
跳轉到: 導航, 搜尋

在2005年11月27日 (日) 17:26所做的修訂版本


名稱: 最多迴響訪客(Top Comment Visitors)

版本: 1.0

下載連結http://sourceforge.net/project/plog/xxx

程式授權: GPL

作者Mark Wu

用途

本外掛程式提供訪客迴響次數的排名列表。

設定

本外掛程式的設定頁位於 設定中心->最近活動管理 之下。

您可以使用

  1. $topcommentvisitors->isEnabled() 來檢查此外掛程式是否啟用。
  2. $topcommentvisitors->getTopCommentVisitors( $maxVisitors , $based ) 可以取得最多迴響的訪客清單。

其中:

  1. $maxVisitors 是你想顯示迴響數前多少名的訪客清單,預設值是10。
  2. $based 是要傳回排名的計算範圍是全站台或是僅限於某一個部落格內。"BLOG"表示是部落格限定,而"SITE"表示是全站台。預設值是"BLOG"。

把以下的程式碼加到 footer.template 模版或是 header.template模版:

{if $topcommentvisitors->isEnabled()}
<h2>Top Comment Visitors</h2>
<ul>  
{assign var=commentvisitors value=$topcommentvisitors->getTopCommentVisitors()}
{foreach from=$commentvisitors item=commentvisitor}
<li><a href="{$commentvisitor.user_url}">{$commentvisitor.user_name} ({$commentvisitor.user_count} Comments)</a></li>
{/foreach}
</ul>    
{/if}

注意事項

其他需要使用者特別注意的事項,或是告知潛在的問題。