歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 20, 2024, 08:03:14 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  關於topreadposts的外掛 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 關於topreadposts的外掛  (閱讀 5686 次)
jianmin2
新手見習
*
文章: 14


檢視個人資料
« 於: 十一月 25, 2007, 10:50:41 下午 »

如題!
小弟在環境1.2.1版下使用了topreadposts這個外掛後
也啟用這個外掛了
在個人模版下也放了程式,程式如下
程式碼:
{if $topreadposts->isEnabled()}
<h2>熱門文章</h2>
<ul>
{assign var=readposts value=$topreadposts->getTopReadPosts()}
{if !empty($readposts) }
{foreach from=$readposts item=readpost}
<li><a href="{$url->postLink($readposts)}">{$readposts->getTopic()}</a> [{$readposts->getNumReads()} 次]</li>
{/foreach}
{/if}
</ul>
{/if}

雖然沒出現什麼錯誤但也沒有出現最多文章!
請問為什麼啊?
ps:已經在該論壇找過相關資料了,沒有1.2的topreadposts的相關資料
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  關於topreadposts的外掛 « 上篇主題 下篇主題 »
    前往: