« 上一篇 | 下一篇»

plog使用教學-005
post by SunKit @ 10 八月, 2005 15:27
上次教完改template,今次俾個習作大家做下,在自己既blog中加入資訊欄,顯示文章總數、訪客總數、迴響、引用等統計資料.
在panel.template或者main_left.template又或者main_right.template中,適當位置加入以下code
<!--status-->
<h2>Blog Status</h2>
<ul>
<div style="text-align: left;">
訪問總數:{$blog->getViewedTotal()}<br/>
文章總數:{$blog->getTotalPosts()}<br/>
評論總數:{$blog->getTotalComments()}<br/>
引用總數:{$blog->getTotalTrackbacks()}<br/>
</div>
</ul>
發表迴響
標題

內容*

暱稱*

電子郵件

個人網頁


authimage
  

commons icon [2] [ 回覆 ]

sorry,你真係快,段code有問題,我改番喇!
第二句係Blog Status

commons icon [1] [ 回覆 ]

新總請救救,error如下,

Fatal error: Smarty error: [in templates/blog_8/new_LiteWinter/panel.template line 65]: syntax error: unrecognized tag: $locale->tr("Blog Status" ) (Smarty_Compiler.class.php, line 403) in /home/jointcommunity/plog/class/template/smarty/Smarty.class.php on line 1108

Power by pLog. Template design by JamesHuang. Valid XHTML and CSS