Posted by claar on September 15, 2010 at 9:42pm
Similar concept as the readonlymode module, but this module:
1) logs out any logged-in users
2) displays a customizable message on the login form stating that only the admin user can login
3) allows you to put the site in this mode via drush
This module has no effect on anonymous user's browsing of the website.
Thoughts appreciated! The module is already coded and in-use on my drupal sites.
Comments
Maintenance mode?
How is this different from the core maintenance mode? Sounds exactly the same.
Not maintenance mode
Core maintenance mode takes the site offline, so that anonymous users who want to browse the site cannot do so. This module does not affect non-logged-in users when enabled, it only prevents users from logging in to Drupal.
This module is most useful for sites that do not allow anonymous users to modify Drupal in any way, such as the numerous static-content sites that I host. This module keeps out the site editors while letting anonymous browsers carry on as usual.
It's not acceptable to place our mission-critical sites into a maintenance mode for any period of time, but blocking logins for a period is acceptable.
Slight variant of a feature of Boost
Sounds interesting; if your using boost you can still access the cached pages while the site is in maintenance mode (its a setting). Something like what your describing could be useful.
Sounds good …
Sounds good …
but maybe it could be added to the mentioned readonlymode?
hello maintenance helper
I built Maintenance Helper for exactly that scenario.
I think it has most of the features you describe and I'd definitely accept a patch for the last one.
If you agree it looks good for your purposes we could discuss making you a co-maintainer.
knaddison blog | Morris Animal Foundation
Looks great
Hey greggles,
Your project sounds like the perfect home for the features I'm talking about. Suggested feature patches will be forth-coming -- co-maintainer-ship sounds interesting and I'm open for discussion on that.
Github
I've decided not to submit this as a new drupal module for now to avoid duplication of the Maintenance Helper module. However, until the Maintenance Helper module has the feature-set I spoke of, I will be using the admin-only module.
In case someone else would like to use this module, I have made it available at http://github.com/claar/admin_only_mode