- Posts: 12
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Hide the Limesurvey index page when no survey specified
- Fred01
- Topic Author
- Offline
- New Member
Less
More
12 years 5 days ago #79087
by Fred01
Hide the Limesurvey index page when no survey specified was created by Fred01
Hi, I have a new user who doesn't want to see the Limesurvey index.php when there are no active surveys. This is a new one for me. How would I make Limesurvey redirect to a different page (e.g., customer's home page) when there is no survey id in the URL? Hopefully without editing the core files.
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
12 years 5 days ago #79094
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Hide the Limesurvey index page when no survey specified
Hi,
in the template used by your installlation as default template (the most of the time="default" template) set a redirect into surveylist.psptl file (using <meta refresh> or javascript redirect as you want)
Ben/
in the template used by your installlation as default template (the most of the time="default" template) set a redirect into surveylist.psptl file (using <meta refresh> or javascript redirect as you want)
Ben/
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
12 years 5 days ago #79102
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Hide the Limesurvey index page when no survey specified
Ben, this won't work because it will always redirect the user even if there are active surveys.
It should be possible to add an Ajax call at the related template page. That way you could call a script that checks for active surveys and if there are none, you can redirect the user right away.
It should be possible to add an Ajax call at the related template page. That way you could call a script that checks for active surveys and if there are none, you can redirect the user right away.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The following user(s) said Thank You: Ben_V
The topic has been locked.
- Fred01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
12 years 4 days ago #79130
by Fred01
Replied by Fred01 on topic Hide the Limesurvey index page when no survey specified
Thanks Mazi and Ben. Actually in my case I think the redirect on survey list will be ok for this situation because all participants will be coming in via links to a survey and will never see the survey list. But this probably wouldn't work for everyone.
The topic has been locked.
- samirfor
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 1
8 years 9 months ago #122721
by samirfor
Replied by samirfor on topic Hide the Limesurvey index page when no survey specified
Thanks. This is what I need.
The topic has been locked.