Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

maintenance mode?

Questions related to using nuBuilder Forte.
Post Reply
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

maintenance mode?

Unread post by marc »

Is there some kind of maintenance mode that can be activated? When a user logs in, a message is to be displayed indicating that the system is in maintenance mode. All forms should then not be accessible. Only the administrator should be able to log in.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: maintenance mode?

Unread post by admin »

marc,

No there isn't.

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: maintenance mode?

Unread post by toms »

Hi,

As there isn't a maintenance mode, you need to implement it yourself.

Something like this should work:

In PHP, BE: Run a query to check if maintenance mode is on
You would retrieve the maintenance time, message to be shown to the user etc. from a table.
Then show a message to the users and call nuLogout().
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: maintenance mode?

Unread post by admin »

marc,

You could do this in the Javascript section of any Home Page used by Access Levels.

Code: Select all


if(nuUserName() != null){
    
    window.onbeforeunload == null;
    nuLogout();
    
}

Steven
Post Reply