When a user filled in the complete survey, he is getting the next warning.
Warning: sprintf(): Too few arguments in /var/www/vhosts/hagueroadrunners.nl/httpdocs/wp-content/plugins/surveys/wpframe.php on line 53
The survey is saved and an email is send.
So everything is working.
The survey contains 17 questions.
The URL is : https://www.hagueroadrunners.nl/surveys-1/
Does somebody know what the problem can be.
Peter
]]>The plugin installs fine, however when I “Create New Survey” I get a 404 page not found error when it goes to this page.
https://mydomain.com/wp-content/plugins/surveys/survey_action.php
the file is physically there.
Some help with this would be much appreciated.
]]>getting this message after submitting the survey:
Warning: sprintf() [function.sprintf]: Too few arguments in /homepages/15/d354889871/htdocs/RTGXBLOG/BCFPERS/wp-content/plugins/surveys/wpframe.php on line 53
any thoughts?
thank you!!
]]>Hi, is it possible to duplicate a Survey?
]]>When I go to “manage Surveys” it says no surveys found. But my survey [SURVEYS 0] is showing on the post just fine.
Also, on the last page where you submit a name and email, after you push submit it says “Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\wp-content\plugins\surveys\show_survey.php on line 24.” Line 24 looks like this: foreach($_POST[‘question_id’] as $question_id).
Also, when I go in to look at responses, the multiple choice ones show the percentages but when I click “Individual Responses” it says “No responses Found” on that page.
A littl ehelp anyone?
]]>Surveys is a good plugin, but has been a while since the last update. I’ve made some changes to the plugin:
You can download it from my dropbox: surveys-1.01.8.1.zip
]]>Hi
When deleting all responses for a survey, or deleting an entire survey, the “wp_surveys_results_answer” table does not get cleared properly so orphaned records accumulate.
Otherwise, great plugin.
Thanks
Mike
]]>Hi,
Modified the piece of code below to remove the extra radio button.
Can you pl explain what this piece is doing?
show_survey.php, line 131 onwards
if($ques->allow_user_answer) {
echo "<input type='$type' name='answer-{$ques->ID}[]' id='answer-id-{$ans->ID}' class='answer' value='user-answer' />\n";
if($ques->user_answer_format == 'textarea')
echo "<textarea name='user-answer-{$ques->ID}' rows='5' cols='30' class='user-answer'></textarea>";
elseif($ques->user_answer_format == 'checkbox')
echo "<input type='checkbox' name='user-answer-{$ques->ID}' class='user-answer' value='1' />";
else
echo "<input type='text' name='user-answer-{$ques->ID}' class='user-answer' value='' />";
}
The modification is in the top if statement:
if($ques->allow_user_answer && $type != 'radio')
Not sure if this is going to cause problems elsewhere, though.
]]>Is it possible to post multiple surveys on one page?
[SURVEYS 1]
[SURVEYS 2]
…
didn’t work and I got an error
Warning: sprintf() [function.sprintf]: Too few arguments in …\plugins\surveys\wpframe.php on line 53
I think there is a problem in show_survey.php to show multiple surveys, but can’t find any solutions.
]]>Does anyone know if I can embed these surveys into a page? I have no problem embedding into a post… but won’t work if tying the same process into a page.
Thanks
]]>All the questions appear correctly. However the title and Description do not appear. I am using version 3.3.2
]]>An idea, how I get rid of the line breaks after radion buttons in the surves form?
]]>Hello
There is a XS flaw in the plugin:
https://example.com/wp-admin/options-general.php?page=subscribe-to-comments-reloaded/options/index.php&subscribepanel=1&srf=email&srt=equals&srv=XSS same for sre etc
Can you sanitize this ?
Thank you
]]>There is a bug when you create a survey with user inputed questions. If you add a question by selecting the “Allow User Inputed Answers” option, the answer-id in the <input>-tag all have the same answer-id as the last multiple choice answer before the user iputed one, resulting in an html-validation errors.
If you have a multiple choice question after the User Inputed question than that question has a unique answer-id.
So what happens in the survey is this:
multiple choice question: answer-id-1
multiple choice question: answer-id-2
multiple choice question: answer-id-3
user inputed question: answer-id-3
user inputed question: answer-id-3
multiple choice question: answer-id-4
Has anyone else have the same problem an better yet, has anyone a solution for this bug?
Thanks.
]]>If anyone is interested, I translated Surveys to the Dutch language. You can download the po and mo file here:
https://goedgedaan.net/surveys/surveys-nl_NL.zip
@binnyva, feel free to include this in any future update of Surveys. Contact me for credits. Thank you for such a simple, yet useable plugin.
]]>Hi,
Maybe for someone this script will be helpful.
It’s using jquery in compatibility mode ($j) to verify is user fill all required fields. In question needs to be <span> tag with “*”. Now is working only with radio input and text area.
var reqQuestion = new Array();
var reqOK=0;
$j('#survey-action-button').attr('disabled','disabled');
$j('<p></p>').insertBefore('#survey-action-button').text('Please fill all requied fileds').addClass('infoMes');
$j('.survey-question').each(function(){
if($j(this).find('span').text()=='*'){
$j(this).addClass('req');
}
});
function checkSurvey(){
reqOK=0;
$j('.req').each(function(i){
reqQuestion[i]=0;
if($j(this).find('.user-answer').length>0){
var valtext = $j(this).find('.user-answer').val();
if(valtext!=''){
reqQuestion[i]=1;
}
else reqQuestion[i]=0;
}
else {
if($j(this).find('.answer').is(':checked')){
reqQuestion[i]=1;
}
else reqQuestion[i]=0;
}
reqOK+=reqQuestion[i];
});
if(reqOK==reqQuestion.length){
$j('#survey-action-button').removeAttr('disabled');
$j('.infoMes').text('');
}
else{
$j('#survey-action-button').attr('disabled','disabled');
$j('.infoMes').text('Please fill all requied fileds');
}
}
$j('.answer').change(function(){
checkSurvey();
});
$j('.user-answer').keyup(function(){
checkSurvey();
});
]]>
Error message is
PHP Fatal error: func_get_args(): Can’t be used as a function parameter in /usr/sites/maidan/www/wp-content/plugins/surveys/wpframe.php on line 59
Who knows where to get previous version of the plugin?
Thanks
NZ
]]>I’d like to customise what gets emailed to me after a user submits a poll response. How can I do that? It’s a bit messy at the moment. Thanks.
]]>If I add a user input field to the survey, I need to have a brief description above it or defaulting inside the textbox like “Other…”. How can I add that?
Also, with multiple choice if a user adds text to a textarea and does not check the box, the text and choice doesn’t get saved. The box needs to be auto-checked when text is entered.
]]>How can I customise the text above where the user adds their name and email address? Can’t seem to find it anywhere. Thanks.
]]>Hi Binny,
Thanks for your work so far, but I think this plug-in needs many more hours work before it is anything like as capable as the surveygizmo or surveymonkey web hosted surveys. Or have I not found how to make it do check boxes ? skip questions based on previous answers? pipelining the logic of a survey based on other questions etc
BWs
James
Surveys seems to have stopped working. My survey on my sidebar is displaying the shortcode [surveys1] – https://EllieYamane.com Is anybody experiencing this?
]]>when trying to use html such as a link or image insert within the survey the ” are escaped causing the html to break
]]>It would be nice to have all questions on 1 page. Is this already possible? I’m willing to try it myself if you point me out the direction.
gr,
]]>Hi Binnyva,
I’ve made some little changes to your plugin in order to make translation fully functional. Furthermore, I’ve added the italian translation.
If you are interested in to merge my updated code in your plugin, you can download it here.
You will found 1 new line of code (calling load_plugin_textdomain
) in surveys.php and some strings to which I’ve added the t()
or e()
function. Ah, and I reverted to “save As” the output of the CSV export function.
Nothing more, nothing less.
Thanks for your work.
]]>I get a broken link message for
https://quantitativereasoning.net/wp-content/plugins/surveys/export.php
when I click the export box
https://quantitativereasoning.net/wp-admin/edit.php?page=surveys/export_choose.php&survey=1
When I look at the file system, the file is present.
]]>