-- 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 .
Article Source: AllBestArticles.com
About the Author
Admin Blooobs at ArticleMs Forum
Social Bookmarking
Author: Admin
Total views: 218
Word Count: 133
Copy and Paste Article Code.
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: Not yet rated
Login to vote
Comments
No comments posted.Add Comment
You do not have permission to comment. If you log in, you may be able to comment.More articles in this Category
1: The most famous Article Directory Script ArticleMs 2.0 - Beta 1 released2: How To Install a New Skin
3: Most Active Authors Block
4: ArticleMs Default Skin: display third column only in some pages
5: ArticleMs Default Skin: add the third column
Links
Social Bookmarking
Top Authors
- James Copper
- Sarah Maple
- SeanH
- harvey2008
- emilybutler
|
|
Articles Published: 119
|
|
|
Articles Published: 54
|
|
|
Articles Published: 31
|
|
|
Articles Published: 28
|
|
|
Articles Published: 23
|
Main Menu
- Home
- Login
- Register
- Directory Submission
- Article Distribution
- Submit Articles
- Link To Us
- Most Popular
- Latest Articles
Categories
Resources
Stats
-
Total Category: 312
- 11 users online.

