Most Active Authors Block
Create a new Block called TopAuthors or what name you prefer.
Set up as UNIVERSAL
In the HTML part put the code below
andlt;h4andgt;Most Active Authorsandlt;/h4andgt;
andlt;ulandgt;
{section name=$this-andgt;iandnbsp; loop=$this-andgt;authors}
andlt;liandgt;{$this-andgt;i|inc} - andlt;a href=andquot;{$this-andgt;authors[$this-andgt;i]['profile_url']}andquot;andgt; {$this-andgt;authors[$this-andgt;i]['user_name']}andlt;/aandgt; -
Articles Published: {$this-andgt;authors[$this-andgt;i]['user_articlecount']} andlt;/liandgt;
{/section}
andlt;/ulandgt;
andnbsp;
Then in the PHP part add the code below
$q = $this-andgt;db-andgt;query(andquot;SELECT * FROM {$this-andgt;pre}users WHERE user_idandgt;1 ORDER BY user_articlecount DESC LIMIT 6andquot;);
$this-andgt;authors = array();
while ($row = $this-andgt;db-andgt;nqfetch($q)){
andnbsp; $this-andgt;authors[] = $row;
andnbsp; $name = $row['user_name'];
andnbsp; if (strlen($name) andgt; 15){
andnbsp;andnbsp;andnbsp; $this-andgt;authors[sizeof($this-andgt;authors)-1]['user_name'] = substr($name,0,13).'..';
andnbsp; }
andnbsp; $this-andgt;_getUser($row,$this-andgt;blou);
andnbsp; $this-andgt;authors[sizeof($this-andgt;authors)-1]['profile_url'] = $this-andgt;blou-andgt;url_profile;
}
I have also another version that i'm customizing to show up also the avatar, but it's still in development.
Come back here in the next few days to see the new version .
Admin Blooobs at ArticleMs Forum
Article Submitted By:
Admin
This Article Has Been Read 1400 Times
Publish/Share this article
Remember: The article body, title, author bio and links may not be changed or removed. By publishing this article, you agree to all the terms in our Terms of Service.
Rating: 5.0
More articles in this Category
Top Authors Block: How To
How To Upgrade ArticleMs 1.3 Skin to ArticleMs 2.0
Top Authors Block for ArticleMs 2.0
The most famous Article Directory Script ArticleMs 2.0 - Beta 1 released
How To Install a New Skin
Most Active Authors Block
ArticleMs Default Skin: display third column only in some pages



