Authors plugin that only shows active authors

Creating and modifying plugins.
Post Reply
oeli
Regular
Posts: 19
Joined: Sun Apr 17, 2005 10:27 am
Location: Vlissingen, The Netherlands
Contact:

Authors plugin that only shows active authors

Post by oeli »

I'm using s9y in a corporate blog environment with 37 registered users (authenticated using LDAP).

In the sidebar, I would like to display a list of authors. I have found 3 of those plugins in Spartacus; however, all of them display the complete list of authors, without the ability to filter on authors that have actually blogged.

Is there a way to get only a list of those authors that have actually blogged something in, say, the last x months?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Authors plugin that only shows active authors

Post by garvinhicking »

Hi!

Sadly there is no plugin to do that, since it would need an SQL join on the entries table, which no plugin yet performs (they only query the author table).

HTH
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oeli
Regular
Posts: 19
Joined: Sun Apr 17, 2005 10:27 am
Location: Vlissingen, The Netherlands
Contact:

Post by oeli »

If I were to give it a shot to implement this, which of the plugins would you like to see used as the basis?

Hypothetically speaking, no promise yet ;-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I believe that the spartacus "authors" plugin is outdated and was moved into the userprofiles extension.

I personally would like to see it in the internal "serendipity_authors_plugin" (include/plugins_internal.inc.php) of the serendipity distribution. I see that this would be a nice feature for everyone. If it could be made to count entries per author (like the category plugin supports), this would also have thebenefit to show which authors have how many entries....

Oh wait.

I just checked that plugin. In s9y 1.1 it already has the option to show that. The only option that needs to be added is a string toggle to tell "remove authors below X entries"?

I just committed that change to SVN. What you now need is to look more into it to join articles by specific date count, if you like...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oeli
Regular
Posts: 19
Joined: Sun Apr 17, 2005 10:27 am
Location: Vlissingen, The Netherlands
Contact:

Post by oeli »

great, will be looking forward to 1.1. When I upgrade, I will have a look at the join.
Post Reply