Daily lecture appraisals

More
4 years 5 months ago #86728 by drjaking
Hi,

I am looking for a way of getting feedback from students after a series of lectures. I have a table of lecture times, titles and speakers, and a table of student email addresses. I want the same feedback questionnaire completed by each student for each lecture. Each lecture needs to have its own data, and the questionnaire for each needs to become active for a two week interval following it's occurrence. Once a lecture finishes, a invitation email with a tokenized URL should go to each student.

"Can I do this with LimeSurvey?!?!??"

Thanks!

John

Please Log in to join the conversation.

More
4 years 5 months ago #86754 by tpartner
You can copy the survey and export/import the token list for each lecture.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 5 months ago #86755 by drjaking
thanks for responding. I'm really looking for a way of automating, I should have said, there are about 250 lectures per year, so manually copying would be tricky. Also I need to be able to set it all up in advance so that the invitations go out at predefined times.

I'm guessing I'd need to learn how to write directly into a Limesurvey database?

Please Log in to join the conversation.

More
4 years 5 months ago #86756 by tpartner
Perhaps the remote control for 2.0 will help - docs.limesurvey.org/RemoteControl+2

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 5 months ago #86758 by drjaking
Thanks! That does look like it would do what I want. I was rather hoping to find a system that didn't require any bespoke scripting but I guess that was a tall order!

Please Log in to join the conversation.

More
4 years 5 months ago #86847 by Mazi
If you know that a user is allowed to rate X lecturs, you can set the "uses_left" value at the tokens table to X.

At a first question you can provide a list of lectures, either as a predefined drop-down list (which is hard/impossible to adjust later) or by asking the user to type the title and use this workaround: docs.limesurvey.org/tiki-index.php?page=...wers_for_text_inputs
The advantage is that you can always edit this file and add new lectures.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 5 months ago #86875 by drjaking
Autocomplete sounds really promising, thanks - we could do scheduled reminders by email outside of Limesurvey. A couple of problems exist though, a user could rate the same lecture more than once, but I think that is unlikely and we'd be able to detect it anyway. More tricky, how would reporting work? I don't imagine it is straightforward to segregate reports according to the response to Q1?

Please Log in to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #86932 by drjaking
OK, I'm trying to work this with RC2, but I can't even get an import to work. I have made simple survey to use as a template, and then exported it as a lss file. Then I use a modified version of the php example on the RC2 page to try and import it, but I get the error:

"This is not a valid LimeSurvey survey structure XML file."

Here's my code.... any tips? I've tried using csv and lsa file exports too.
<?php
require_once 'jsonRPCClient.php';
 
define( 'LS_BASEURL', 'http://localhost/limesurvey');
define( 'LS_USER', 'admin' );
define( 'LS_PASSWORD', 'xxxx' );
 
 
// instanciate a new client 
$myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/index.php/admin/remotecontrol' );
 
// receive session key
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
 
$surveyStruct = file_get_contents('http://localhost/survey_template.lss');
 
print_r($surveyStruct, null );
 
 
$iNewSurveyID= $myJSONRPCClient->import_survey( $sessionKey, $surveyStruct, 'lss' );
 
print_r($iNewSurveyID, null );
 
// release the session key
$myJSONRPCClient->release_session_key( $sessionKey );
 
?>
Last Edit: 4 years 5 months ago by drjaking.

Please Log in to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #87029 by drjaking
I'm making progress with this - I can now import, activate make a token table for a survey from a template. But I can't import participants, becuase I can't figure out what the structure should be for the participant data. Is it documented anywhere? If I use the following, all I get is three blank tokens (ie one for each field in the array I pass):
$participants = array("firstname" => "John", "lastname" => "King", "email" => "abc@def.ac.uk");


Can anyone help (bearing in mind I know zero PHP!)?

John
Last Edit: 4 years 5 months ago by drjaking.

Please Log in to join the conversation.

More
4 years 1 month ago #92067 by Pipo01
Hi Dr Jakin,

Your array should be a 2 dimensional array like this one :
$participants[] = array("firstname" => "John", "lastname" => "King", "email" => "
This email address is being protected from spambots. You need JavaScript enabled to view it.");

Please Log in to join the conversation.