If you're new here, you may want to subscribe to my RSS feed. Not sure how to subscribe to a RSS feed? Read Subscribing to blogs the easy way. Thanks for visiting!
Update 2nd December 2008: The Popularity Contest Widget has now moved to the wordpress.org site. All updates will now appear on the new site.
Popularity Contest is a great Wordpress plugin for displaying your most popular blog posts. It powers the Teapot Highlights over on the right hand side of this post.
One thing missing from Popularity Contest is a widget. We created one for this blog, so we thought we may as well share it for everybody else to use too.
Place the Popularity Contest Widget in your plugin directory (remember to strip the .txt off the end) then go to Presentation > Widgets. You can then drag ‘n drop the widget into your sidebar.
You can edit the title and the number of posts to display. Don’t forget to press the Save Changes button.
Popularity: 36% [?]
Related posts:
{ 3 trackbacks }
{ 15 comments… read them below or add one }
Before, I used to add this Popularity Contest widget manually to my template functions.php, thanks for yours plugin, now I don’t have to
@poer – great. I’m pleased you’re getting some value out of it. No need for us all to go around implementing exactly the same stuff all of the time.
Great job Jack. I’m considering turning a couple of my plugins into widgets. Hopefully its not too difficult!
@ses5909 – I can’t take credit I’m afraid. Dean wrote it who co-owns OPENXTRA. Widgets aren’t difficult so I doubt you’ll have too many problems with it.
Excellent! Thank you for this!
Thanks much, very helpful little widget.
Greetings!
Thanks for the script. However, I encountered some problem upon re-activating the plugin. Initially when I added the widget the popularity contest folder, I was told to upgrade to a newer version. After which the widget disappeared and I was told that my original plugin triggered a fatal error. Kindly assist. Thanks.
@PzheL – am I reading you correctly, did you add the widget to the folder in which the popularity contest plugin is located? If so, when you upgraded the plugin the widget may have been deleted? I wouldn’t recommend adding it to the same directory. Keep it separate.
Oh, yea, I added them to the same directory. No wonder! haha, thanks for the help. great widget! =D
Howdy dudes!
At my blog, the widget dont work correctly. The articlenames are over others… can u give me hints, how to solve that?
When you visit my site, you see the widget at the bottom (the last widget called “beliebte Artikel”).
Thank you in advance!
Chris, Scatterd
@Scatterd – by the looks of it, the widget is using some CSS styles that probably aren’t defined in your template. Will look more closely on Monday when I am back at work and I can talk with the person who wrote the code.
That would be very nice. Thank you
@Scatterd – I’ve had a look and can see the problem, basically whats happening is that the title for your articles are overflowing the space provided for them.
This can be fixed by a slight change of the style ‘.rsidebar ul li ul li’ (line 84 of your style.css).
You can either change the height attribute to ‘auto’, which will then display the full title without the overflow happening (e.g. height: auto;) or add
overflow: hidden;
which will stop the overflow but will also not display the whole article title.
The choice is yours!
Thank you so much. All works fine now
I think this is wonderful – the only thing is, I’d like the percentages to stop showing on the widget – is there any way to do this?