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
<h4>Most Active Authors</h4>
<ul>
{section name=$this->i loop=$this->authors}
<li>{$this->i|inc} - <a href="{$this->authors[$this->i]['profile_url']}"> {$this->authors[$this->i]['user_name']}</a> -
Articles Published: {$this->authors[$this->i]['user_articlecount']} </li>
{/section}
</ul>
Then in the PHP part add the code below
$q = $this->db->query("SELECT * FROM {$this->pre}users WHERE user_id>1 ORDER BY user_articlecount DESC LIMIT 6");
$this->authors = array();
while ($row = $this->db->nqfetch($q)){
$this->authors[] = $row;
$name = $row['user_name'];
if (strlen($name) > 15){
$this->authors[sizeof($this->authors)-1]['user_name'] = substr($name,0,13).'..';
}
$this->_getUser($row,$this->blou);
$this->authors[sizeof($this->authors)-1]['profile_url'] = $this->blou->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 .
About the Author
Admin Blooobs at ArticleMs Forum
Previous Article - Next Article
Article Submitted By:
Admin
Subscribe To: Admin Rss Feed
This Article Has Been Read 1335 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

