maintenanceMode : set your LimeSurvey instance in maintenance for public

More
1 year 3 weeks ago - 1 year 3 weeks ago #147902 by DenisChenu
DenisChenu created the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
Following this feature request : bugs.limesurvey.org/view.php?id=10038

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

Plugin tested on 2.62.0, 2.62.0 is needed for alert / flash message.
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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:
Last Edit: 1 year 3 weeks ago by DenisChenu. Reason: picture 2
The following user(s) said Thank You: Ben_V, socius

Please Log in to join the conversation.

More
1 year 3 weeks ago #147906 by Ben_V
Ben_V replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
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 2.6.2 2.06

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)

Please Log in to join the conversation.

More
1 year 3 weeks ago #147916 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 year 3 weeks ago #147931 by bruce78
bruce78 replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public

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?

Attachments:

Please Log in to join the conversation.

More
1 year 3 weeks ago - 1 year 3 weeks ago #147933 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:
Last Edit: 1 year 3 weeks ago by DenisChenu.

Please Log in to join the conversation.

More
1 year 3 weeks ago #147934 by bruce78
bruce78 replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public

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...

Please Log in to join the conversation.

More
1 year 3 weeks ago #147935 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
Loggued as admin : you have the check the setting to disable public part to admin too.

For time diff it's about : manual.limesurvey.org/Optional_settings#Language_.26_time timeadjust : manual.limesurvey.org/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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 year 3 weeks ago #147952 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
@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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 year 3 weeks ago #148046 by bruce78
bruce78 replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public

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...?

Please Log in to join the conversation.

More
1 year 3 weeks ago #148051 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 year 3 weeks ago #148052 by bruce78
bruce78 replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
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?

Please Log in to join the conversation.

More
1 year 3 weeks ago - 1 year 3 weeks ago #148056 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
Yes , and maybe i do some error for the date/time system.

Still : you can see the
- server date/time in global settings : manual.limesurvey.org/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:
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 service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 1 year 3 weeks ago by DenisChenu.

Please Log in to join the conversation.

More
3 weeks 5 days ago #163042 by socius
socius replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
Hi Denis,

thanks a lot (also) for this plugin!

I just tried to use it on 2.6.4 LTS (Template: skeletonquest) and experience some problems.

0) Ist the plugin supposed to work on 2.6.4 LTS (if not, I don't bother you with further questions ;-)

That's what I did:

1) I installed and activated the renderMessage plugin
2) I installed and activated the maintenanceMode plugin


That's what happens (or not):

a) The plugin does not show up in the plugins list of the survey menu:



b) When I try to enter the settings of maintenanceMode I get the message:



I think the critical question is whether this plugin should/could work on my installation - and if not: did I overlook something and/or can I make it work?

Again: thanks for this great, useful plugin and thanks for your time!
Best, G
Attachments:

Please Log in to join the conversation.

More
3 weeks 23 hours ago #163285 by DenisChenu
DenisChenu replied the topic: maintenanceMode : set your LimeSurvey instance in maintenance for public
Seems right : no renderDate for settings widget in 2.6 lts version :/

Then need update the settings part … for 2.6 lts compatibility extensions.sondages.pro/about/contact.html for a quote

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: socius, LouisGac

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!