W-Popularity Plug-In

wPopularity.jpgNew plugin is born. I’ve created a new branch from the latest version of famous Popularity Contest Plugin.

While the Popularity Contest Plugin does not support widgets natively, you need to code your templates to show most popular list of post on the Sidebar. My Widgetized Popularity Contest Plugin – short W-Popularity solves that, by providing dynamically widget for it.

Here are the features of the first public version of my W-Popularity Plugin:

I do not intend to change calculation logic in the near future, so that is stays compatible, but some other improvements. Please let me know if you desire some…

Download it directly from here or from download page .
Then enjoy the easiness :)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BlinkList
  • MisterWong.DE
  • Slashdot
  • StumbleUpon
  • Technorati
  • NewsVine
  • Reddit
  • Yigg
  • HackerNews
  • LinkedIn
  • Webnews.de
  • Yahoo! Buzz

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

[...] W-Popularity Plug-In von Alexander Holbreich (basierend auf dem Plugin Popularity Contest von Alex King) zeigt anhand [...]

Download it directly form here? One more mistype?

And just not to look like absolute offtop comment: what’s the criteria of popularity of posts is used in this plug-in? Pageviews or what?

I’m running a plug-in with almost same functionality, but it’s based on visitors votes. This one seems somehow different…

Thank you for correction.

In general W-Popularity bases on pages views, that is correct. However it’s a bit more complex, cause, the weight of every view depends on referring source.

So e.g. we distinguish between homepage view (default weight 2) archive and category views(4/6)feed view (1) and permalink view (10).

Additionally the count of comments (20) and trackbacks (80) of one post is considered too.

Here an example:

  • Post #1 receives 11 Home Page Views (11 * 2 = 22), 6 Permalink Views (6 * 10 = 60) and 3 Comments (3 * 20 = 60) for a total value of: 142
  • Post #2 receives 7 Home Page Views (7 * 2 = 14), 10 Permalink Views (10 * 10 = 100), 7 Comments (7 * 20 = 140) and 3 Trackbacks (3 * 80 = 240) for a total value of: 494

However you can adjust this values in the option page (called: wPopularity).

And as mentioned above Popularity calculation in current version of W-Popularity Plugin remains the same as in Popularity Contest Plugin from Alex King.

Now to your plugin:
I’v seen plugin which is used on many pages, but I can’t remember the name of it now. :( In my opinion that is also a good plugin, which gives people the opportunity to give you feedback what they do like on your site. And I think it can be used in parallel, because that are two different things:

1. W- Popularity shows you actually real weighted visits. So I would call it “attention” of the post, which is based on technical statistic.
2. I opposite, your plugin says nothing about this, but it tells which content do visitors like, which may be not the same ;)

Either, I consider to use the second plugin in the future. :)

Thank you for the detailed answer, maybe I’ll try this one too soon :)

I’ll give it a try. I was trying popularity from Alex but it didn’t work with 2.5 (even with all the ../ hacks). Then I got a copy of Boakes MostWanted and it works at least, but I’d like to see what yours can do.
Thanks

Ah, spoke too soon
“Plugin could not be activated because it triggered a fatal error.”

Hi shuron,

For quite long, I’m facing lots of problems with my blog, that’s because of web & sql server spike generated from my blog.

99.99% time, my host reported, the main cause of SQL spike “WP-Postvies” from GamerZ.

I’ve recently shifted my blog to VPS server, but it’s not stabilized yet, becasue of the spikes.

I’m currently going to remove WP-Postview, however, I still want to have a functionality to show “Popular Posts”.

Can you advice about your plugin, will it be able to retain WP-Postview stat, and about SQL queries load?

Thanks

DG…

Hi, sorry for letting you waiting so long for my answer.

I’m surprised about your performance problems with the SQL Server. Do you use MySQL? in which version?

I have no problems with performance so far, whether with W-Popularity or with the popularity contest I used before.

At the moment W-Popularity uses the same DB Queries as the Plugin form Alex King. Will be changed in the future.

Was this helpful?

This plugin doesn’t work for 2.5.x — it causes a fatal error on activation.

Any plans to fix? I really like the plugin.

Thanks…

Could you please be more specific?

WP Version
POHP Version
and if possible error log.

I’ll to borrow some time and will review the plugin shortly.
I promise

Hi Everyone, I’ve updated the W-Popularity Contest Plugin. So you should not have any problems with the Worpdress version above 2.5.

You can download the new version of wPopularity 0.9.3 here:
http://alexander.holbreich.org/downloads/

Hi, thank you for this great wp plugin, i have a question. How can i include the lists of popular posts manually (not as a widget). Something like this? . I’m not a php crack, so i don’t know the solution. Thank you for your help.

I downloaded your latest 0.9.3 version, it still says “Fatal Error” upon activation.

How do I fix this? Please advise.

Thanks.

I can’t activate your plugin:

wp_ak_popularity_options’ doesn’t exist on line: 116

What can I do?

Latest version?

For those who are getting a fatal error, it is due to the tables not getting created when the plugin is activated. To make it work, please run the following sql in your database:

====SQL====
CREATE TABLE `wp_ak_popularity` (
`post_id` int(11) NOT NULL,
`total` int(11) NOT NULL,
`feed_views` int(11) NOT NULL,
`home_views` int(11) NOT NULL,
`archive_views` int(11) NOT NULL,
`category_views` int(11) NOT NULL,
`single_views` int(11) NOT NULL,
`comments` int(11) NOT NULL,
`pingbacks` int(11) NOT NULL,
`trackbacks` int(11) NOT NULL,
`last_modified` datetime NOT NULL,
KEY `post_id` (`post_id`)
) ;

CREATE TABLE `wp_ak_popularity_options` (
`option_name` varchar(50) NOT NULL,
`option_value` varchar(50) NOT NULL
) ;
====END====

Replace the wp_ in the table names with the prefix your wordpress installation tables have.

Thank you guys for helping each other. Unfortunately, I don’t have time for Worpdress due personal issues.

But maybe in some week i will release new version which will possibly fix all the bugs…

Thank you for you patience.

“Thankyou gays” – great typo (:
I didn’t realise this plugin was just for gays. I think I will exercise my equal rights as a heterosexual and use this plugin….

Mike

Uppps :) :) Damm… Corrected now ;)

Disclaimer: This Plugin is copmatible with any orientation. But I have test it as hetero only ;)

You are free to send me other test reports ;)

I cannot seem to create the tables. I use webmin, can anyone help?

Kindly tell me how to I create the field for the last line:
KEY `post_id` (`post_id`)

Please help

Great plugin, Thanks!

Hi, I realised there is a glitch in the widget. Whenever I switch position to the “most popular” widget, the title disappears. Kindly look into this matter. Thanks.

Leave a comment

(required)

(required)