WordPress.org

Ready to get started?Download WordPress

Forums

Popularity Contest 1.0 (40 posts)

  1. Alex King
    Member
    Posted 9 years ago #

    Popularity Contest is now at 1.0, including an updated and extensive README. :)

    http://www.alexking.org/blog/2005/06/13/popularity-contest/

  2. Chuck Reynolds
    Member
    Posted 9 years ago #

    Nice - I may install this when I get my new design up...

  3. piginzen
    Member
    Posted 9 years ago #

    Alex, quite possibly one of the coolest plugins i've used since i started with WP

  4. piginzen
    Member
    Posted 9 years ago #

    (Found in archives)

  5. piginzen
    Member
    Posted 9 years ago #

    The plugin is awesome - truely amazing, but I have yet to get it to work with the ShortStat Plugin... I have to disable the ShortState plugin for now...

    I would love to get them to both work in tandem...

    Has anyone else had this problem?

    Thanks

  6. chiangww
    Member
    Posted 9 years ago #

    Hello,

    I found a bug in release 1.0. Function recalculate_popularity() did not include the score from feed view.

    Add (feed_views * $this->feed_value) and it should read as

    function recalculate_popularity() {
    global $wpdb;
    $result = mysql_query("
    UPDATE $wpdb->ak_popularity
    SET total = (feed_views * $this->feed_value)
    + (home_views * $this->home_value)
    + (archive_views * $this->archive_value)
    + (category_views * $this->category_value)
    + (single_views * $this->single_value)
    + (comments * $this->comment_value)
    + (pingbacks * $this->pingback_value)
    + (trackbacks * $this->trackback_value)
    ") or die(mysql_error());
    }

  7. Alex King
    Member
    Posted 9 years ago #

    pigizen - previous incompatibilities with other plugins were fixed by the other plugin author fixing a bug. Perhaps you could ask the short-stat author to take a look. No idea what short-stat does, but I can't see why any of the Popularity Contest code should cause conflicts.

  8. Vryce
    Member
    Posted 9 years ago #

    I have ShortStat and Popularity Contest both running on my site.

    They both seem to be working just fine.

    Are you using the latest versions of both plugins?

  9. piginzen
    Member
    Posted 9 years ago #

    I am using WP-ShortStat 1.2 and Popularity Contest 1.0

    It appears to be the latest version.

    I tried reuploading them too... But when using both, Popularity Contest doesnt seem to propagate. ShortStat seems to be fine.

  10. piginzen
    Member
    Posted 9 years ago #

    FYI, The ShortStat plugin I am talking about it this one:
    http://dev.wp-plugins.org/wiki/wp-shortstat

    Should I be using another one?

  11. Vryce
    Member
    Posted 9 years ago #

    In my plugins page, this is what it shows for the 2 plugins.

    WP-ShortStat 1.2 Jeff Minard
    Popularity Contest 1.0 Alex King

    Maybe its another plugin you are using causing the problem? Not sure what is going on in your case. Or if I just got lucky and have both plugins working on my site.
    I have a ton of other plugins as well activated.

  12. piginzen
    Member
    Posted 9 years ago #

    Those are the two plugins I have as well...

    I also have a ton of other plugins, like you...

    I contacted Jeff Minard but he has yet to respond... not sure if he even has support...

    Thanks!

  13. hetta
    Member
    Posted 9 years ago #

    I see a weird problem: the database doesn't update after post # 249. Or after entry # 232 in the database...

    So current posts (250 and over) are shown as "Popularity: unranked". I'm using WP 1.5 with pop-contest 1.0.

    Weird weird weird.

  14. angsuman
    Member
    Posted 9 years ago #

    Somehow I am unable to change the weight of my feed views.

    I was initially excited over the plugin. However I couldn't get useful information from its stats. Finally I uninstalled it. Your mileage may vary.

  15. Alex King
    Member
    Posted 9 years ago #

    hetta - anything you did around that time? New plugins perhaps?

  16. hetta
    Member
    Posted 9 years ago #

    Alex: No new plugins, just an upgrade to the newest pop-contest earlier in the week.

    Adding things manually to the database (INSERT INTO 'wp_ak_popularity' ...) started up the counting for the missing posts.

    I just added a new post, published it, and clicked it a few times - it's being counted. On localhost, though.

    Hmm. I write posts off-line, and mysqldump the lot over to the online blog. Is adding posts to wp_ak_popularity linked to pressing "save" or "publish" in the blog? If so it's a minor thing that I can easily work around.

    Angsuman: it's possible that putting the .php script into the /plugins/ folder, not into a directory under that, might fix things.

  17. Jaxia
    Member
    Posted 9 years ago #

    Alex -

    Lovin it! :) However, is there any way to manually change the value for a post? I'm trying to make some changes to my website, so I upload files and hit refresh - a lot. This is giving all the entries on my first page false hits.

    Just curious,
    ~Jax

  18. robot
    Member
    Posted 9 years ago #

    This is an awesome plugin and I have been using it since beta. I have one question. On my blog, I have it list the top 5 most popular posts but the list appears double spaced. I want it to look like my link list. Please help. Thanks in advance!

    http://robot.f2o.org/

  19. Alex King
    Member
    Posted 9 years ago #

    hetta - yes, that is exactly right. I have to hook into the WP event for posting. You are also correct that the .php file must be in the plugins directory, not a sub-directory. This is clearly explained in the readme.

    Jaxia - you could manually edit the counts for those posts.

    robot - pass in different before and after values (like you have for your other lists).

  20. robot
    Member
    Posted 9 years ago #

    My other lists have no before and after values. How can I pass that to the function?

  21. Jaxia
    Member
    Posted 9 years ago #

    Hey Alex, Is there an interface to manually change the value, or do I have to edit it in SQL? I looked around in my WP admin, and I cannot seem to find a place. Am I just missing it? Thanks!

  22. Alex King
    Member
    Posted 9 years ago #

    You're missing it - honestly I don't know how - it's everywhere if you're looking for it. :)

    This information is available:

    1. In the README, under Installation: go into Options > Popularity to modify the values of each view and feedback type.

    2. On the Plugins page, in the description of the plugin: Once you have activated the plugin, you can configure the Popularity Values (click that link)

    3. On the Most Popular Posts tab in the dashboard, click the 'Change Popularity Values' link.

    4. Click the Options tab in the WP admin interface and click 'Popularity'

  23. Jaxia
    Member
    Posted 9 years ago #

    :)
    Yes, I saw that I can make any view of the home page worth a different point total. I don't want to do that. When someone else views my homepage, I want it to be worth the same score.

    But, I need to change the number of views to a few posts. Since I basically have to make one change to my style sheet or file, upload it, and hit refresh to see if I did something right, my front page posts have an extra 500 views :D

    Can I edit the actual number of views, not the value of a view?

  24. Alex King
    Member
    Posted 9 years ago #

    You can change the data in the database, but I recommend not doing so - in standard usage that data is 1. irrelevant and 2. applied consistently - see #1.

  25. robot
    Member
    Posted 9 years ago #

    Any more suggestions for my problem?

  26. gregyorke
    Member
    Posted 9 years ago #

    Is there anything that would cause the list not to update correctly? We have had a post up since yesterday that has 110 permalink views (according to our ISP's stats) and 8 comments, both of which are weighted heavily in our Popularity Contest setup, yet it is not registering. If I look at Dashboard / Most Popular Posts / Views / Permalink Views, the post does not show up, even though it should be about#5 on the list. It also has three pingbacks (which show up as comments on the blog) but they do not show up on Popularity Contest's pingbacks list, where they should rank #2. Any ideas?

    Would running http://mydomain.com/wp-content/plugins/popularity-contest.php force a recalculation? I tried that and it didn't seem to change anything.

    On digging into the table wp_ak_popularity, it looks like while new posts have records in the table, nothing has updated since 7/4 -- all zeroes, EXCEPT that comments and trackbacks seem to be about right. But nothing for homepage views, permalink views, etc.

    UPDATE -- this seems to be caused by a conflict with Google Sitemaps 2.6 (http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final). I installed that sometime over the weekend and that seems to have stopped PC from updating its table.

  27. piginzen
    Member
    Posted 9 years ago #

    Popularity Contest seems to have problems with compatibility with a few other plugins...

    Basically if this ever happens, you have to talk with the developers of the other plugin.

    It's a really awesome plugin, it's just a bummer about the few complications is creates...

    I also think it's interesting how it generates stats for years the plugin wasnt even running (let alone developed) - i wonder where it gets those numbers from...

  28. Alex King
    Member
    Posted 9 years ago #

    Popularity Contest seems to have problems with compatibility with a few other plugins... Basically if this ever happens, you have to talk with the developers of the other plugin.

    Generally this is due to another plugin interfering with "standard" WP behavior. To the best of my knowledge, all of these incompatibilities have been solved to date by the other plugin's behavior being fixed.

    It's a really awesome plugin, it's just a bummer about the few complications is creates...

    I understand your sentiment, but I think it's backwards: it's a shame when other plugins break standard WP behavior.

    I also think it's interesting how it generates stats for years the plugin wasnt even running (let alone developed) - i wonder where it gets those numbers from...

    I think you can probably figure that one out. :)

  29. piginzen
    Member
    Posted 9 years ago #

    Alex,

    Thanks for your input...

    And about my last thought... how does it figure that all out? What is the math involved?

    Perhaps my band played too long last night and the beer was flowing too hard... ;)

  30. gregyorke
    Member
    Posted 9 years ago #

    Is there a way to force a recount of comment, trackback, and pingback counts? We've been blasted w/ a lot of comment spam lately and even though we hold, then delete, them, it seems like the Popularity Contest counts get incremented anyway -- yes? I wouldn't want to lose the other data, just "recount" those three types from scratch. Possible?

Topic Closed

This topic has been closed to new replies.

About this Topic