Bin-Blog logoBin-Blog

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

Surveys WordPress Plugin

By • Nov 20th, 2008 • Category: Blogging, Scripts, WordPress

The Surveys WordPress plugin lets you add surveys to your blog. You can let the visitors take surveys and see the result from the admin side. The user who take the survey can enter their details at the end of the survey – or leave it as an anonymous result.

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 fourth plugin in this series. The earlier ones were…

Note: Surveys 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.

Usage/Screenshots

First, Download, install and activate the Surveys plugin. Then go to Manage > Surveys section to create new surveys – or edit existing ones. After creating a survey insert the HTML comment [SURVEYS 1] into a post. Here, the 1 should be the ID of the survey you want to insert into that post.

The client side of the plugin will look something like this – your visitors will see this part…

You can see the result of the survey from the admin side – there are two ways to see the data…

Aggregate

This will show the results each question by aggregating all the data so far. This will look like a poll result. This mode is useful to make decisions – you can immediately see the most favored answers for each question.

Individual Responses

You can also view all the answers provided by each visitor one by one. This mode has its uses as well.

See it in action

I have set up a demo for Surveys over at BinnyVA WordPress demo blog. Take a look.

Feedback

If you have any suggestions or notice any problems with the plugin, post it in the Surveys forum. I’ll take a look at it – as soon as the Plugin Week is over – I am way too busy right now :-)

Next plugin – will be released tomorrow.


