Forums

Author Avatars List
Organize by date of Post/Article (15 posts)

  1. wadams92101
    Member
    Posted 1 year ago #

    Is there a way to have the widget organize the avatars by date of most recent article?

  2. Ben
    Member
    Posted 1 year ago #

    Hm, that's not possible at the moment, but it could be implemented of course...

    As far as I know WordPress does not keep track of the most recent post for each user, which probably means that we need a custom sql query (and a new sorting option of course)... Shouldn't be too difficult, I can give it a try some time next week.

  3. wadams92101
    Member
    Posted 1 year ago #

    That would be awsome, Ben. I have to keep my authors motivated1 ;-)

  4. Ben
    Member
    Posted 1 year ago #

    Done, please download the development version and try the "recent activity" sort option in the widget/shortcode.

    [360780]

  5. wadams92101
    Member
    Posted 1 year ago #

    Fantastic!! Thanks Ben. I clicked on the link and it took me to Changeset 360780. I saw two php files for download:
    AuthorAvatarsForm.class.php (1 diff)
    UserList.class.php (2 diffs)

    Do I just replace my existing php files of the same name under /lib? I know its probably obvious but I just wanted to make sure.

  6. wadams92101
    Member
    Posted 1 year ago #

    Update: I downloaded the files per previous post and configured the widget settings to "Recent Activity." It sorted the avatars differently but I'm not sure that it exactly correlated to recent activity for all authors. For example, my two most recent authors were at the bottom, but the third most recent author was somewhere in the middle of the sorting order. Moreover, changing sorting direction had no effect.

  7. Ben
    Member
    Posted 1 year ago #

    Sorry, what I meant was that you can also download the development version from this page. Replacing the files should've worked as well though.

    How do you define the "recentness" of your authors? At the moment it compares the date of the most recently published content for each author (that includes posts, pages, but also custom content types I think). Could you provide a link to you blog so I can have a look myself?

  8. Ben
    Member
    Posted 1 year ago #

    Changing the sort direction should have an effect; it does on my test blog anyway. If it doesn't then please try downloading the whole thing again, maybe there is something missing.

  9. wadams92101
    Member
    Posted 1 year ago #

    Sorry it took a while to re-test it. I've been busy. Now that I downloaded the whole thing, it seems to work on my test site. What type of activity is counted as recent activity? I'm only interested in Post and comment activity. Is there a way to count posts at a greater weight than comments, e.g., 3 comments = 1 post, or a recent comment boosts you no higher than the 10th position? Also, a way to make my own avatar sticky/stay at the top would be great. I know I'm probably asking too much at this point, but I might consider paying for customization if its complicated.

  10. wadams92101
    Member
    Posted 1 year ago #

    Update: It worked on my test site but not my live site. I have a wp-cron problem there so I'm guessing that's what's causing it not to work on my live site.

  11. Ben
    Member
    Posted 1 year ago #

    Not sure about the wp-cron problem (doesn't sound like it's related to this change?).

    The activity uses any "post" activity, i.e. whenever the user creates a new blog post or page, he/she jumps to the top of the list. Comments are not considered at the moment and it doesn't do any weighting either of course.

    I could add recent comments into the mix but it would still just be a sorted by "recentness"; so whoeever posted the last comment/post would appear on top. For a "better" activity sort we'd need some kind of activity points system which factors in the time of a post/comment, activity type (post, comment, or something else) and possibly other factors like the custom weights you wanted; I can see how that would probably be quite useful but it's not really in the scope for this plugin.

  12. wadams92101
    Member
    Posted 1 year ago #

    Thank you Ben. Its working great. Is there a way to make a designated Author (me) always remain at the top while the rest are sorted by activity?

    Not sure about the wp-cron problem (doesn't sound like it's related to this change?)

    - My cron problem has been a long standing issue unrelated to your plugin.

  13. pbearne
    Member
    Posted 1 year ago #

    Not with the plug-in as is but could put 2 widgets in and only show you on one and not show on the second.

    If you are up to editing themes you can call the plug0in via code so site together well.

    Paul

  14. wadams92101
    Member
    Posted 1 year ago #

    Hmmmm, maybe a brilliantly simple solution.

  15. wadams92101
    Member
    Posted 1 year ago #

    Ben, btw, I thought it was sorting by recent activity but it doesn't seem to work on my multi-site network sites. Could you test it out on your site and see if its sorting for you by recent post activity?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic