« Yearly Archives | Main | Optimizing Your Blog for Search Engines »

Polls and Voting

Updated. Originally posted March, 2004

There are a couple of ways for one to easily add a poll to one's blog.

1. BlogPoll

BlogPoll is a free service that can host your poll. You use Javascript to display the poll on your site.

Note that the BlogPoll script uses a stylesheet that has a "content" class that may override your CSS "content" class in your blog stylesheet, causing some funky coloring on your site. If you experience this problem, to fix it, add a link rel tag right after the BlogPoll script code like so:

<link rel="stylesheet" type="text/css" href="http://www.yourblog.com/styles-site.css" />

Adding the link rel in that spot is not exactly valid XHTML, but the script itself doesn't validate. So there you have it.

2. PHP Poll and Voting Script

If your weblog is php enabled, with the PHP Poll and Voting Script from Stadtaus.com you can add a poll to your weblog.

Favourite Operating System - Voting Script 1.6

Favourite Operating System

What is your favourite operating system?


   (Display results)

Although the documentation says that the style and layout is customizable, it is not clear how to do that best. You need to know CSS and HTML pretty well to customize the look of the poll and results.


If you put a poll like one of these into a blog entry, rather than an index template, you may need to set Text Formatting to "None" in order to get the poll to display properly. The default setting for MT blog entries is "Convert Line Breaks". If you set the formatting to None, you will need to insert break tags <br /> where you want line breaks to occur in the entry.

Comments (2)

I liked Blogpoll for ease of use, but my users have advised me that the advertisers who link to it are often "adult" in nature and not suitable for my brand. Just a warning...


Thanks Elise for another great tutorial.

I would like to recommend another method.... "Easy Surveys and Polls with a Movable Type Weblog" from Eat Drink Sleep Movable Type.

Dan's solution for enabling voting on your site, is very straight forward and can be set up in 10 minutes.

After setting it up, I then integrated it onto my main blog using MTOtherBlog in the same way I set up my Photo Album using your tutral here.

Together they work great and offer an excellent solution.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)