266 Responses »

  1. Kenny says:

    Hello, nice plugin!

    A bit of feedback though – I’ve been working on customising the “Enter Contact Details” page and through testing, managed to accumulate a whole bunch of redundant responses.

    It’s good that I can delete the responses one by one in Manage Surveys (Show Individual Responses), but a “Delete All” button would have saved me so much time. It would be useful when you want to totally reset a survey too!

    Feel free to ignore :-) thanks for the hard work!

  2. Manuel says:

    Is there a way to translate this plugin? I’ve tried to edit the .po file in the lang folder using “PoEdit”; but no texts are changed.

  3. Marie says:

    Hello,
    first of all many thxs for this plugin. Very usefull and working with Czech language. I´ve created first Survey and don´t know how to manage to display answers with checkboxes into a 2 colums. Anay idea?
    And the spaceing between the lines is too big, is it possible to make it smaller?
    I would be happy if someone will help me – I am not IT person at all and the survey is needed for thesis and still doesn? look like nice :-( .
    Many thanks.

  4. Karolina Nilsson says:

    Hey!

    Many thanks. This was just what I was looking for.

    I can’t ger the shortcode to work though. Is there any other way to implement the survey into a page or post?

    // Karolina

  5. Toby says:

    Hi there, can’t see how to export to CSV, can you assist?

  6. Plugin looks good, works fine.

    Maybe the option to ask for mail and name at the end could be disabled? (option perhaps)

    Also, a way to display all the surveys (as links?) would be nice.

  7. Clif says:

    I recently upgraded and I get the following error:

    Fatal error: func_get_args(): Can’t be used as a function parameter in /hermes/bosweb/web013/b138/nf.clk/public_html/aacrlocksmith.com/wp/wp-content/plugins/surveys/wpframe.php on line 59

    So I re-downloaded the previous version and it is working again. Any suggestions?

  8. JB says:

    New version broke.

    I get – Fatal error: func_get_args(): Can’t be used as a function parameter in /home/xxx/public_html/wp-content/plugins/surveys/wpframe.php on line 52

    php 5.2.17

  9. JB says:

    Thanks. That works. :)

  10. [...] can be utilized for creating and hosting surveys. Though for blog writers using WordPress there are survey plugins available that let you host everything on your own site, which gives the advantage of maintaining [...]

  11. Hi,

    I’m moving my site to a new wordpress installation and I want to export the current survey data I have. I found a way to export to csv, but I cannot see how to import this data back into the survey plugin installed in the new website. Is this possible? I also tried exporting the database info for the survey tables but could not get that to work either.

    Any advice would be greatly appreciated!
    -Andrew

  12. Jason says:

    Is it possible that only registered users can complete the survey?

    therefore eliminating the name, email etc.. part of the survey, and also helping identify the users of each survey?

  13. Greer Taylor says:

    I am using survey to have a committee of 5 people assess applications for a number of different applicants. I would like to have one survey for each applicant to keep the information separate for each applicant.
    I was wandering if I would be able to duplicate a survey so that I do not need to recreate the questions multiple times.
    thanks Greer

  14. Greer Taylor says:

    I am having trouble exporting to CSV using the export function under individual responses table – I get a message that the page cannot be found…

  15. Hello,
    I am looking for a poll plugin that will able open ended questions also i.e. : thoughts and reactions on a certain discussion topic. Is that possible with this or does it need to have a multiple choice answer? We are trying to get info without influencing.
    Thank you.
    Isabelle

  16. Nick says:

    Nice, simple, elegant plug-in, but big problem: it permits same person to respond to same survey many times, leading to corrupt results. Is there any way to block repeat votes from same IP? Thanks!

  17. Joel says:

    I get an error as well Invalid argument supplied for foreach() … show_survey.php on line 24

    Any help greatly appreciated.

  18. Andy says:

    I have one question with multiple answers so the NEXT button doesn’t work. My users don’t know that of course so I have to manually direct them to click SUBMIT and ignore NEXT. Any way to edit the code and lose the NEXT button?

    Andy

  19. Matt says:

    Just wanted to say thanks. Spent a few hours researching, tried a few others that were no good. This was simple to use and fits in perfectly with the design of my site.

    I had my test survey up in about 5 minutes (I stuffed around with the others for ages) and I only had 1 bug that was fixed in about 2 minutes with the help of your forum. Great plugin and great support forum, thanks very much!

    Matt

  20. Andy Hoffman says:

    How can I edit the “Thank You” text and possibly add a checkbox for a newsletter opt-in?

  21. Batuhan says:

    Using a database browser i can see that the data is still there, but as there is currently no export function, i cant decypher the export, when I click export the ram usage of plug-in up to 250MB but I can’t see the results. There is a lot of submissions over 500…

    What can I do to use the export function?

    Thanks,

  22. Charlie says:

    Perfect, just what I’ve been looking for. Thanks a lot Binny!

  23. Justin says:

    Have you experienced any conflicts with fancybox and your plugin? I’m getting a few new fancybox-related errors, that are only appearing specific to the page the survey is on. Not positive your plugin is causing the conflict, just seems to be the common denominator.
    Otherwise, awesome plugin that has saved me a ton of time and grief!
    Thanks

    • Justin says:

      figured it out. you are loading jquery which was screwing up my load of jquery. you should think about adding a checkbox in the settings to enable/disable load of jQuery. really common problem amongst plugins. keep up the great work though, overall still a great plugin.

  24. Rick says:

    Very usefully info!! I will be trying it soon, hopefully i don’t come across any issue.

  25. Jane says:

    Hi Binny,

    I would like design a test for my visitors so that they can answer a series of questions (20-40, i think) and each question would have a score, and based on the range of the total score, they get an answer, which is sort of like a personality test. For example:
    0-10 They should give up
    11-20 They can try but will run into difficulty
    20-30 They will succeed

    I looked at your quiz/survey, and not sure if it would support this type of “test”. Thanks!

  26. [...] Details at the original Surveys WordPress Plugin post in the blog of Binny V A or on the page of the Advicio(R) ServDesk [...]

  27. Andy Hoffman says:

    The survey plugin is working fantastically! I would like to add a captcha so that no bots are filling this out… Does that functionality exist?

  28. Maddalena says:

    Hello!
    I found your Survey plugin very useful and nice and very easy to use :) —–
    I think your plugin could be the right solution for me.
    I have just started to design my own surveys but before let people take these surveys I would like to kindly ask you some information.
    1_Is there a maximum number of different surveys I can create in the admin dashboard?
    2_Is there a maximum number of answers of different user I can collect?
    Thank you in advance.

  29. You plugin is just wonderfull.

    I translated the .po file in French.
    Everything works fine except the recieved email wich give funny characters with accents.
    In WordPress, all the accents are there and are good everywhere.
    WordPress character-set is: define(‘WPLANG’, ‘fr_FR’);
    In poedit I used: fr_FR

    I tried a brand new installation of the server: SME-8.0, WordPress-3.4.1, new Surveys and still the same problem.

    I am using Window$ XP.
    I tried with an OpenSuSE station.
    Still the same problem.

    The file can be downloaded here:
    http://www.micronator.org/Public/Survey/surveys-fr_FR.po.zip

    Where did I go wrong?

    Thank you for your feeback,

    Michel-André

  30. Hi again,

    I made a PDF how to install Surveys. It is available here:

    http://www.micronator.org/PDF/RF-232_SME-8.0_WordPress-3.4.1_Surveys.pdf

    Thank you again,

    Michel-André

  31. pedro says:

    Hello i ahve a couple of questions:
    1. how can i make some field “required”?
    2. how can i change the thank you page to remove the name and email field input

    thnak you a lot for your attention

  32. pedro says:

    ok. what code needs to be modified?

  33. Hello Binny VA

    It was the character code in FireFox (8859-1 vs UTF8)

    Sorry for that.

    Michel-André

  34. Keyra says:

    The example shown has only multiple choice questions…is it possible to have questions where personal answers can be written?
    Thanks

  35. T says:

    Hi I have installed the survey plugin and its working perfectly,

    Just one question, I need to put a continue button with a custom link which will execute a script on the Thank You page, where can I find this page.

    Thanks

    T

  36. David says:

    It is possible to add multiple surveys in one page?

    [SURVEYS 1]
    [SURVEYS 2]
    [SURVEYS 3]

    I got an error:
    Warning: sprintf() [function.sprintf]: Too few arguments in C:\xampp\htdocs\hp\wp-content\plugins\surveys\wpframe.php on line 53

  37. Valerio says:

    Hi, is it possible to check user ip? if not, which files have I to modify in order to receive individual email results containing user ip?
    many thanks

  38. gagarine says:

    I just solved some bug with the export… you can find a patch at https://gist.github.com/gagarine/5030254

  39. AL KIEL says:

    I LOVE THE SURVEY PLUGIN – I ATTEMPTED TO USE IT IN A WIDGET AND IT WILL NOT WORK – IS THERE A WAY TO USE IT WITHIN A WIDGET?

  40. protagonists says:

    Hi there, Survey is an fantastic plugin, but I got kind of a problem:

    > Delete all Responses does delete the Response but it DOES NOT delete the statistics. How do I delete the statistics?

    I really appreciate your help.

    Sascha

  41. bobv says:

    What’s the best way to show users the survey results? A lot of surveys let people see results on the front end after they submit. Reading the description, it looks like results are only visible on the admin back end.

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>