WordPress.org

Support

Support » Plugins and Hacks » Popularity Contest Plugin (beta 3)

Popularity Contest Plugin (beta 3)

  • I’ve released beta 3 of the Popularity Contest plugin:

    http://www.alexking.org/blog/2005/05/27/popularity-contest/

    I’m opening a new thread here as the last one has gotten a bit long and unweildy and most of the problems mentioned there have already been fixed.

    If you are seeing any problems with this release, please include the following information in your report:

    • Version of WordPress you are using
    • Theme you are using
    • A list of all active plugins you are using
Viewing 15 replies - 46 through 60 (of 100 total)
  • <form name=”ak_popularity” action=”http://www.elyonline.co.uk/news/wp-content/plugins/popularity-contest.php” method=”post”>

    So the data is posted to the proper URL and sucessfully changed – however the resulting redirect is failing.

    I’m guessing the wpurl isn’t available when I’m trying to do the redirect.

    When using Beta 3 — my RSS Feed is reduced to one post, despite any settings I have under the options > reading…

    So have you upgraded to beta 4?

    alexking,
    I found “Last 30 days” list in report is quite useful, but it can only show in report. Can you make a tag for Last_n_days ?

    I have just hacked the plugin to include the last n days…
    Hope Alexking don’t mind.


    // -- TEMPLATE FUNCTIONS
    function akpc_last_n_days($limit = 10, $n = 30) {
    global $akpc, $post, $wpdb;
    $items = $wpdb->get_results("
    SELECT p.ID AS ID, p.post_title AS post_title, pop.total AS total
    FROM $wpdb->posts p
    LEFT JOIN $wpdb->ak_popularity pop
    ON p.ID = pop.post_id
    WHERE DATE_ADD(p.post_date, INTERVAL $n DAY) > DATE_ADD(NOW(), INTERVAL 0 DAY)
    AND p.post_status = 'publish'
    ORDER BY pop.total DESC
    LIMIT $limit
    ");
    $list = '';
    if (count($items) > 0) {
    foreach ($items as $item) {
    $list .= '<li><a href="'.get_permalink($item->ID).'">'.$item->post_title.'</a> ('.$akpc->get_post_rank(-1, $item->total).')</li>'."\n";
    }
    }
    if (!empty($list)) {
    print($list);
    }
    }

    Great plugin and easy to setup and use.

    I see the text in Admin->Options->Popularity

    And going to the Popularity Rankings link brings you the Dashboard->Most Popular Posts showing lots of data.

    Nice job!

    Popularity Contest is now at 1.0:

    http://wordpress.org/support/topic/36437

    Alex,
    Love the plugin, Works great on my Default theme. However I have found a nice theme I would like to use instead “journalized-blue”.
    The side bars are set up different, causing the most popular listing to lose format, no bullets ans its all bunched together “www.wagnertech.net/blog”
    I’ve tried several different ways and this is the best I can do, and I Was wondering if you have any suggestions to fix it. I know its not your coding, Just asking for a bump in the right direction.

    Thanks for your time @ the plugin
    WP-1.5.1.2

    You’ll want to change the CSS then.

    The popularity contest works great, I love it, but one little problem. When I activated the plugin it now has messed up the navigation in my sidebar. I have different days of the week for each category. For some reason when I click on monday for one category it goes to a different category. Not sure why, I am loading a different sidebar for each category, maybe that is the problem. Can anyone help… I want to get this to work without messing up my navigation. I was looking over the code for the plugin and couldn’t figure out what to change.

    I was wondering if it would be possible to add some code so that along with the post title it will also show post author?

    Or show popularity by post author? (much like the category view)

    I seem to have toasted my Popularity plugin (1.0) by playing around with the wp-cache plugin. Your site mentions thia is a bad thing. I have deactivated/deleted wp-cache, re-installed the Popularity Contest 1.1, but it does not seem to be analyzing any posts since I installed wp-cache. How do I clean up?

    Alex King

    @alexkingorg

    If you don’t have caching turned on, it should work fine.

Viewing 15 replies - 46 through 60 (of 100 total)
  • The topic ‘Popularity Contest Plugin (beta 3)’ is closed to new replies.
Skip to toolbar