I wish it was as simple as /user/login. It is not. Users can have active sessions
still, so something needs to be done about those.
One approach is to log them off explicitly another is checking that they don't
have some special permission (administer site configuration?) and treating
them as anonymous users (fudge the $user variable?).
Or maybe they still can browse the site as logged in users, but cannot create
content or comment on content,. That is overly simplistic since there are many
other things that are site specific that fall into that category (e.g. voting?
userpoints? ...etc.)
I guess there are many definitions to "hibernation" and they will be site profile
specific. No one size fits all.
Sorry, should have included 'while still making site content available'. This way you don't have broken links during the 'hibernate' period.
The main use case for this is for when a site operator doesn't want to deal with the normal submissions users might make (maybe during a vacation or other leave of absence), as state during an extended backup/site move period. They want their site to be live, but not have submissions or other member contributions made (no database updates).
So www.example.com/node/300 still renders, but /user/login is inactive/doesn't work unless you log in with the admin account.
Greg
From: development-bounces@drupal.org [mailto: development-bounces@drupal.org] On Behalf Of Khalid Baheyeldin
Sent: Tuesday, August 21, 2007 12:08 PM
To: development@drupal.org
Subject: Re: [development] any work done/planned on Drupal "HIBERNATION"feature
Site offline does that already, but makes the site offline (duh!)
The code to allow admin logging in but not others could be reused though
to do what you want without the site going offline.On 8/21/07, Greg Holsclaw <Greg.Holsclaw@trouvemedia.com> wrote:
I would add one other item.
- a way to turn off login except for the admin. This way you don't have to worry about member contributed content being added, without having to go to maintenance mode.
Greg
From: development-bounces@drupal.org [mailto: development-bounces@drupal.org] On Behalf Of zeljko blace
Sent: Tuesday, August 21, 2007 11:15 AM
To: development@drupal.org
Subject: [development] any work done/planned on Drupal "HIBERNATION" feature
Hi!
I am
developing a lot of small sites with Drupal with limited
activity and would like to know if there were ever discussion or needs
from other "deployers" to have their Drupal website HIBERNATE
for a while?
Good example would be websites that:
* promote events and are active only just before/during/after event,
while rest of the time they have no need for interactive features and dynamic content.
Putting a static copy of website would not do it here as website
goes back to active mode from time to time.
* are temporarily without administrator/webmaster
* that want to limit web use to a specific date/time to have people few people that
use website come together on-line in sync
...hope this is not too strange and would resonate well with
people who understand that web publishing could be
more then networked-digitized print ;-)
Best - Zeljko
--
2bits.com
http://2bits.com
Drupal development, customization and consulting.