目前为止,最全的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}