Learning Movable Type: 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.



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.

Note:

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.


Posted by Elise Bauer on July 18, 2005 12:32 PM to Learning Movable Type http://www.learningmovabletype.com/