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.
Thanks for this plugin, Binny! It’s really easy to use.
I’ve got it running on my blog for a survey on the Texas Tech/Oklahoma game this weekend. Some feedback and questions:
1) Being able to force an order of the questions would have been nice. They didn’t come out in the order I put them in; neither were they alphabetical.
2) If you only have on question in the survey, it would be nice if only one click were needed.
3) Does it place any sort of limit on the voting by individuals?
1) That’s odd – it works out correctly for me. Anyway, reordering questions is a feature I will add in the next relase – that should fix the problem.
2) Good point. I actually have another plugin – Pollin – that is used for single questions cases. But I’ll add that feature to the Surveys as well.
3) This limit exists in the Pollin plugin – again, I’ll add it to surveys as well.
Thanks for the feedback.
When I click Manage Surveys, I get two boxes:
Name the Survey and Description.
I type those in, click on Save and all I get is a blank page on survey_action.php.
Any Ideas?
I had to signup for a ConstantContact account inorder to host a survey for my higher secondary investigatory project.
This one is an awesome release.
I hope you’ll put up a poll with the “pollin” plugin to select the favourite plugin out of those released this week.
Great plugin this will come in very handy on my blogs.
Installed your plugin v. 1.00.1 on WP 2.5.1/Linux/GoDaddy
When I click on New Survey, then Save, I get a “Nothing found” error on plugins/surveys/survey_action.php
Any ideas?
I love using the plugins.. 😉
Nice one.
Love the concept and simplicity of this plug-in, however my first test was a simple single question survey. When inserting the comment:
into a post or a page I see nothing in the WordPress page. Using the current version of WP.
we waiting for you.
we love you and we love your plugins.
is there a way to add pictures?
@matt
Yes, you can add images in the question easily. It can be added in the answers too – but you have to know HTML to do that.
Hi
This looks to be a most useful plug-in.
Unfortunately I seem to be getting 2 votes recorded for each single vote so the results are in effect doubled.
Currently running word-press 2.6.3. under MAMP PRO on my Macbook Pro.
Any thoughts?
I fixed the bug with
change line 10 in survey_action.php from:
$_REQUEST[‘submit’]==’Save’
to
isset($_REQUEST[‘submit’])
all in the if statement
Not everyone uses English 😉
Great plugin!
Sorry, after “with the” insert “blank page on survey_action.php” in my comment 😉
@spine
Thanks for the fix – it will show up on the next release.
btw do the same in line 8 in questions.php
unfortunately I still have another bug: my questions won’t get displayed in the acutal post. I do get the “next” button but no questions or other information.
I guess it still has something to do with the language dependant code.
Spine, I get the same issue on my blog I can see the next button but my questions won’t show up for some strange reason.
Any help would be greatly appreciate Binny and thanks for a great plugin if I can get it working I’ll do a quick youtube video about it… 🙂
great stuff
This is apparently broken in the latest version of WP
@Chris Orbz
Latest as in 2.7 or 2.6.5 ?
I’m using 2.6.3 and it isn’t working for me at all…
I use WP 2.7 (and 2.6.3) , but can’t add question’s in my survey :'(
Hi, I want to use the survey, but for some reason he does not show the survey in the order I want to show it.
For example in admin:
Question 1
Answer 1, Answer 2, Answer 3
Is shown as
Question 1
Answer 1, Answer 3, Answer 2
What is the solution for this?
Thnx
@LJ
I am working on a fix for this problem – it will be included in the next release.
It doesn’t work for me either. When I click on Manage Surveys on my dashboard, it immediately takes me to my site where there is a 404 error. I haven’t upgraded to 2.7 yet.
I have alot of the above problems.. out of order questions etc. But when I tried to show the indvidual response it just repeated the data form the first one over and over for the various dates adn times the form was filled out.
Also FYI… when I deleted a survery I got two error messages on deleting the database. I did not copy them sorry. But if you try the same thing you might get a clue as to what some of the probems might be??
How do you install the survey on your blog after you create it
I cant find any where to get the HTML code for the survey
to install it on the blog
Help
@Allan Fine
Got to the page where you can add the questions to the survey. The HTML code to insert into the post will be shown at the top..
Probably will work…
? it doesnot show the code. maybe this works… the code is shown on the site.
anyway use
I would love to be able to have multiple-check items in the survey, rather than just single-answer questions.
I would also like to be able to allow text entry as a question, so people can add comments, or to allow you to ask open-ended questions, such as “Why don’t you buy all your groceries from XYZ shop?”.
This is a feature that has been planned for the next release.
I got some stupid Division by zero errors..
what did i wrong…
check this url for screen shot..
http://s5.tinypic.com/2rmbg60.jpg
Thanks for reporting it – I have fixed the bug. The fix will be available in the next release. If you can’t wait, shoot me a mail and I’ll send you the latest version of the code. My email address is binnyva, gmail.
This is a great find. Thanks. I was looking for a surveys plugin so I can run mini polls. I’ve got a couple of other ideas I can move forward with now.
I just love playing about with plugins, even though half of them I never end up using, it’s all the big learning curve.
Have a great day! I’ve bookmarked you now.
Thanks for your feedback. I’ll see if I can add this feature in the next release.
I am about to give up and delete your plugin as it DOES NOT work for me.
I created a survey with 4 questions. When I added this line:
in the post and save it, the line are being replaced by this:
.
And yes I was in HTML mode in the post.
When I view the post it only shows
By the way: On this page you say to use , on the survey question page it says: .
I have tried both. What’s right?
The correct method is [SURVEYS 1] – the other method is old.
The lines disappeard from my last submitted question coz I forgot it takes HTML. Hence same question one more time.
I am about to give up and delete your plugin as it DOES NOT work for me.
I created a survey with 4 questions. When I added this line:
“”
in the post and save it, the line are being replaced by this:
“”
And yes I was in HTML mode in the post.
When I view the post it shows:
“”, remark the automatic added space before the exclamation mark.
By the way: On this page you say to use “”, on the survey question page it says: .
“”
I have tried both. What’s right?
html removed again. Nevermind. I give up. 🙁
I put in [SURVEYS 1] as you said, but it still doesn’t work. I only get the result as text. Here is the link to the post I’ve made: http://trana.as/2009/04/test
I does not work for me. My problem is same as is with the guy above me.
It does not show servey, but the text itself
I just dropped the plugin. It doesn’t work
Hi,
I think I’ve uncovered several bugs in version 1.00.1 of the Surveys plugin (a clean install on WP Version 2.7.1), two of which are minor and one of which causes data corruption.
1)
When looking at the individual responses (individual_responses.php) the link to “All Responses” does not go back to the right survey. The
ID?>
statement on line 67spits out the wrong ID as it returns the ID of the last respondent and not the ID of the survey. Perhaps usingwould fix this.
2)
When looking at the individual response (show_individual_response.php) the wrong responses get displayed. This may be due to the
WHERE A.question_ID={$q->ID}
statement on line 20. From what I can tell this ties the question to the answer just fine but completely forgets to tie the answer to the respondent. I would venture that this linking is designed to be achieved with the wp_surveys_result_answer.result_ID field. This would be easily fixed by adding an appropriate AND to the WHERE clause.3)
Now here comes the clincher: The wp_surveys_result_answer.result_ID field does not get populated with the respondent ID field but with the survey ID (ref line 19 on show_survey.php). So there’s no way to tie back the responses to a respondent. And now we have a big problem since we can’t display, edit or delete individual responses from a survey.
IMHO that last issue is a bit surreal for a plugin whose sole purpose is to manage surveys.
I hope this helps improve the code and reminds people (including myself) that failure to properly test can break your reputation in a heartbeat.
Thanks for the feedback – most of the problems have been already fixed. The new version will be released shortly. If you want the latest version, get it from http://projects.binnyva.com/forum/viewtopic.php?f=14&t=317#p648
Whoosie… some things went missing in the post…
Point 1) should state:
The “$survey->ID” statement on line 67spits out the wrong ID as it returns the ID of the last respondent and not the ID of the survey. Perhaps “$survey_id” using would fix this.
Hi! Binny,
Yesterday i installed your plugin on my site. I have posted 3 questions in the survey, On first page i’m seeing all 3 question on same page along with next button on pressing next i’m seeing 2nd question as expected and thereafter the plugin is working fine. Please guide.
I’m using your plugin version 1.01.0.
Wordpress version: 2.7.1
Regards,
Ritesh
Go to admin > Settings > Surveys Settings and set the number of questions per page as 1. That should fix the issue.
Hi,
I installed your plugin and on adding the first survey (hitting ‘Save’ on /edit.php?page=surveys/survey_form.php&action=new) I get:
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 ‘s plugin’,’1′,NOW())’ at line 1 for query INSERT INTO wp_surveys_survey(name,description,status,added_on) VALUES(‘Survey Test’,’Testing the Surveys plugin’,’1′,NOW())
This is on survey_action.php. I’m using MySQL 5.1.
That’s really odd – I don’t have this error. Anyway, I’ll take a look into this.
Hi Binny! Thanks for taking time to develope and share this plugin!
I’m having difficulties from the beggining 🙁
When clicking ‘Survey Settings’ I get this error:
Warning: require(/var/www/sites/domain.com/blog//wp-content/plugins/surveys/options.php) [function.require]: failed to open stream: No such file or directory in /var/www/sites/domain.com/blog/wp-content/plugins/survey/surveys.php on line 56
Fatal error: require() [function.require]: Failed opening required ‘/var/www/sites/domain.com/blog//wp-content/plugins/surveys/options.php’ (include_path=’.:/usr/local/lib/php’) in /var/www/sites/domain.com/blog/wp-content/plugins/survey/surveys.php on line 56
What could this be? Cheers!
Thanks for the feedback – I have not yet seen this error. I’ll take a look.
I solved this one Binny! Thanks anyway! The path was wrong :-s
Looking forward to seeing your latest version. Keep up the good work, it is tough but you are hanging in there!
hi, i’ve downloaded the plugin and would like to try and put it on the sidebar. how do i do that?
You cannot put it in the sidebar in the current version of the plugin.
And can we add it in a static page? If so how the code should be?
Thank you very much,
Maria.
Use the same code – [SURVEYS 1]
I used the code of [SURVEYS 1] in the html format. However, it didn’t show the survey form.
also, i tried to add questions to the survey, i was told it was added. however, it didn’t show anything under questions.
Thanks,
Frank
Hi, I installed the plugin in WP 2.71 and get this error:
WordPress database error: [Table 'wpdb.wp_surveys_survey' doesn't exist]
INSERT INTO wp_surveys_survey(name,description,status,added_on) VALUES('Schoonmakers','Hoe schoon is onze binnentuin?','1',NOW())
what do I do?
Try deactivating and re-activating the plugin. The error is caused because the plugin was unable to create the database table automatically. Could be a permission issue for the database user.
Hmm, did that now I get:
Fatal error: Cannot redeclare surveys_add_menu_links() (previously declared in /var/www/wp-content/plugins/surveys/trunk/surveys.php:17) in /var/www/wp-content/plugins/surveys/surveys.php on line 23
I have created a new version of the plugin – I think the problem is fixed now. Please update the plugin on your site – and let me know how it goes.
Hi, It works now. Thanks…
I get the same error on 2.7.1 as well, I’ve deactivated and re-activated the plug in. Its not a permissions issue, the database user has all privileges. I really like this plugin and would like to use it, but need to resolve these errors.
I have created a new version of the plugin – I think the problem is fixed now. Please update the plugin on your site – and let me know how it went.
Where can I download the new version, all the links point to the wordpress.org site which is the version from yesterday.
Nothing I can do about it – the wordpress system will automatically switch the version, I think.
Great plugin – thanks.
I’m using it here: http://morecanals.com/fans/health-check
Wondered if there’s a simple way to increase the width of the input text boxes?
Brilliant work – much appreciated.
Binny, I have the same question as Dubber.
I am using your survey here:
http://wordpress.kr-i.com/ask-questions-for-free/
And would like to enlarge the width and height of the free text response box.
Love your work!
Karl
You’ll have to edit the code for that – Open show_survey.php in the surveys folder and change the lines 130-135 according to your needs.
Hi Binny V A,
I tried to install you survey, but get a 404 error when I create a new survey. I suspect it has something to do with moving my site’s URL location to the root directory (sorry-I am sketchy on the details of what I did or how I did it (it’s been a while)–i just set it so the URL appears to come from my root domain instead of my install folder).
I’m excited about this plugin. Any ideas?
Thanks,
Jeff Hajek
Just an update.
I got this working by tinkering with the code. Basically, I just kept searching the php files for references to “wp-admin” or similar directories, and adding in my own directory. Eventually I hit on the right combo (can’t quite recall which files had the magic touch), and got it working
Works great now.
Thanks.
I started experimenting with your Surveys plugin in WP 2.7 and ran into problems when assigning questions. Turns out the problem was your use of short php tags in a couple of places in the question.php file. If you do a search for those short php tags and replace them (don’t remember if there were two or three), it so far seems to work in 2.7.
How can I limit the number of times one PC can vote? via cookie or IP.
It’s really important, otherwise the system is easily gamed.
Unfortunately, that cannot be done in the current version. Its a planned feature for the next version.
I was wondering if you could help me figure out what the following error means?
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 ” at line 3]
SELECT Q.ID,Q.question,(SELECT COUNT(*) FROM wp_surveys_answer WHERE question_id=Q.ID) AS answer_count FROM wp_surveys_question AS Q WHERE Q.survey_id=
Hi,
Is there anyway to share one survey on many diferent posts but having responses with the ID of the post?
thanks
cedric
If I want to display the survey someplace other than in a post, maybe the default.php file. Is there a PHP command I can use to call the function? and the survey will appear.
Thank you!
I attempted the plug-in on my site but was un-luckily did not suceed fully.I will require your help in achieving success.I followed procedure as given but did not succeed?Is the survey ok with word-press version 2.8.
I uploaded content to /wp-content/plugins/folder activated the plug-in and then went to settings and clicked on surveys setting which resulted in to following error message. pls respond.Thanks.
Warning: require() [function.require]: Unable to access /home/vhosts/technical-world.freevar.com//wp-content/plugins/surveys/options.php in /home/vhosts/technical-world.freevar.com/wp-content/plugins/surveys.php on line 56
Warning: require(/home/vhosts/technical-world.freevar.com//wp-content/plugins/surveys/options.php) [function.require]: failed to open stream: No such file or directory in /home/vhosts/technical-world.freevar.com/wp-content/plugins/surveys.php on line 56
Warning: require() [function.require]: Unable to access /home/vhosts/technical-world.freevar.com//wp-content/plugins/surveys/options.php in /home/vhosts/technical-world.freevar.com/wp-content/plugins/surveys.php on line 56
Warning: require(/home/vhosts/technical-world.freevar.com//wp-content/plugins/surveys/options.php) [function.require]: failed to open stream: No such file or directory in /home/vhosts/technical-world.freevar.com/wp-content/plugins/surveys.php on line 56
can restrict the survey to users who has login to your web?
another question: can you add following data to record, for the users, the answers he has selected?
thanks very much
how to modify this pluign to support other language asia language?
this version can’t recognize chinese character
this pluign is coding by utf8?
Hi, I installed it, activated it, got an error, deactivated it, reactivated it (no error) but I can’t see “Manage > Surveys” anywhere? I’m using 2.8 and I’m new to WordPress. Am I missing something? Thanks!
Try Tools > Surveys in the admin side.
Excellent, thank you – that worked a treat!
I am unable to add a new survey. I get a message You do not have sufficient permissions to access this page. However, I am the administrator.
How can I export the results into a csv file?
Hi Binny, I’m getting the same error as Tom above – “You do not have sufficient permissions to access this page.” This happens once I click on the “Create New Survey” link on the “Manage Survey” page. I trying this on a local installation of WordPress on Windows & Apache.
Great plugin but how to export as a CSV please ?
Hi
Does anyone know why I cannot see any surveys I create when I return to Manage Surveys? It tells me there are no surveys found and just gives me the option to create a new one.
Using WP 2.8.3
Thanks!
I have the same problem. I create surveys. Then I got back to manage them and they do not show.
Any ideas?
I installed and get this error
[Sat Aug 22 19:23:06 2009] [error] 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 ‘=’ at line 3 for query SELECT Q.ID,Q.question,(SELECT COUNT(*) FROM wp_surveys_answer WHERE question_id=Q.ID) AS answer_count\n\t\t\t\t\t\t\t\t\t\tFROM wp_surveys_question AS Q\n\t\t\t\t\t\t\t\t\t\tWHERE Q.survey_id= made by require_once, include
If you find/fix, please email me and let me know.
Thank you,
Chad
Hi binny,
I’m using 2.8 and I’m new to WordPress.
I’m getting the same error as Tom above and Nithin – “You do not have sufficient permissions to access this page.” This happens once I click on the “Create New Survey” link on the “Manage Survey” page. I trying this on a local installation of WordPress on Windows & Apache.
Do you have any solution ?
Hi,
I search and i see that in MYSQL logs :
Erreur de la base de données WordPress Table ‘xxxxxxx.wp_surveys_survey’ doesn’t exist pour la requête SELECT S.ID,S.name,S.added_on,(SELECT COUNT(*) FROM wp_surveys_question WHERE survey_ID=S.ID) AS question_count,
(SELECT COUNT(*) FROM wp_surveys_result WHERE survey_ID=S.ID) as response_count
FROM `wp_surveys_survey` AS S faite par require_once, include
I gives all permissions for my admin user on the database… I don’t really understand ..
Hi,
I resolve my first problem : the database was not created when a activate the plugin. I try to delete a reactivate plugin with the wordpress plugin administration and the database was not created. I decide to download the plugin then install it! and it works, the surveys database is created!!!!!!
Now i have this problem when i want to create my first surveys with “create new survey” link :
Error in database WordPress Table ‘xxxxxxx.wp_surveys_result_answer’ doesn’t exist for request UPDATE wp_surveys_result_answer RA SET question_ID=(SELECT question_ID FROM wp_surveys_answer WHERE ID=RA.answer_ID) made by activate_plugin, do_action, call_user_func_array, surveys_activate
And i also have a page with “You do not have sufficient permissions to access this page.” However, I am the administrator and have all the permission in the database.
I really don’t understand the problem ?? It seems to make a request upadte data in wp_surveys_result_answer table whereas i could not open plugin page to edit any survey!!
Could you help me ?
thanks,
Denis
The plugin has some compatibility issues with WP 2.8 – But I’m too busy to fix it right now. I’ll work on it as soon as I get some time.
I didn’t actually solve the problem on my local machine, but went ahead and deployed the survey on our actual site(running WP 2.8.4) and it worked just fine (http://tidycity.org/blog/survey). Indicates some problem with my local windows/wp installation. Suspect same in your case.
Using WP 2.8 I can create surveys and embed them. When I go back to manage surveys there are no surveys showing.
Any idea what the issue could be? Seems like at least one other person has the same issue.
Thanks.
How can I translate the survey plugin ?
Where I have to put the .mo file ? And what name should I use for that .mo file ???
Thank you
I see the export to csv question came up a couple of times, any plans to address this in the future?
FYI: I copied all the results and pasted them into an excel file. Excel was able to assign the data to all the individual cells pretty nicely, but I’m no excel expert. That’s as far as I went. I would imagine someone who knew excel fairly well could use that to generate whatever they needed.
if you cant support why are you creating one plugin in a day! Create one and do it right and give good support. no language support, no answers on forum, no future wp version support.
“You do not have sufficient permissions to access this page.” bah you too
Hey guys, don’t be hard with him.
Some of yours comments show me that you dont understand that even if a dev release a plugin, it doesnt mean that he has a full time to work on it.
More of us have a job too and yes, we prefer to spend time to work for money and earn our food than work for
free.
I’ve made a lot of modifications to this plugin and i was going to releasr them but when i read the last comment by example, i dont want to.
Now, you want a feature that isnt there? Ask gently and wait for it.
You really need it? In a hurry? Pay for it. Im sure he will be please to work with you, or find a dev that has time (you have my website).
Remember that we release plugin for a community an for
free.
Totally agree with Mat there; if you have issues with the plugin you either (a)try and fix it yourself (b) politely ask for assistance – remember it’s free assistance, so don’t behave as if you are entitled to it (c) stop using it and look for alternatives – nobody is forcing anyone to use this.
@Mat, nithin
Thanks for the support guys. I meant to update the plugins – but I’ve been so busy with my work and some other stuff that I did not find the time. But I will – someday soon.
Plugin is working for me, but it’s not showing the radio buttons/check boxes on the home page. It only shows in the post. I did a little debugging and show_survey.php seems to be fine. Could WP be filtering this out somehow?
Found the issue with the plugin. Turns out there was a conflict with another plugin called Advanced Excerpt.
Thanks for a great plugin Binny V A! Appreciate all your hard work.
I installed and created a survey fine, but after I put in [SURVEYS 1], publish, and view my live blog, the survey is not showing up. Can you please let me know why this is happening?
Hi Binny,
Great job, works perfect for me 🙂
A question thought: where can I modify the “Thank you” text after one has completed the survey?
Thx
Its in the show_surveys.php file.
Cheers, mate!
Is it possible to provide the user with the results of the survey when they finish the survey?
Are their any options to save the email name in a data base?
Hi Binny,
Thanks so much for creating this plugin. It’s awesome and seems designed to do what I need.
Just one question: On some questions I have an “other” response and then activate the text input field is available for survey takers to specify what they mean by “other”. But it appears that they must click the radio button next to the text input field in order for me to see what they input. Is there anyway to have the text in the text input field automatically collected with the results or have it automatically collect if the “other” radio button is selected?
Thanks much,
Michelle
One more thing… the answer options are appearing out of order on my survey. For example the choices are 0-18, 18-32, 33-45. But instead it shows up to the user as 18-32, 0-18, 33-45. Any way around this problem? Thanks.
QUOTE: You can let the visitors take surveys and see the result from the admin side. ENDQUOTE
How can I fix it so the visitors can see the results?
Another bug, plugin not working with MySQL 5.1. You get this error when you try to add a question and no the question is not added to the database. Using WP 2.9 with MySQL 5.1
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 ‘=’ at line 3]
SELECT Q.ID,Q.question,(SELECT COUNT(*) FROM wp_surveys_answer WHERE question_id=Q.ID) AS answer_count FROM wp_surveys_question AS Q WHERE Q.survey_id=
</strong
Hi Binny, I came across your plugins: eventr and surveys. I will install and use over the weekend. Just wanted to say thanks. Also, I wanted to invite you to be a guest tech writer from time to time on perhaps answering questions and/or suggestions that you may have on your mind.
Harlem Talk Radio is the site and we launched it May of 2009. Please have a look and let me know what you think.
Hello Binny. I try to “Add New Answer” – javascript:newAnswer() – in New Question but its not work. WordPress: 2.9.1. Plugin: 1.0.1.6. Thanks.
Hello again Binny. I try “Add New Answer” in localhost (EasyPHP) and not work, but I install plugin in my site and its works fine. Great plugin.
Binny,
1. What types of question can I ask ? (I’m comparing your plugin with surveymonkey’s question types) I would very much prefer to use a plugin than survey monkey’s service so it would be good if you could do what they do ?
2. What formats can you output – eg .XLS ?
1. You can ask any kind of questions – you can even use HTML in your questions. I hope that is what you are looking for
2. Plugin outputs CSV – it can be opened in Excel.
Hey Binny,
Thanks a lot, great plugin and very well written/commented code.
One question – If on submit, I wanted to make sure the user has answered all questions (entered answers/hecked checkboxes), which file should I edit to add the validation? survey _action.php??
Thanks a lot.
If you want just JS validation, use script.js. For server side validation, use show_survey.php
^^Hey Binny, I tracked it down to function e(..), which calls the function _e in wpframe. I don’t know where this goes though?
Ah never mind Binny, I found it in show_survey.php.
If anyone else needs it, add:
foreach($_POST[‘question_id’] as $question_id) {
if(!$_POST[‘answer-‘ . $question_id]) { echo “Sorry, you did not answer the following questions: $question_id. All questions are required. Please try again.”; }
}
after this line in show_survey.php
if(isset($_POST[‘action’]) and $_POST[‘action’]) {
and go back to them form
I like this idea a lot but when I do as you say I get an error…
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/orvzauhv/public_html/neweraconsulting.co.uk/wp-content/plugins/surveys/show_survey.php on line 16
Any help appreciated or even better how could we get it to stop the person moving to the next page if they haven’t answerd all the qustions
Thanks..
Thank you for a great plug-in !
There’s one thing that would ‘fit’ your plug-in… when ‘focusing’ on the user-answer (with a radio/checkbox in front)… the checkbox/radio should automatically get ‘checked’ without the user’s input.
A simple 1-liner can do this (maybe someone else is interested in this so I’m posting it here)
jQuery("input.user-answer").focus(function() { jQuery(this).prev().attr('checked', true); });
Just add it (inside script.js) above:
jQuery("#survey-next-question").click(nextQuestion);
Have a great day 😉
Thanks – I made the change – it will be there in the next version.
On my site, only logged in users see the posts that have surveys. I’d like to make it so that the login information is captured (instead of people having to provide it) and that they only get the survey once. Can you point me in the right direction for making these changes?
I would like to export the data as a CSV file, however, it is exporting as a PHP file. The software even asks to export as a CSV file. Please help. Thanks!
Hi,
Great plugin!
Just one question,
how can I add the survey in my sidebar? What the PHP/HTML code for it?
Thanks,
Alex
“Export to CSV” link doesnt work for me – i go to ‘see all answers’ then ‘export to csv’ and it just gives me text on a web page… can anyone help me get around this and export to excel?
I don’t even have a CSV export link, button, or anything related to exporting the data. I am using the latest version of the plug in. Where would I find the export feature? Without the export feature, this plug in is not very useful to me. With the export feature, the plug is off the charts killer.
Go to Manage Surveys > Responses > Individual Responses > Export to CSV
Thank you. I hadn’t filled out any date for a survey, but now that I have the export link appears.
Ok, when I click on export I get a php file not a csv file. I’m guessing that you want to have people select all and then paste into notepad?
Dear Binny,
When I view the survey I’ve created in the Firefox, Opera or another browser it looks fine. When I switch to Internet Explorer not all the questions are displayed and the Submit-button is gone. This prevents people from submitting their answers. How can I fix this?
Kind regards,
Michiel
Hello,
Can you please confirm whether or not IP addresses or cookies can be tracked to ensure the same person doesn’t keep voting?
Thanks very much!
I can’t manage to get more than one survey to show up at a time? If you click “submit” on one, it submits them all. Help?
Great plugin. You can’t imagine how much it has helped my website.Thank you so much.
I’m not much of a programmer but I was wondering about a few things.
1) Adding a more secure “captcha” submit button.
2) I’m always worried about hackers and spam. Can the submit form ever be used to gain access to my website.
Thanks again,
Pete
One question. Is there a way to have the survey appear within a page and not a post? I have a client who is wanting a Members’ Survey page (not a post), and inserting the [surveyname] in the page HTML simply returns “[surveyname]”. I wanted to post up the question to see if there is a quick fix before I delve into the code.
You are using the wrong code. You should use [SURVEYS 1] – 1 being the id.
Actually, that is the code that is being used. When [SURVEYS 1] is entered, that is what is displayed when it is pulished. No survey, just the [SURVEYS 1] call.
Additionally, if I set up a new page or post with the [SURVEY 1] call, the survey will show in the preview, but will not display once the page or post is published.
Found the issue. There is a plug-in conflict with Wishlist Member. Any ideas for a solution?
Hey Zylph,
Were you able to find the solution?
Cheers
Nope. No luck on finding a solution. Let me know if you find one.
I appreciate how easy it was to set up. I do have a feature request, if it’s simply to incorporate. I’d like to be able to send someone to a “thank you page” of my choice, so I can give a little “thank you gift” when they are done. And, of course, I’d like to be able to choose it for each survey and not globally. 🙂 Thanks for the great plugin!
Velma
This looks like what I’m looking for. My question is, if visitors want to see the survey results, is there a way that they can see the data, (Like 12 people answered questions #3 yes) or is it only viewable to the admin? I’d like to have everyone who takes the survey see the results- like the silly surveys that keep going around facebook… Thanks for your help!
Hi, same question for me. How showing results to visitors ?
It’s a great plugin, I like it very much.
Just have one question on it , that can I output all the questions in one ‘page’ without the [next] button?
It’s OK if it’s not supported currently.
Its possible. Go to admin > Settings > Survey Setting. Then set the number as 0.
We installed the survey plugin today and it’s installed and activated successfully, and we were able to create a survey using the survey manager, but nothing appears on the web site even with [SURVEYS 1] entered. We’re using the WP Remix theme. Does anyone know why the survey doesn’t work?
Is there a certain place it’s supposed to be placed? Waiting for help!
How can I place a certain survey in the sidebar?
Adding [SURVEYS #] by using the Text widget did not help…
That’s not possible in the current version of the plugin.
Thanks for you plugin!
Found an issue on responses.php that some of responses doesn’t have a color assigned in “Votes” column.
can you look into nextColor() function?
is there a way to put images in the question? it looks like it should work, but the image doesn’t appear.
thanks! great plugin!
A number of people have asked about inserting images into the ‘Surveys’ plugin. I have tried out most of the WordPress plugins, and none seem to be able to do this. When images are added to the ‘Surveys’ plugin, the html code seems to be corrupted and the image will not display.
However, I have found a workaround. If you install another widget (widget logic), it becomes possible to use the sidebar to display the images. Widget logic gives you control over which images appear in the sidebar in each page. I have used this on my site, and I now have the survey questions with the appropriate images next to them.
Sorry, I forgot to mention – great plugin, and thanks to binnyva for providing it.
I have a client who wants to use the quiz as a method for collecting members. Is there a way to have the sign up form (opt in form) be placed after the quiz page but before the answer page? To see their answers users would need to create an account.
Thx
Dear Binny,, I like your plugin and I started using it after adding some touches on the code. I only changed few lines here and there, as I’m not a PHP developer in the first place.
My changes added the following enhancements:
1) Added: “Questions Order” functionality
2) Added: two additional customizable Response fields (beside “name” and “email”)
3) Admin: Delete all responses in a survey
4) Admin: Restore all deleted responses in a survey
5) Front-end: Hiding “Submit” button in all pages except the last one
6) Front-end: Some Styling touches
I will be more than happy to send you the changes I made to include them in a future version, if you like them.
If anyone is interested to try them, just check my blog (blog.sakka.me).
Dear Binny,
I made another bunch of modifications (in addition to the ones in my previous comment)
1) The following settings are customizable per each survey:
a) Include questions in CSV header
b) Number of questions per page
c) Send results to email
d) Survey Introduction (shown before survey, css class defined)
e) Survey Closure (shown after survey, css class defined)
f) six customizable text fields to be filled before taking the survey
2) Introduction text (customizable) and six customizable text fields are shown before the questions page(s) followed by a button to start the survey
3) Closure text (customizable) is shown after submitting
4) New button added “Back” to navigate back in questions pages.
5) Pressing “Enter” key is disabled (to avoid accidental submitting before completing the survey)
6) Useful links are added in the admin pages, for faster navigation
7) The six customizable text fields could be CSV exported with responses
6) Fixed: now “submit” button is no longer displayed with “next” button,, only displayed in the last question page.
Waiting for any feedback on my blog (blog.sakka.me)
Hi Ahmed,
Your plugin is best about survey plugins for WordPress. But, when you answer questions, anytime you can submit survey. Therefore, survey is missing in half. You can make that “Submit Survey” buton appears end of survey.
Very thanks.
I like the idea of this plugin but I cannot get it to work! I have inserted the comment [surveys 1] and and but none of these present the viewer with an option to fill in a survey?
What I am I doing wrong?
HELP!
Make sure you have the latest version of the plugin. Also, try it in upper case – [SURVEYS 1]
How can I get rid of the text after the survey is submitted? “Hi, There is a new result for the survey at /whats-new/feedback/… Thanks for taking the survey. You input is very valuable to us.
If you want, you can attach your name to your survey answers. If you want the result to be anonymous, just ignore this form. ”
Thanks.
I just went in and changed the text in the source and removed the form. Also, part of the email message was getting outputted to the screen because printf was being used instead of sprintf, so I changed that also.
There should really be a way in the options to change the text that shows, and an option to turn the form submission off too.
Thanks.
Josh!
I have been looking around in the source to change this too, but cant find it… In which file did you do the changes?
It is in the show_survey.php file.
Hi, I love your Survey Plugin. Is it possible to have the Answers next to the question as opposed to the Answers going below the questions?
Wow, this is so great. I had to use related post plugin for years before reading this article. Thanks for sharing 🙂 You made my day.
Does this survey plugin has the option to create a rating question – e.g. rate the following on the scale of 5 etc…..
thanks in advance.
I used your surveys plugin in my previous wordpress blog site and everything was working perfectly. I created a new blog site today, and installed your surveys plugin. Everything was working fine, except “Export to CSV”. Whenever I clicked “Export” button in Export_choose page, I got HTTP 404 error. Is there anything I need to do prior to install the surveys plugin? The only difference I can tell between two blog sites is the old one wordpress version is older and the site I created today is version 3.0.1.
Thanks for your help!
Charles
Hello, this plugin does what i need, but i want to change the language to dutch.
I found the default.po file and made a translation to dutch with a po-editor. the mo-file i called nl.mo but this is not making show the dutch language. In my config file i have “nl” lang configured what makes my site show in dutch.
Thanks for a great plugin – will you be developing this further to include different types of survey questions (text, paragraph, checkboxes, grids etc)?
How can I show the results in a page? Is there any simialr style code, something like [survey-1-results] that I can place on a page to have the results show? Thanks.
Sorry. Hope you can address THIS comment as I forgot to check th “Notify me of follup comments via e-mail”
How can I show the results in a page? Is there any simialr style code, something like [survey-1-results] that I can place on a page to have the results show? Thanks.
Thank you for providing nice plugins, however I wonder why images cant be displayed in questions. The code becomes somehow corrupted and shows like: \”\”
I get a page not found error when i click on the export button on the choose export page. i know that all pages are there but still get this error. Any update?
Thanks.
Same here. Using 3.0 and export to csv doesn’t work.
I get a “broken link error” on
http://localhost/wp-content/plugins/surveys/export.php
I’m guessing this first line doesn’t work on 3.0?
include(‘../../../wp-blog-header.php’);
Any updates?
Great plugin by the way.
Thanks!
I was having the same problem, primarily with Firefox ,and thought the link to wp-blog-header.php was to blame too.
I found an answer looking at other csv export plugins. I replaced:
include('../../../wp-blog-header.php');
auth_redirect();
with:
include_once('../../../wp-config.php');
include_once('../../../wp-includes/functions.php');
require_wp_db();
in export.php
I also altered the headers to:
header("Content-Type: application/csv");
header("Content-Disposition:attachment;filename=$survey_name.csv");
header('Pragma: no-cache');
It’s quick and dirty but it seems to be working for me .
Hi there,
I added a textarea but when someone is filling out the survey the text stop after X amount of words… How can I fix that?
Really Urgent
Hello. How do I make the jquery work to check if the user has selected an answer before going to the next page. It doesn’t seem to work in mine. It just goes to the next question/page, even if I did not select an answer and click “Next”.
Thanks.
Could be a conflict with any script that’s used in your theme. Could be.
Thanks!
Hi,
Great plugin but if i refresh the thank you page, i can keep voting.
I’m suprised there is no ip or cookie tracking to prevent that.
Anything you can do ? Because i don’t see how you can trust the results if you know people can easily cheat.
Hello people,
I would like to have ONE QUESTION per page.
Is that possible?
cheers,
marcus rolloos
Two problems:
I have just downloaded the plug-in and I noticed that i can’t export the results. When I press export, it shows me an error url.
Is there a way to show the name and email of the responder on the notification email? Now it just shows the results.
Thanks
I am new to wordpress. I tried adding a survey on our website.
I added the post and in the post, I added the below lines in html text
hi
The survey is created in Tools->Manage Surveys, the code property for this survey is also showing SURVEYS 2.
It is not showing survey into my post. I dont know what is missing?
One additional information:
When I open this survey post in Mozilla, on status bar is shows done.
While in IE 8, its shows error as below
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MALN; .NET4.0C)
Timestamp: Fri, 11 Mar 2011 05:32:59 UTC
Message: Object doesn’t support this property or method
Line: 15
Char: 1
Code: 0
URI: http://localhost/wordpress/wp-content/plugins/wordpress-simple-survey/jqueryui1.7/development-bundle/ui/ui.progressbar.js?ver=1.7
Hi,
i am using wp 3.1.2
when i use default permalinks then it’s ok, i can see the surveys in page https://www.closercouples.com/closercouples/?page_id=271
but when i use custom permalinks then it shows blank screen https://www.closercouples.com/closercouples/assessment-questionnaire/counseling-client-area/
what’s the problem here?? Any idea??
thanks,
Hi Binny, I love the look of this plugin. Just a suggestion though, it would be really great if the visitors to the website could see the survery results too as this adds further interactivity to the application. Is it possible for them to see the reults? thanks again. Peter
I’m planning to add that feature in one of the future releases – but currently, have very little time to work on it. Buy yeah – its on the todo list.
Hello,
Nice Plugin!
I would like to translate some notification text to dutch. But when I change the text in the language file nothting happens.
If you’d like I can make a standard translation for you… WIN/WIN 🙂
Any Idea?
When you are done, can you send the transilation file to binnyva, gmail? I’ll add that to the plugin. Thanks 🙂
Hi,
This is a great plugin.
But, I am having a problem with exporting to .csv.
I am using WordPress 3.1 and everything is running OK with the plugin until I come to export to .csv. I am getting a 404 error: The webpage cannot be found. The url looks like: (http//???????????.com/wpcontent /plugins/surveys/export.php).
Can you give me any solution.
Regards
Jim
ccI have tI
Can anyone tell me a simple way to get the export to csv to work?
This is a great plugin but if I can’t export the data I can’t use it.
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!
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.
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.
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
Hello, where i can get the shorecode to install the survey in the page?
Its there in the admin area.
Hi there, can’t see how to export to CSV, can you assist?
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.
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?
Odd – it works correctly here. Which version of PHP are you using?
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
Should be fixed now. New version released.
Thanks. That works. 🙂
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
Currently, exporting the database tables would be the best method. Why is it not working?
http://www.tipsandtricks-hq.com/wp-csv-to-database-plugin-import-excel-file-content-into-wordpress-database-2116
This plug-in might help
James
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?
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
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…
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
Isabelle just choose
“Allow User Inputed Answers”
from below the answers boxes.
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!
I get an error as well Invalid argument supplied for foreach() … show_survey.php on line 24
Any help greatly appreciated.
I don’t have that issue. Which version of plugin and WP are you using?
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
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
How can I edit the “Thank You” text and possibly add a checkbox for a newsletter opt-in?
You’ll have to edit the code for that.
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,
If you have so much data, there will be a problem with export in a web server. My suggestion is to use the database browser to export the data.
Perfect, just what I’ve been looking for. Thanks a lot Binny!
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
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.
Very usefully info!! I will be trying it soon, hopefully i don’t come across any issue.
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!
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?
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.
No limit for either.
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é
I’m looking into this. Will let you know.
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é
Wow! Thanks a lot.
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
You’ll have to edit the code of the plugin to do that.
ok. could you please tell me which files and lines that need to be modified
survey_form.php and survey_action.php should have that code.
ok. what code needs to be modified?
Hello Binny VA
It was the character code in FireFox (8859-1 vs UTF8)
Sorry for that.
Michel-André
The example shown has only multiple choice questions…is it possible to have questions where personal answers can be written?
Thanks
Its possible – just click on the ‘Allow User Inputed Answers’ checkbox while adding the question.
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
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
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
I just solved some bug with the export… you can find a patch at https://gist.github.com/gagarine/5030254
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?
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
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.
How can I edit the answers to be textarea every choice?
You’ll have to edit the code for that. The ‘show_survey.php’ file to exact.
How can I edit the answers to be textarea every choice?
Thanks for the plug in. Works great in WordPress 4.5.3 The only issue I have is that it wont send email. If you have any insight in to that I’d love to hear it. Outside of that, you’ve mad my daughter very happy as its her WordPress site that’s using it!