Welcome, Guest
Username: Password: Remember me

TOPIC: Print answers from another site

Print answers from another site 1 year 8 months ago #87948

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.
The administrator has disabled public write access.

Re: Print answers from another site 1 year 8 months ago #88003

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6198
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.

Re: Print answers from another site 1 year 8 months ago #88017

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)?
The administrator has disabled public write access.

Re: Print answers from another site 1 year 8 months ago #88025

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6198
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.

Re: Print answers from another site 1 year 8 months ago #88029

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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image