Pollin WordPress Plugin
By Binny V A • Nov 19th, 2008 • Category: Blogging, Scripts, WordPress
Pollin wordpress plugin will let you add polls to your blog. It can be shown to your visitors who will be able to vote in the poll. You can add the poll in a post by including the html comment <!– POLLIN 1 –> in the post. Here 1 is the ID of the poll to be shown.
If you are new to this blog, this is the Plugin Week. I am going to release one wordpress plugin each day, every day for one week(ie. Monday to Friday). Each day you will get a new plugin by me. This is the third plugin in this series. The earlier ones were…
Note 1: Pollin is a beta plugin(as are most of the plugins released in the Plugin Week) - so watch out for bugs. And trust me, there will be a lot of them.
Note 2: I would recommend that you don’t install Pollin right now. It has not yet been accepted into the WordPress Plugin Repository. You can install it using the zip file I provide below - but then there will be some problems with auto updating of the plugin. Its better to wait until WordPress accepts the plugin before installing it. [UPDATE: WordPress have accepted it - feel free to install this plugin now.]
Installation
- Download the zipped file from the Pollin page in Wordpress Plugin Repository.
- Extract and upload the contents of the folder to /wp-contents/plugins/ folder
- Go to the Plugin management page of WordPress admin section and enable the Pollin plugin
- Go to the Polls Management page(Manage > Manage Poll) to create or edit Polls.
Screenshots



See it in Action
Feedback
If you have any suggestions or notice any problems with the plugin, post it in the Pollin forum.
Keep your eyes peeled for the next plugin - to be released tomorrow.
Bin-Blog
Follow me(@binnyva) on Twitter
sounds good
can we add links and images, in questions ?
@dinu
You can add images in the question easily - it has a WYSIWYG editor. You can do it in the answer too - but that just has a textarea - so you have to type in the HTML to do that.
great plugin dude…..but I would like to see ajax implemented in the next realease of this plugin…..
great plugin. agree with Roshan.But got problem after install it. Preview in summary post show this…….
function init() { jQuery(”#poll-form”).submit(function(e) { var answered = false; jQuery(”#poll-form .answer”).each(function(i) { if(this.checked) { answered = true; return true; } }); if(!answ…………
But it’s it work ok on full post.
[...] Pollin WordPress Plugin [...]
[...] avete intenzione di realizzare sondaggi utilizzando WordPress date uno sguardo a Pollin wordpress plugin, lo sto provando in questi giorni. Sempre dallo stesso programmatore un plug-in per realizzare [...]
Hello Binny, how are you? Well, I’d like to know if it’s possible to put your plugin - Pollin - on the sidebar, or just work on the content? thanks!
There is a way - add the code…
< ?php pollin_insert_poll(POLL_ID); ?>
in your template file - that should show the poll at that location. POLL_ID should be replaced by the ID of the poll that you want to insert.
Thanks a lot my friend… I’ll try to use this code… thanks again! see you!
I want to inform you about problem I had with this plugin that I think it is related with version of MySQL. On one server with MySQL version 4.0.26 I had following message when opening administration page:
(screenshot)
When I tried to make new poll, it wouldn’t be saved.
On my servers running MySQL 5 there aren’t problems.
This is a known issue - MySQL 4 don’t have sub query support - which MySQL 5 has. That’s why this error shows up in MySQL 4.
You should give a note in description that it can’t be used on MySQL 4.
I found another bug in this plugin that is visible on working installation. If there are quotation marks ( ‘ or ” ) in either question or answers, they are replaced with \’ and \” respectively, so it’s impossible to use any HTML code (which you said as possible) nor quotation marks in normal situation. I think that you should fix this.
(note that WordPress will maybe preformat quotation marks entered in this comment)
And you should call jQuery using wp_enqueue, not directly.
Thanks for tips - I’ll fix the issue in the next version.
Great! I have one more suggestion for future releases. It would be good to have options to reset or manually edit number of votes.
Why this is needed? Lets say that author of poll have been testing how does poll works and since he needed to vote, his vote is counted too. And he maybe voted several times and that can affect polling. Thats why after he finish testing he simply reset (if he tested on begging) or manually edit (if voting already started).
Also, some commentators asked for AJAX results. I am against it since all other poll plugins use AJAX and this is only one that is different and I think that it should stay like that. Another option would be to user choose if they want AJAX or classic look.
Thanks.