Pollin WordPress Plugin

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.

29 Comments

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

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

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

      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.

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

      • 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)

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

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

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

        • I have the same issue. I can get the vote button to appear by creating a page and adding in the commented html…

          I go to create questions, and save… it shows no questions in my list. Please post solution to this problem! 🙂

          Thank you.

          • Something else… when I go to check out the plugin via “edit plugins” it shows the pollin.php as (active)
            show_poll.php (inactive)

            If this is the issue, how to fix?

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

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

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

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

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

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

6 Trackbacks / Pingbacks

  1. Quartz WordPress Plugin | Bin-Blog
  2. Vocescuola - Polls con WordPress
  3. Quizzin WordPress Plugin for Quiz Creation | Bin-Blog
  4. Plugin Week 2: WordPress Plugin – Weather Man | Bin-Blog
  5. Event Registration, Polls - Surveys, Paypal Integration, Migration from Joomla | WordPress Plugins
  6. Plugin Week promises a daily WordPress plugin for a week

Comments are closed.