编辑“WordPress:WPMU Functions/get most active blogs

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第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.
第20行: 第12行:
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!
开心起来!
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)