Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Change “start page” (survey list) to login page?

  • no_spaces
  • no_spaces's Avatar Topic Author
  • New Member
  • New Member
More
3 years 4 weeks ago #227500 by no_spaces
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.10+220419
Own server or LimeSurvey hosting: own
Survey theme/template: extends_fruity
==================
Hello everyone.

Is there any way to change the default survey list “start page”, i.e. when visiting survey.example.org/ without being logged in, to the login page?

It’s extremely confusing for students to see that there’s no surveys and to contact an administrator instead of being able to log in when visiting the domain of our survey.

Thank you very much for your help.

Please Log in to join the conversation.

More
3 years 4 weeks ago #227504 by bismark

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 weeks ago #227507 by tpartner
Or simply edit the default survey theme twig files.

- www.limesurvey.org/manual/New_Template_System_in_LS3.x/en

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.

  • no_spaces
  • no_spaces's Avatar Topic Author
  • New Member
  • New Member
More
3 years 4 weeks ago #227508 by no_spaces

Or simply edit the default survey theme twig files.

- www.limesurvey.org/manual/New_Template_System_in_LS3.x/en
Thanks!

I’m not sure I find anything related to the login page in the theme editor; else I could maybe just replace the content of the survey list page (I think) with the content of the login page?

I don’t really know anything of Twig, so maybe this assumption is totally wrong, though.

Would be happy if you could and would want to help out.

Please Log in to join the conversation.

  • no_spaces
  • no_spaces's Avatar Topic Author
  • New Member
  • New Member
More
3 years 4 weeks ago #227509 by no_spaces

maybe this could be a solution:

account.limesurvey.org/de/limestore/extensiondetails/61/
Thank you, that sounds good, but the plugin is not compatible with the current version of LimeSurvey.

Please Log in to join the conversation.

  • no_spaces
  • no_spaces's Avatar Topic Author
  • New Member
  • New Member
More
3 years 4 weeks ago - 3 years 4 weeks ago #227510 by no_spaces
Maybe I can force that redirect via nginx, if LimeSurvey does not allow to do so …
   

  root /var/www/html;
  index index.php;

  location = / {
    root /var/www/html;
    index /admin/index.php;
  }

  location / {
    root /var/www/html;
    index index.php;
    try_files $uri $uri/ /index.php?$args;
  }

  location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  }

Last edit: 3 years 4 weeks ago by no_spaces.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 weeks ago #227513 by tpartner
If you want to completely remove the survey list and force the redirect, replace the contents of layout_survey_list.twig with something like this:
Code:
<p>You will be redirected to the survey admin interface. If redirect does not occur within 15 seconds, click <a href="admin/">here</a>.</p>  
<script type="text/javascript" data-author="Tony Partner">
  window.location.href = "admin/";
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: no_spaces

Please Log in to join the conversation.

  • no_spaces
  • no_spaces's Avatar Topic Author
  • New Member
  • New Member
More
3 years 3 weeks ago #227519 by no_spaces
Thank you very much!

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 weeks ago #227527 by holch

It’s extremely confusing for students to see that there’s no surveys and to contact an administrator instead of being able to log in when visiting the domain of our survey.

If this is confusing (I assume they received the link to the admin login page at one point), I guess they shouldn't be at a university at the first place.

;-)

*just kidding*

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose