Karim Vaes

Why chop at leaves, when one must dig at roots
  • Home
  • About me
    • Curriculum Vitae
  • Scripts
    • OWA Most Popular
  • Search
  • License
  • Contact

WordPress widget : Most popular posts

I wanted a “Most popular post” section on my blog, but after some bad experiences with “Popularity Contest” (by Alex King) I decided to write my own. As I already had a statistical mechanism that provided me with the data (namely OWA), it was a no-brainer to write a small plugin that would use the data gathered by OWA. So after a bit of coding, a bit of testing, and polishing… it was done. You can find the script (with some installation help) here. If you have any feedback about it, let me know!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • Slashdot
  • LinkedIn
  • RSS
  • StumbleUpon
  • Twitter
Categories
OpenSource, Web, Wordpress
Comments rss
Comments rss
Trackback
Trackback
1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 4.75 out of 5)
Loading ... Loading ...

« Hacker Economics, User Awareness & Virtual Internet Banking Appliance Realizing the position of an IT department within the company »

18 responses

Hey Karim - very cool plugin. The only piece I would

Peter Adams

Hey Karim -

very cool plugin. The only piece I would change would be to use the OWA API for getting the top documents data. That way your plugin won’t break if the OWA schema changes over time (which it will).

Here is some code to get you going:

// OWA must be an active plugin for this to work
global $owa;

// API config values
$owa_params = array();
$owa_params['site_id'] = $owa->config['site_id']; // the current site id
$owa_params['limit'] = '10'; // the number of top pages you want

// API call for Top Pages
$top_pages_data = $owa->api->getMetric('base.topPages', $owa_params);

// Presentation code
foreach ($top_pages_data as $k => $v) {
; // ad your presentation code here
}

Hope that helps. Let me know if you run into any problems.

Whoops. global $owa; should be: global $owa_wp; Thanks.

Peter Adams

Whoops.

global $owa;

should be:

global $owa_wp;

Thanks.

Good suggestion Peter, will try to adjust the script for

Karim Vaes

Good suggestion Peter, will try to adjust the script for that.

New release : http://www.kvaes.be/wordpress/owa-most-popular-version-02/

Karim Vaes

New release :
http://www.kvaes.be/wordpress/owa-most-popular-version-02/

Very cool. There are a few things I was

Mike McLin

Very cool. There are a few things I was looking for… Can you make the most popular list time-specific. Like the most popular posts over the past 7 days or whatever? Also, can you show a percentage showing the stories popularity compared to the sites total views that were tallied? I found another plugin that did this, but I couldn’t get it to work [Boakes MostWanted was the plugin, and it used StatTraq for stats].

That's a good suggestion, will see what I can do...

Karim Vaes

That’s a good suggestion, will see what I can do… ;-)

edit: New version released, with your suggestion.

this is very good web

Shkelqim

this is very good web

It is possible this thigns: I want make an experiment:

Ubytovanie

It is possible this thigns: I want make an experiment: What about every month deleting the most popular topic. It is possible to do that in this module?

This is something you could do manually I guess... What

Karim Vaes

This is something you could do manually I guess… What would the use of this feature be?

Maybe you also interested in one plugin that wraps the

shuron

Maybe you also interested in one plugin that wraps the Popularity contest of Alex King and brings additional “Most Popular” Widget. I call it W-Popularity. It’s full compatible with Popularity contest.

It is possible this thigns: I want make an experiment:

plywoodindonesia

It is possible this thigns: I want make an experiment: What about every month deleting the most popular topic.

It's possible to do so, but it's not within the

Karim Vaes

It’s possible to do so, but it’s not within the scope of this plugin. Check out the api of the OWA framework.

I've created a tutorial implementing the Most Popular posts base

BloggerGeeze

I’ve created a tutorial implementing the Most Popular posts base on most commented post, here is the full tutorial for this: Most Popular Post Widget for your Blogger blog (Most Commented Posts)

Hope you find this helpful.

Nice plugin. Just tested it on my blog :)

Shubert

Nice plugin. Just tested it on my blog :)

Open Web Analytics » Blog Archive » OWA Most Popular

Trackbacks
  • Open Web Analytics » Blog Archive » OWA Most Popular – WordPress Widget
  • OWA WordPress-Widget | eControlling.de
  • Matt Herzberger.com » Blog Archive » Here is your del.icio.us goodness for 02-19
  • tagとranking | NS-GALERIE

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Posts

  • Treating the root cause to cancer
  • Is “entrepreneur” a bad word?
  • Where physics meets marketing
  • Where USSR meets IT?
  • Accepting our limitations, is giving us the opportunity to overcome them!

Similar Posts

  • OWA Most Popular
  • Scripts
  • OWA Most Popular – version 1.2
  • The quality of the internet turning seo-black
  • OWA Most Popular – version 0.2

Recent Comments

  • Karim Vaes on Accept every offer!
  • Danny on The teachings of Budo in Business
  • Pascal on The Service Catalog
  • Shubert on WordPress widget : Most popular posts
  • Dermana Agrı Kesici Krem on OWA Most Popular

Commercial

Categories

2.0 Ads Agile Bash Blogroll Book Brain Business Career Change CIO Collaboration Communication Corner Creative CRM Culture Desktop Development Dreambox Drupal Education Entrepreneur F5 Firefox Food Freelance Fun General Green Growth High Availability Human Resources Idea Infrastructure Insightful Interesting IT ITIL Java Lesson License Life Malware Management Mind Model Motivation MythTV Network NLP OpenSource Performance PHP PM Presentation Project Proverb Quote Remote Scrum Security SEO Social Spam Storage Stress Tactical Team Tech TED Time Management Tip Tool TV Ubuntu Unix/Linux Vids Vim Virtual VmWare Voip Web Wordpress

Archives

  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
rss Comments rss valid xhtml 1.1 design by jide licensed as Creative Commons Attribution