ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display List of Authors for a channel

January 24, 2011 5:00pm

Subscribe [4]
  • #1 / Jan 24, 2011 5:00pm

    nitecode

    20 posts

    Is there a way to display a list of authors for a specific channel? Also need to add link that displays all posts by the author, and the {count} of the authors posts.

    Like this:

    AUTHORS
    John Doe (2)
    James Doe (14)
    Smith Doe (4)


    Thanks!

  • #2 / Jan 24, 2011 5:16pm

    lebisol

    2234 posts

    Not with EE tags but you can use the query module to pull this info.
    Listing of all entries by particualr author can be done by passing the author ID (through the link) and then filtering the weblog by author id parameter.

  • #3 / Jan 24, 2011 8:09pm

    nitecode

    20 posts

    Seems like it can be accomplished using the “Top Authors” plugin. That orders by number of posts, I would like to order alphabetically. I will post if I figure that out..

    {exp:top_authors weblog="channel_name"}
        {name} - {count}
    {/exp:top_authors}
  • #4 / Jan 25, 2011 3:59pm

    Ingmar

    29245 posts

    Very good. Please let us know if there’s anything else we can do for you.

  • #5 / Jan 25, 2011 4:04pm

    nitecode

    20 posts

    Is there a way to reorder the top authors alphabetically?

  • #6 / Jan 26, 2011 4:43am

    John Henry Donovan

    12339 posts

    nitecode,

    open up the plugin file in a text editor and change line 65 from

    $this->EE->db->order_by('count DESC, screen_name DESC');

    to

    $this->EE->db->order_by('screen_name ASC');

    Let us know if that works

  • #7 / Jan 26, 2011 5:06am

    nitecode

    20 posts

    You freaking rock!

  • #8 / Jan 26, 2011 3:12pm

    Ingmar

    29245 posts

    Very glad to hear John Henry was able to help. Please don’t hesitat to post again in case there’s anything else. Thanks 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases