July 18, 2005
Polls and VotingUpdated. Originally posted March, 2004
There are a couple of ways for one to easily add a poll to one's blog.
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?
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!
If you would like to send a trackback
please use the following URL: http://learningmovabletype.com/cgi-bin/mt32/mt-tb.cgi/327
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