Login | Sign up | Toll-Free: 1-800-752-0455
 
 

Forum

 

9 posts by 4 authors in: Forums > CMS Builder
Last Post: January 18

it would be great if we could have a mechanism to put the site into maintenance mode. A checkbox and a message field in the general settings might be enough.

------------
Jeff Shields

Jeff, 

How would that work?  Would we just show a message on the front-end?  But CMS logins and access would work as usual?

You could probably write a plugin that did that for every page that included viewer_functions.php.  It wouldn't work for stand-alone pages though because the CMS has no ability to run code there.

Dave Edis - Senior Developer
interactivetools.com

Could you just have a check-box somewhere that says "Under Maintenance".  Then, add some code on every page that says "if under_maintenance !='' then include a <meta http-equiv="refresh" content="0;URL='http://www.example.com/undermaintenance.php'" /> 

Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au

That would work, but you'd want to set some headers to prevent search engines from indexing that page: 

  // Let search engines know we're only down temporarily and they should check back later
  header('HTTP/1.1 503 Service Temporarily Unavailable');
  header('Status: 503 Service Temporarily Unavailable');
  header('Retry-After: 7200'); // in seconds

Dave Edis - Senior Developer
interactivetools.com

By mizrahi - January 18 - edited: January 18

I like doing this via htaccess. You can redirect all traffic to go to a temporary page, but allow yourself (and others) to bypass the redirect by IP address.

https://www.google.com/search?q=htaccess+maintenance+mode

Here is a great breakdown:

https://perishablepress.com/temporary-site-redirect-for-visitors-during-site-updates/

You are missing the point. There are many ways to do it manually, editing files on my development machine then copying them to the server. 

What I am asking for is a built in way to do it directly from thebadmin area.

------------
Jeff Shields

Jeff,

Do what specifically?  That's the problem.  It's difficult for us to consider change requests like this because they're very vague.  It's unlikely that anything we'd initially build would meet your requirements.  If it can't be specified manually then it can't be done automatically.  Because what will I automatically do?  

It's likely that all the vendors that implement this feature do it in different ways and the actual requirements of the request are unspecified.  There are many variables... Do we limit access to the cms or the website, or both?  Do we limit access based on IP?  Do we show a banner above the page or an alternative to the entire page?  Can users direct link to images and pdfs?  And what's the effective difference between click "activate/deactivate" on a maintenance mode plugin vs a checkbox in the CMS? 

My recommendation would be to focus on the exact requirements and maybe consider custom programming to get this done.  I'm guessing you have some undefined requirements that are uniquely specific to your particular site or project and we don't know what those are.

Dave Edis - Senior Developer
interactivetools.com

Although I mentioned this earlier, I will reiterate in more detail.

Requirements

  1. Must be part of the core.
  2. Must have a customizable message
  3. Must allow access to admin area.
  4. Must allow logged in Admin/Editor User to view website.
  5. Must redirect all other users to “under maintenance screen.” but allow access to admin area log in.
  6. Must be set in settings.dat.php file via General Settings screen.
  7. Must allow logged in admin/editor to make edits. 

Virtually every other CMS including wordpress, drupal etc have this functionality. Every shopping cart I have administered also have the same functionality.

Priority level medium to low. It‘s a nice to have. Can be done manually as it has been all along.

Comments and suggestion encouraged. Maybe a consensus of what everyone wishes to see in this feature could be established.

------------
Jeff Shields