Popularity Contest 1.3b3

Posted in: News, WordPress

This version of Popularity Contest fixes a single small bug. I’ve got a good set of features to add to this plugin in the future when I get some roundtuit, but for now I wanted to at least get this fix out for those of you on WP 2.3+.

Popularity Contest is a WordPress plugin that helps you see which of your posts are most popular. Views, comments, etc. are tracked and given configurable point values to determine popularity.

The download and more information are available on my WordPress Plugins page.

If you have any trouble with this, please open a thread in the WP Support Forums and send me the link.

Popularity: 20% [?]

Posted December 16th, 2007 @ 4:53 PM

25 Replies

  1. Geof F. Morris adds this Comment:

    Excellent!

    A question for you: other than maybe a desire to get donations, why are you maintaining your own WordPress plugins page and not throwing your lot in with the official WordPress plugins directory?

    December 16th, 2007 at 5:07 pm

  2. john adds this Comment:

    This is so weird, with the upgrade it’s putting the value in the post again, but I’ll be darned if I can find the call in the loop to remove it.

    December 16th, 2007 at 6:24 pm

  3. john adds this Comment:

    I’m an idiot - I forgot it’s a config setting in the plugin code itself.

    December 16th, 2007 at 6:28 pm

  4. stephen adds this Comment:

    Alex,

    What bug is it that this update resolves?

    I ask because i once used your plugin, and it worked fine, with one exception. For whatever reason, it would list one multiple times, anywhere from 2 to 4 times.

    …is it that one?

    December 16th, 2007 at 8:24 pm

  5. Alex Loth adds this Comment:

    One more THANK YOU for that delicious plugin! :-)

    December 16th, 2007 at 9:53 pm

  6. Akismet 和 Popularity Contest 更新 - Nicky's blog adds this Pingback:

    […] SK2 和 Akismet 一起工作,发现活下来的 Spam 确实少了很多。今天 Akismet 和 Popularity Contest 这两款插件都更新了,虽然它们之间没有什么联系,但对我来说都是 […]

    December 16th, 2007 at 11:08 pm

  7. Dhruva Sagar adds this Comment:

    Thanks a ton for the wonderful plugin, i’ve updated it!

    December 18th, 2007 at 2:39 am

  8. bernabauer adds this Comment:

    Hi there Alex! Is there a plan to make your plugin compatible with wp-supercache? Or perhaps a hack to use javascript instead of php?

    thumbs up for your plugin! Thanx for the great job so far!

    December 18th, 2007 at 2:40 am

  9. Jeff adds this Comment:

    Great plugin! I thought you might be interested in a super easy modification I made to the plugin after I wanted to be able to show the “top posts and pages: today” section from my wordpress.com stats but couldn’t find a good solution.

    I just duplicated and modified the show_top_ranked_in_month() function to show the top ranked in the last n days, like so:


    function show_top_ranked_in_last_n($limit, $before, $after, $n = 7) {
    if(!is_numeric($n)) $n = 7;
    $n = intval($n);
    global $wpdb;
    $temp = $wpdb;

    $join = apply_filters('posts_join', '');
    $where = apply_filters('posts_where', '');
    $groupby = apply_filters('posts_groupby', '');
    if (!empty($groupby)) {
    $groupby = ' GROUP BY '.$groupby;
    }
    else {
    $groupby = ' GROUP BY '.$wpdb->posts.'.ID ';
    }

    $posts = $wpdb->get_results("
    SELECT ID, post_title
    FROM $wpdb->posts
    LEFT JOIN $wpdb->ak_popularity pop
    ON $wpdb->posts.ID = pop.post_id
    $join
    WHERE post_date > SUBDATE(NOW(), $n)
    AND post_date ID).'">'
    .$post->post_title.'‘.$after
    );
    }
    }
    else {
    print($before.’(none)’.$after);
    }
    $wpdb = $temp;
    }

    and added the appropriate public function as well. It turns out to be pretty useful because I can show top ranked today, top ranked in the last week. This function could also be modified to show the top ranked posts in a range, by replacing NOW() in the query with a variable

    December 18th, 2007 at 12:50 pm

  10. RodMan adds this Comment:

    I wanted to add this plug in to my page but my site has been live for about a year now and I have hundreds of posts. Is there a way I can go back and manually enter the popularity value for each post that was published prior to installing the plugin?

    Thanks

    December 18th, 2007 at 6:10 pm

  11. json adds this Comment:

    IMHO, if you’re going to place a link to your site on every post in a person’s blog, it would be cool if you had the common decency to use target=_blank.

    Disabled the plugin.

    thanks,
    json

    December 19th, 2007 at 9:43 am

  12. Alex adds this Comment:

    target=_blank is bad, it removes choice from your visitors.

    I would recommend reading the README, particularly the part of the FAQ titled:

    How do I turn off the ‘[?]’ on my posts?

    December 19th, 2007 at 9:48 am

  13. Terri Ann adds this Comment:

    @Alex

    I don’t agree with json exactly, especially the way they phrased their thought, but it would be nice if the link was rel=external for people who add target=_blank to their rel=external links via JavaScript.

    Otherwise, fabulous plugin; it’s very useful. Two updates I’d like to see are:
    1. Being able to place the popularity % somewhere rather than defaulting to the bottom of a post. So I can move it somewhere with the rest of my meta data content
    2. If it isn’t there already (which I don’t believe it is) I’d love to see it not count hits when a WP logged in user loads the page/archive/listing. Or maybe an option to turn that feature on/off.

    Hope they were already on your radar of features we might see soon :)

    December 19th, 2007 at 2:29 pm

  14. Alex :: Web Design adds this Comment:

    @jeff - i think some tags got stripped out when you posted that code, as well as some smart quotes put in. Could you say what is missing, as I really want to use that mod! Thanks

    December 27th, 2007 at 12:27 pm

  15. RevenueQuest » Blog Archive » 2007 Recap adds this Pingback:

    […] met its match with my most popular post to date (according to the Wordpress plug in Popularity Contest)… Please avoid […]

    December 30th, 2007 at 8:10 pm

  16. rüya adds this Comment:

    Thanks for plgn, following for updates

    January 18th, 2008 at 2:15 pm

  17. How to implement Popular Posts on Wordpress adds this Pingback:

    […] download the Popularity Contest plugin from this page. From there most users will know what to do, but here’s my guide on how I set up the Popular […]

    January 21st, 2008 at 12:00 pm

  18. Mig adds this Comment:

    Is there a way to emphasize the date of the post to influence its popularity? Or to simply discard older posts? We have some evergreen posts that got a lot of traffic long ago and so the “most popular” list is practically etched in stone, making it nearly useless for a news site like ours. We want “what are people reading and linking most now” not a hall of fame. Adding a weight for date would be handy, so it could slowly de-emphasize older posts.

    February 4th, 2008 at 10:15 am

  19. joanne adds this Comment:

    I’m also having the same trouble as @Mig above. Our most popular posts look like a hall of fame instead of a dynamic list. I tried adjusting the values under the popularity settings but I don’t really know which ones to adjust. Any suggestions?

    February 7th, 2008 at 5:49 pm

  20. Wordpress:Popularity ContestプラグインでPopularity: xx% [?]を非表示にする方法 adds this Pingback:

    […] Popularity Contestは、記事の人気度を集計して様々な形で表示できるプラグインです。比較的有名なプラグインなので導入されている方も多いのではないでしょうか。 […]

    February 20th, 2008 at 4:47 am

  21. David adds this Comment:

    Same problem as above. Our most popular are pretty stagnant. I’d love a simple solution, if possible, for have an option of most popular this week, or this month, etc. I see the mod listed above, but don’t know if I can handle that kind of coding.

    February 24th, 2008 at 6:51 pm

  22. tomoya adds this Comment:

    Hi Alex,
    Thank you for that very cool plugin!

    I made sidebar widget plugin because the plugin that you made was very wonderful.

    http://wordpress.org[...]ists-widget/

    March 14th, 2008 at 5:13 am

  23. 10 WordPress Plugins to Make Your Blog Shine | Chaotic Neutrality adds this Pingback:

    […] Popularity Contest - Tracks your most popular content so you can manage which parts of your site are most visited (or referenced most externally). Also allows for you to display a list of the top content on your site to help users find your top content. […]

    March 16th, 2008 at 12:38 pm

  24. TheWebHostingHero.com Upgraded To Wordpress 2.5 adds this Pingback:

    […] for the most part it didn’t. The only plugin that I wasn’t able to reactivate was the Popularity Contest from Alex King. Fortunately there’s an easy fix for this plugin which you find […]

    March 29th, 2008 at 7:52 pm

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 4 months old. You may want to check later in this blog to see if there is new information relevant to your comment.

CrunchGear Redesign » « Twitter Tools 1.1b1

About This Site

This is the personal web site of Alex King, an independent developer based in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

Ads