先請看本站首頁的調用
<li>共有文章數量: <font color="red"><b>{$xml:statistic channel="news" channelid="0" type="0" classid="0" setcache="news0"}</b></font> 篇</li> <li>共有規則數量: <font color="red"><b>{$xml:statistic channel="news" channelid="1" type="0" classid="16" setcache="0"}</b></font> 篇</li> <li>會員上傳文章: <font color="red"><b>{$xml:statistic channel="news" channelid="1" type="0" classid="17" setcache="0"}</b></font> 篇</li> <li>相關模板軟件: <font color="red"><b>{$xml:statistic channel="soft" channelid="0" type="0" classid="0" setcache="soft0"}</b></font> 個</li> |
簡單的介紹一下:
{$xml:statistic channel="news" channelid="0" type="0" classid="0" setcache="news0"}
Channel 頻道名稱 "soft" "flash" 等都可以
Channelid 頻道ID "0" 不指定 "1" 文章 "2" 軟件
Type 獲取類型 "0" 統計全部 "1" 統計最新 "2"總點擊數 "3" 軟件大小統計
Classid 獲取分類ID 類似本站上面的規則ID為16 會員上載ID為17
setcache 緩存 如果新增的 請默認為0 如:setcache="0"
新聞熱點
疑難解答