Bin-Blog logoBin-Blog

Learn about the latest in Web Development – as soon as I do.

Pollin WordPress Plugin

By • 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(Tools > Manage Poll) to create or edit Polls.

Screenshots

See it in Action

Pollin Plugin Demo Page

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.


35 Responses »

  1. dinu says:

    sounds good :) can we add links and images, in questions ?

  2. Binny V A says:

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

  3. great plugin dude…..but I would like to see ajax implemented in the next realease of this plugin…..

  4. bear says:

    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.

  5. […] 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 […]

  6. Hallan says:

    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!

    • Binny V A says:

      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.

  7. Hallan says:

    Thanks a lot my friend… I’ll try to use this code… thanks again! see you!

  8. Milan says:

    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:

    WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘SELECT COUNT(*) FROM wp_pollin_answer WHERE question_ID=Q.ID) A]
    SELECT Q.ID,Q.question,Q.status,(SELECT COUNT(*) FROM wp_pollin_answer WHERE question_ID=Q.ID) AS answer_count FROM `wp_pollin_question` AS Q

    (screenshot)

    When I tried to make new poll, it wouldn’t be saved.

    On my servers running MySQL 5 there aren’t problems.

    • Binny V A says:

      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.

      • Milan says:

        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)

      • Milan says:

        And you should call jQuery using wp_enqueue, not directly.

        • Binny V A says:

          Thanks for tips – I’ll fix the issue in the next version.

          • Milan says:

            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.

  9. […] Plugin Week 2. In Plugin Week 1, only wordpress plugins where release(they are Eventr, Autofields, Pollin, Surveys, Quartz and Quizzin). This time around, I will not restrict myself to WordPress plugins […]

  10. jason says:

    In Pollin when you use a word like don’t. It comes out don/t. If you could fix it that would be great. Thanks.

  11. JonVic says:

    Great! I installed this and when i go ‘manage polls’ even though i have created 2 polls nothing shows in the list for me to edit etc. If i add the HTML code in my posts all i get is the question and a vote button and nothing else. Better still i deactivated the plug in and then reinstalled it to see if that was the issue and even though i have deleted it and deleted the folder in the wordpress folder structure, when i do a clean re-install the questions i had added before still show up if i add the HTML code in my posts.
    So basically if i delete this plugin it still holds the data for the polls which it should not do. Not impressed i have to say and i would like to know how to wipe this question data off my wordpress please when i have deleted the plugin as i do not want any clutter i do not need. If you delete it should delete EVERYTHING but it does not.

  12. Holger71 says:

    Doesn’t work this nice plugin with php5 and WordPress 2.8.3 ?

    After the installation i take a question and answers for the poll but after saving there is only “No questions found.” and no poll or poll-id.

    is it a Bug?

  13. Elena says:

    I’ve got the same problem with no questions shown after I’ve saved them. I work with WordPress 2.6.5. Have you already found a solution to this bug? Thanks in advance!

  14. Alberto says:

    Hello, i recently download this plugin but it doesnt work… When im trying to add new poll a confirmation message apear “Question added” but theres is nothing to show….

    Where’s the MySQL code to add it on DB ? Thanks

  15. Jay Benton says:

    I installed it and had problems with the answer database not being created. So, I found the create statements and modified them so they are two separate commands and the problem went away.

    The big issue is that if they refresh the page with the poll, they vote again.

  16. Hallan says:

    Hello Binny… how are you? I’m here again… so… I did a upgrade in my wordpress and I saw that your plugin doesnt work… so I’d like to know if you will do a upgrade on your plugin or if you have something to fix the problem…

  17. JK says:

    Hello Binny. In WP 2.9.2, when I install Pollin, “Widget” site goes mad, until I deactivate Pollin and the same old problem with creating questions/answers (looks like MySQL creates just question table). Looking forward to new upgrade… good luck

  18. Does not work with 2.9.2

  19. […] first three plugins are Eventr, Autofields and Pollin. Eventr enables WordPress to be used as an event management tool, Autofields will auto fill the […]

  20. Rich says:

    I tried to install the pole plugin, but it does not work. I am using the lastest wordpress.

    The plugin says installed. However, it does not work…

    I click “create a new poll” I fill in the information, and then, hit save. It says poll saved, but it does NOT show up…

    my blog is http//pettelle.com.

    ~Rich

  21. Tito says:

    Rich i have the same problem….tell me if you found any solution for it.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>