AllBestArticles.com » Articlems » Most Active Authors Block

-- 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


Previous Article - Next Article

Social Bookmarking
Bookmark to: Mr. Wong Bookmark to: Webnews Bookmark to: Icio Bookmark to: Oneview Bookmark to: Linkarena Bookmark to: Favoriten Bookmark to: Seekxl Bookmark to: Kledy.de Bookmark to: Social Bookmarking Tool Bookmark to: BoniTrust Bookmark to: Power Oldie Bookmark to: Bookmarks.cc Bookmark to: Favit Bookmark to: Bookmarks.at Bookmark to: Shop-Bookmarks Bookmark to: Seoigg Bookmark to: Newsider Bookmark to: Linksilo Bookmark to: Readster Bookmark to: Folkd Bookmark to: Yigg Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Facebook Bookmark to: Reddit Bookmark to: Jumptags Bookmark to: Simpy Bookmark to: StumbleUpon Bookmark to: Slashdot Bookmark to: Propeller Bookmark to: Furl Bookmark to: Yahoo Bookmark to: Spurl Bookmark to: Google Bookmark to: Blinklist Bookmark to: Blogmarks Bookmark to: Diigo Bookmark to: Technorati Bookmark to: Newsvine Bookmark to: Blinkbits Bookmark to: Ma.Gnolia Bookmark to: Smarking Bookmark to: Netvouz

Website Products and Sevices





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 released
2: 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
Directory Submission
Free PageRank Display



    OrganizingWeb Top Site List

Links


Social Bookmarking
Bookmark to: Mr. Wong Bookmark to: Webnews Bookmark to: Icio Bookmark to: Oneview Bookmark to: Linkarena Bookmark to: Favoriten Bookmark to: Seekxl Bookmark to: Kledy.de Bookmark to: Social Bookmarking Tool Bookmark to: BoniTrust Bookmark to: Power Oldie Bookmark to: Bookmarks.cc Bookmark to: Favit Bookmark to: Bookmarks.at Bookmark to: Shop-Bookmarks Bookmark to: Seoigg Bookmark to: Newsider Bookmark to: Linksilo Bookmark to: Readster Bookmark to: Folkd Bookmark to: Yigg Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Facebook Bookmark to: Reddit Bookmark to: Jumptags Bookmark to: Simpy Bookmark to: StumbleUpon Bookmark to: Slashdot Bookmark to: Propeller Bookmark to: Furl Bookmark to: Yahoo Bookmark to: Spurl Bookmark to: Google Bookmark to: Blinklist Bookmark to: Blogmarks Bookmark to: Diigo Bookmark to: Technorati Bookmark to: Newsvine Bookmark to: Blinkbits Bookmark to: Ma.Gnolia Bookmark to: Smarking Bookmark to: Netvouz

Top Authors