[drupal-devel] Re: [CS dev] Worth a look: Symphony
The goal in sharing that was really to inspire some idea grabbing development. I love the "Flickr Massage" feature: Take Frontend Offline This will disable your front-end for non-superusers displaying your Maintainence page instead. If not maintainence page is found a default message is presented. That seems so helpful, even if it's a seldom used feature. Yeah, it's not open source, but it's totally worth getting inspiration from! Chris On 9/28/05, Matt Koglin <mrgadget@gmail.com> wrote:
It's pretty and looks easy to use. Those AJAX widgets are pretty cool, too. For $49, it might be a good solutions for some folks. Probably easier to install than drupal... They're talking about a $50/year hosted plan, too. Limited, but affordable.
--------------------------------------------------------------------- To unsubscribe, e-mail: civicspace-dev-unsubscribe@civicspacelabs.org For additional commands, e-mail: civicspace-dev-help@civicspacelabs.org
On 28 Sep 2005, at 20:51, Chris Messina wrote:
Take Frontend Offline This will disable your front-end for non-superusers displaying your Maintainence page instead. If not maintainence page is found a default message is presented.
Hey, I just did that on drupal.org today! I needed exclusive access to drupal.org for a couple minutes. I had to modify index.php for it though ... -- Dries Buytaert :: http://www.buytaert.net/
On Thu, 29 Sep 2005, Dries Buytaert wrote:
On 28 Sep 2005, at 20:51, Chris Messina wrote:
Take Frontend Offline This will disable your front-end for non-superusers displaying your Maintainence page instead. If not maintainence page is found a default message is presented.
Hey, I just did that on drupal.org today! I needed exclusive access to drupal.org for a couple minutes. I had to modify index.php for it though ...
I guess you will agree with me that wasting screen space and code lines on a button that one needs once every few months isn't worth it... Cheers, Gerhard
The more general approach and issue here is that this problem -- though possibly seldomly used -- is one that very few non-developers would ever have a clue how to do. In addition, such thoughfulness begins to make Drupal look like an actual "community-friendly" environment, instead of just "community-plumbing" with lots of sharp edges and ugly design that it takes a whole community to brute-force in order to figure out how to use it. If it's just a couple of lines of code and an extra button and it saves 10 people 2 hours each, that's what will make Drupal a success, not the microscopic size of the download. Chris On 9/29/05, Gerhard Killesreiter <killesreiter@physik.uni-freiburg.de> wrote:
On Thu, 29 Sep 2005, Dries Buytaert wrote:
On 28 Sep 2005, at 20:51, Chris Messina wrote:
Take Frontend Offline This will disable your front-end for non-superusers displaying your Maintainence page instead. If not maintainence page is found a default message is presented.
Hey, I just did that on drupal.org today! I needed exclusive access to drupal.org for a couple minutes. I had to modify index.php for it though ...
I guess you will agree with me that wasting screen space and code lines on a button that one needs once every few months isn't worth it...
Cheers, Gerhard
On 29 Sep 2005, at 20:16, Gerhard Killesreiter wrote:
Take Frontend Offline This will disable your front-end for non-superusers displaying your Maintainence page instead. If not maintainence page is found a default message is presented.
Hey, I just did that on drupal.org today! I needed exclusive access to drupal.org for a couple minutes. I had to modify index.php for it though ...
I guess you will agree with me that wasting screen space and code lines on a button that one needs once every few months isn't worth it...
To give you a quick idea, here is how my modified index.php looks like: $maintenance = FALSE; require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); if ($maintenance && $user->uid != 1) { drupal_set_title("We'll be right back"); print theme('maintenance_page', 'Drupal.org is being upgraded. We should be back in a jiffy.'); } else { $return = menu_execute_active_handler(); switch ($return) { case MENU_NOT_FOUND: drupal_not_found(); break; case MENU_ACCESS_DENIED: drupal_access_denied(); break; default: if (!empty($return)) { print theme('page', $return); } break; } drupal_page_footer(); } I'm certainly going to leave that in. It's simple, handy, and the only effective way to shortcut all visitors. A non-developer would not be able to figure that out. I leave it up to you guys whether that needs to be extended and committed. -- Dries Buytaert :: http://www.buytaert.net/
To give you a quick idea, here is how my modified index.php looks like:
$maintenance = FALSE;
require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if ($maintenance && $user->uid != 1) { drupal_set_title("We'll be right back"); print theme('maintenance_page', 'Drupal.org is being upgraded. We should be back in a jiffy.'); } else { $return = menu_execute_active_handler(); switch ($return) { case MENU_NOT_FOUND: drupal_not_found(); break; case MENU_ACCESS_DENIED: drupal_access_denied(); break; default: if (!empty($return)) { print theme('page', $return); } break; } drupal_page_footer(); }
I'm certainly going to leave that in. It's simple, handy, and the only effective way to shortcut all visitors. A non-developer would not be able to figure that out. I leave it up to you guys whether that needs to be extended and committed.
What is important that this maintanance mode reply *should not* be a HTTP 200 OK reply. What we have done on a site is to return an "503 Service unavailable" status code and a maintatance message, so that the message is not going to be indexed in search engines (which is quite unprofessional :), and it is not going to be tried to be parsed as RSS by a newsreader, etc. Goba
with this logic, the site will still appear up for cached pages. the UID check could happen after only doing a DRUPAL_BOOTSTRAP_SESSION. That would be a big help during a slashdotting. Not sure if the theme('maintenance page') call will work then though. It might.
$maintenance = FALSE;
require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if ($maintenance && $user->uid != 1) { drupal_set_title("We'll be right back"); print theme('maintenance_page', 'Drupal.org is being upgraded. We should be back in a jiffy.'); } else { $return = menu_execute_active_handler(); switch ($return) { case MENU_NOT_FOUND: drupal_not_found(); break; case MENU_ACCESS_DENIED: drupal_access_denied(); break; default: if (!empty($return)) { print theme('page', $return); } break; } drupal_page_footer(); }
I'm certainly going to leave that in. It's simple, handy, and the only effective way to shortcut all visitors. A non-developer would not be able to figure that out. I leave it up to you guys whether that needs to be extended and committed.
-- Dries Buytaert :: http://www.buytaert.net/
participants (6)
-
Chris Messina -
Dries Buytaert -
Dries Buytaert -
Gabor Hojtsy -
Gerhard Killesreiter -
Moshe Weitzman