WordPress: WPMU Functions/get most active blogs:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: This is useful for getting active blogs. Please note here active blogs will be calculated based on number of posts. Naturally more posts mean more activity! Arguments are: default $nu...)
 
无编辑摘要
 
第1行: 第1行:
This is useful for getting active blogs.
This is useful for getting active blogs.
这个函数有利于得到active blogs。


Please note here active blogs will be calculated based on number of posts.
Please note here active blogs will be calculated based on number of posts.
请注意这里的active blogs根据文章数目计算的。


Naturally more posts mean more activity!
Naturally more posts mean more activity!
一般而言,文章更多,表示博客更活跃!


Arguments are:  
Arguments are:  
参数是:
default $num = 10 number of results to fetch.
default $num = 10 number of results to fetch.
default $display = true whether print the result or just fetch the result array.
default $display = true whether print the result or just fetch the result array.
第12行: 第20行:
get_most_active_blogs( $num = 10, $display = true );  
get_most_active_blogs( $num = 10, $display = true );  
</pre>  
</pre>  
default $num = 取回10个结果。
default $display = 不管输出结果或者取回结果数目,都是正确的。
<pre>
//会输出10个最活跃的博客。要动手操作结果,只要将FALSE传递为第二个参数即可。
get_most_active_blogs( $num = 10, $display = true );
</pre>


PS. I think it would be good to have another argument to ignore certain blogs, for example my client don't want to display main blog stats here :(
PS. I think it would be good to have another argument to ignore certain blogs, for example my client don't want to display main blog stats here :(
附言 我觉得使得另一个参数忽视某个博客,较好,例如,我的用户不希望在这里显示主要的博客统计数据:(


--[[User:Devportals|Devportals]] 12:53, 25 June 2008 (UTC)                     
--[[User:Devportals|Devportals]] 12:53, 25 June 2008 (UTC)                     
Cheers!
Cheers!
--[[User:Devportals|Devportals]]2008年6月25日, 12:53 (格林尼治标准时间)                   
Cheers!
开心起来!

2008年9月26日 (五) 16:09的最新版本

This is useful for getting active blogs.

这个函数有利于得到active blogs。

Please note here active blogs will be calculated based on number of posts.

请注意这里的active blogs根据文章数目计算的。

Naturally more posts mean more activity!

一般而言,文章更多,表示博客更活跃!

Arguments are: 参数是:

default $num = 10 number of results to fetch. default $display = true whether print the result or just fetch the result array.

//it will print 10 most active blogs. For manual manipulation of result just pass FALSE as second argument. 
get_most_active_blogs( $num = 10, $display = true ); 


default $num = 取回10个结果。 default $display = 不管输出结果或者取回结果数目,都是正确的。

//会输出10个最活跃的博客。要动手操作结果,只要将FALSE传递为第二个参数即可。
get_most_active_blogs( $num = 10, $display = true ); 


PS. I think it would be good to have another argument to ignore certain blogs, for example my client don't want to display main blog stats here :(

附言 我觉得使得另一个参数忽视某个博客,较好,例如,我的用户不希望在这里显示主要的博客统计数据:(

--Devportals 12:53, 25 June 2008 (UTC) Cheers!


--Devportals2008年6月25日, 12:53 (格林尼治标准时间) Cheers!

开心起来!