Maintenance mode

Hi,

I need to create a "Maintenance mode" switch in the cmsBuilder for my client's project, where from a checkbox i can disable the access to the website and redirect all users to a temporary info page until the switch is on.

Is there any way/function to embed this feature in the websiteMembership and made simplest the integration.

Thank you in advance,
Karls

Hi Damon,

Thank you, this is the solution that i already .
I search for an alternative version, that i can make global from the wensiteMembership add-on if its possible.

I have separatedmember table and login from CMS with:

$GLOBALS['WSM_ACCOUNTS_TABLE'] = 'members';
$GLOBALS['WSM_SEPARATE_LOGIN'] = true;

and i need to redirect users only for the 'members'  rable.

Any suggestion?
Karls

By Damon - September 25, 2015

Hi again,

It sounds like you want to just the members to be redirected. Here is one way to do this:

Change this:
 $GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL']  = '/'; 
to instead go to a page that checks if the site is in Maintenance mode (redirects to maintenance page) or Live (redirects to logged in content).

This would use the same "Maintenance mode" switch for CMS Builder and the code from above.

Once setup, you simply check the box in CMS Builder to turn maintenance mode (for members) on or off.

Hopefully this is a workable solution for you. If not, can you give me more details about what you are looking for.

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Hi Damon,

Thank you for the support on this, I'll go with your first suggestion.

Karls