Print answers from another site

More
4 years 6 months ago #87948 by dimkaraiskos
dimkaraiskos created the topic: Print answers from another site
Hi,

I would like to call the answers page from another site (not just after completing the survey) to show to a specific user his answers on a specific survey (sid and token). I notice that printanswers.php gets the sid as an attribute in the URL but not the token (it is assumed from the session?). Is there a way to modify printanswers.php to succeed such a behavior?

Thank you.

Please Log in to join the conversation.

More
4 years 6 months ago #88003 by DenisChenu
DenisChenu replied the topic: Print answers from another site
printanswers don't take token, but take srid from session.

You can create the session, anb after show print answer link with this session.
Or you can hack print answers code to take token from another session, and find the srid for this token.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 years 6 months ago #88017 by dimkaraiskos
dimkaraiskos replied the topic: Print answers from another site
Thank you for your prompt reply.

can u please provide me with some hints/guidance how to implement either way (unfortunately I am not familiar with php sessions)?

Please Log in to join the conversation.

More
4 years 6 months ago #88025 by DenisChenu
DenisChenu replied the topic: Print answers from another site

dimkaraiskos wrote: can u please provide me with some hints/guidance how to implement either way (unfortunately I am not familiar with php sessions)?

I can't teach you PHP freely here, you can look at php docs .

And here, there are a lot of thing to do, not just some css/js hacking.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 years 6 months ago #88029 by dimkaraiskos
dimkaraiskos replied the topic: Print answers from another site
Well I guess I haven't been specific enough. Surely I didn't mean php teaching :)

To be more specific I understand that aGetFullResponseTable($surveyid,$id,$language,$bHonorConditions) method returns the data needed. In order to hack it and take the same data using the token a) where can i find it, b)is session mandatory to retrieve these kind of data.

thnx

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now