Popularity Contest is now at 1.0, including an updated and extensive README. :)
Popularity Contest is now at 1.0, including an updated and extensive README. :)
Nice - I may install this when I get my new design up...
Alex, quite possibly one of the coolest plugins i've used since i started with WP
(Found in archives)
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
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());
}
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.
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?
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.
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?
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.
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!
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.
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.
hetta - anything you did around that time? New plugins perhaps?
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.
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
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!
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).
My other lists have no before and after values. How can I pass that to the function?
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!
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'
:)
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?
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.
Any more suggestions for my problem?
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.
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...
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. :)
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... ;)
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?
This topic has been closed to new replies.