Welcome to the LimeSurvey Community Forum

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

maintenanceMode : set your LimeSurvey instance in maintenance for public

  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago - 6 years 9 months ago #147902 by DenisChenu
Following this feature request : bugs.limesurvey.org/view.php?id=10038

Here the maintenanceMode plugin.
This plugin need another plugin to work : renderMessage


Compatibility : 2.6lts 2.62.0 and 3.4.0
Alert is compatible only with 2.62.0

This plugin introduce a new way for translation, if you want new translation : pull request can be done on framagit or github.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 6 years 9 months ago by DenisChenu. Reason: picture 2
The following user(s) said Thank You: Ben_V, socius
The topic has been locked.
More
7 years 10 months ago #147906 by Ben_V
great Denis as ever...

Plugin tested on 2.6.2, 2.6.2 is needed for alert / flash message.


I suppose there is a typo: 2.62 [strike]2.6.2[/strike] [strike]2.06[/strike]

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.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago #147916 by DenisChenu
Totally right :)

Plugin must work in all 2.50 for the maintenance , but i need this event github.com/LimeSurvey/LimeSurvey/commit/...e48db78e1bf65a3b4R40 for a clean warning message.

I work on 2.6 compatibility version now (and surely add this new event on 2.6_sp )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
7 years 10 months ago #147931 by bruce78

DenisChenu wrote: I work on 2.6 compatibility version now (and surely add this new event on 2.6_sp )


Hi Denis, great stuff, thank you... I upgraded to 2.62.1 but while the warning message is shown, people can still complete the survey... also, the plugin didn't redirect?!?

Maybe I'm doing something wrong?

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago - 7 years 10 months ago #147933 by DenisChenu
Strange : no {MINUTES} are set ?

I completely tested the plugin yesterday.

Do you have a time difference between server and real ? You are connected as admin ?

testing.sondages.pro/masterall/index.php...88?newtest=Y&lang=en

PS : if warning is shown : it's because time on maintenance are not here : framagit.org/SondagePro-LimeSurvey-plugi...tenanceMode.php#L119
PS : seems i didn't use dateShift for warning : framagit.org/SondagePro-LimeSurvey-plugi...tenanceMode/issues/1

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 7 years 10 months ago by DenisChenu.
The topic has been locked.
More
7 years 10 months ago #147934 by bruce78

DenisChenu wrote: Strange : no {MINUTES} are set ?


Yeah, I was editing the warning text, I don't think that's anything major...

DenisChenu wrote: Do you have a time difference between server and real ? You are connected as admin ?


Hmmm, what do you mean, the difference between server and real?

Yeah, I'm logged in as admin...

I'll dig further...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago #147935 by DenisChenu
Loggued as admin : you have the check the setting to disable public part to admin too.

For time diff it's about : www.limesurvey.org/manual/Optional_settings#Language_.26_time timeadjust : www.limesurvey.org/manual/Global_settings#Overview_.26_Update

I didn't test with difference here (and seems i have a little bug with warning : maintenance get timeadjust but not warning)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago #147952 by DenisChenu
@bruce78 : i review code for timeadjust.

Now : i show the 'server adjusted time' and take it in the 2 part.

Please update to last version : nigthly version are updated too.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
7 years 10 months ago #148046 by bruce78

DenisChenu wrote: @bruce78 : i review code for timeadjust.

Now : i show the 'server adjusted time' and take it in the 2 part.

Please update to last version : nigthly version are updated too.


Hi Denis, I tested the latest github build yesterday but never got the website is in maintenance mode... I could always fill out a survey, even if I was in another browser and not logged in...?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago #148051 by DenisChenu
I don't understand : can not reproduce ....

I add some log, and ask you to show the log. What date/time are shown now in plugin settings ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
7 years 10 months ago #148052 by bruce78
Thanks Denis, I'll get back to you once I get a chance to test again....

I suspect the date and time thing might be a problem... the server is probably on London/CET time and my browser is on South African time?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 10 months ago - 7 years 10 months ago #148056 by DenisChenu
Yes , and maybe i do some error for the date/time system.

Still : you can see the
- server date/time in global settings : www.limesurvey.org/manual/Global_settings#General (see Time difference (in hours) )
- corrected date/time in plugin settings (according to Time difference set)

BUT : maybe i made miscalculation when i try to find the good time for maintenace mode.

1st check : put yesterday in maintenance mode : see what happen
2nd check : put tomorrow in maintenance mode + use this as alert:
Code:
now is  {date("Y-m-d H:i")} - date is {DATE} - minutes is {MINUTES} - hour is {MINUTES/60}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 7 years 10 months ago by DenisChenu.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose