实现方法,在需要用到的织梦文章内容页模板中相应位置添加如下代码,即可实现投稿用户的统计功能,适用范围-织梦各版本:
{dede:sql sql="select writer,count(id) as num from dede_archives group by writer order by count(writer) desc limit 0,5"}
<li><span>([field:num /])</span>[field:writer /]</li>
{/dede:sql}
实现方法,在需要用到的织梦文章内容页模板中相应位置添加如下代码,即可实现投稿用户的统计功能,适用范围-织梦各版本:
{dede:sql sql="select writer,count(id) as num from dede_archives group by writer order by count(writer) desc limit 0,5"}
<li><span>([field:num /])</span>[field:writer /]</li>
{/dede:sql}