目前為止,最全的DedeCMS V5.5網站信息統計代碼,有圖為證:
代碼如下:
以下為引用的內容:
{dede:sql sql="select count(mid) as c from dede_member "}共有會員:[field:c /] 名{/dede:sql}
{dede:sql sql="select count(id) as c from dede_archives where from_unixtime(pubdate,'%m') = month(curdate( ))"}本月更新:[field:c /] 篇{/dede:sql}
{dede:sql sql="select count(*) as c from dede_archives where channel=1"}共有設計作品:[field:c /] 篇{/dede:sql}
{dede:sql sql="select count(*) as c from dede_archives where channel=3"}共有設計素材:[field:c /] 款{/dede:sql}
{dede:sql sql="select count(id) as c from dede_archives where pubdate > unix_timestamp(curdate())"}今日更新:[field:c /] 篇{/dede:sql}
{dede:sql sql="select count(id) as c from dede_feedback"}共產生了:[field:c /] 條評論{/dede:sql}
{dede:sql sql="select sum(click) as c from dede_archives"}您好!您是本站第:[field:c /] 客人!{/dede:sql}
*