Offline

mortendk - March 26, 2009 - 18:07
Offline

Offline - A theme for you dead site \m/

----------------------------------------
Setup
----------------------------------------
To make it work for offline use you have to do some fiddeling in the site settings.php
add this line to the top of your sites/YOURSITE/settings.php

<?php
  $conf
['maintenance_theme'] = 'offline';
?>

and youre ready to go offline in style.

----------------------------------------
Test
----------------------------------------
To test it open up 2 different browsers fx opera & firefox.
In the first browser you will login as admin and in the second you will login as a normal user.

1. Admin browser
Login to your site as admin

Clear the theme cache (/admin/settings/performance) down in the bottom of the page "clear cached data"

Set the site to off-line in the site-maintenance (/admin/settings/site-maintenance)
DONT lock out!!!
if youre locked out .... : http://lmgtfy.com/?q=logged+out+of+drupal+in+maintenance+mode

2. user browser
Open up the other browser and go to the site you should now se the site-offline.

if you wanna se the page when its totally offline - like in a database error:
go to settings.php
find the $db_url settings its around line 96, and changethe password etc to something else to provoke the error

Releases

Official releasesDateSizeLinksStatus
6.x-1.12009-Mar-2721.3 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Mar-2721.3 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.