July 18, 2005

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

What is your favourite operating system?


   (Display results)

Powered by Poll and Voting Script 1.6

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.

Has this tutorial been helpful? Please consider linking to Learning Movable Type at http://learningmovabletype.com/ . Thanks!

Posted by Elise Bauer on July 18, 2005 to Weblog Goodies
Comments(1) | Email to a friend | Printer-friendly version


If you would like to send a trackback
please use the following URL: http://learningmovabletype.com/cgi-bin/mt32/mt-tb.cgi/327

» Easy Surveys and Polls with a Movable Type Weblog from Eat Drink Sleep Movable Type
A tasty dessert filled with chocolate, caramel, and PHP-goodness, smothered in fresh HTML an CSS...[read more]

Tracked: February 27, 2006 02:49 AM


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...

Post a comment

(Before posting a comment please see the Comments and Trackbacks Policy. Do you need help troubleshooting your weblog? Please post questions and requests for support at the MT Support Forums. Thanks!)

Remember Me?

(you may use HTML tags for style)

Email to a friend

Email this article to:

Your email address:

Message (optional):