- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Show page results without login
- Daraba
- Topic Author
- Offline
- New Member
Less
More
1 year 9 months ago #230556
by Daraba
Show page results without login was created by Daraba
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.23
Own server or LimeSurvey hosting: Own Server
Survey theme/template: bootswatch
==================
(Write here your question/remark)
Hello,
Thank you in advance for your help.
I am a newbie with Lime
I am making some modifications to the framework to adapt it to a client survey.
When a user has completed their survey with their token, (if token completed != N) I need to redirect them to a web page that shows them the result of their survey. The redirect includes the token used and the surveyID.
I have created a controller (resultController) with its view, but when I try to access it, it asks me to authenticate as Admin. Is it possible to access without admin? How can I do it?
Thank you
Your LimeSurvey version: 5.3.23
Own server or LimeSurvey hosting: Own Server
Survey theme/template: bootswatch
==================
(Write here your question/remark)
Hello,
Thank you in advance for your help.
I am a newbie with Lime
I am making some modifications to the framework to adapt it to a client survey.
When a user has completed their survey with their token, (if token completed != N) I need to redirect them to a web page that shows them the result of their survey. The redirect includes the token used and the surveyID.
I have created a controller (resultController) with its view, but when I try to access it, it asks me to authenticate as Admin. Is it possible to access without admin? How can I do it?
Thank you
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
1 year 9 months ago #230557
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Show page results without login
Hi,
You create a web page to show the results. So this is not related to LimeSurvey. It is your responsibility to design it and establish a connection to the LimeSurvey database.
You created a controller. ??? How can we help without knowing anything about this.
I usually do it by creating a web page (php).
And the desired data I receive
either by direct access (SQL query on the database like "SELECT * from lime_survey_".$SID." WHERE token=".$tok )
or by the API
[url] manual.limesurvey.org/RemoteControl_2_API [/url]
[url] api.limesurvey.org/classes/remotecontrol_handle.html [/url]
Here you find the function "export_responses_by_token". Maybe you can use this.
Without more detailled informations from your side it's a bit difficult.
Joffm
You create a web page to show the results. So this is not related to LimeSurvey. It is your responsibility to design it and establish a connection to the LimeSurvey database.
You created a controller. ??? How can we help without knowing anything about this.
I usually do it by creating a web page (php).
And the desired data I receive
either by direct access (SQL query on the database like "SELECT * from lime_survey_".$SID." WHERE token=".$tok )
or by the API
[url] manual.limesurvey.org/RemoteControl_2_API [/url]
[url] api.limesurvey.org/classes/remotecontrol_handle.html [/url]
Here you find the function "export_responses_by_token". Maybe you can use this.
Without more detailled informations from your side it's a bit difficult.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- Daraba
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
1 year 9 months ago #230565
by Daraba
Replied by Daraba on topic Show page results without login
Hello Joffm
I have created a ReportsController that has an index method that redirects to a PHP view.
Of course, in the logic of the controller I make the queries to the DB and pass the data to the view.
I have managed to create a controller that extends Survey Common and that does not go through the administration login.
I'm going to continue investigating
Thank you very much for your help.
I have created a ReportsController that has an index method that redirects to a PHP view.
Of course, in the logic of the controller I make the queries to the DB and pass the data to the view.
I have managed to create a controller that extends Survey Common and that does not go through the administration login.
I'm going to continue investigating
Thank you very much for your help.
Please Log in to join the conversation.