Joomla offline Site but allow for registered users

When we are developing any new joomla site… we need to make site offline….

we can do this site->global configuration-> Site Settings —  > Site Offline to yes…

but need to open for registered user…

An override (minor hack) to Joomla 1.5 as follows:

In /includes/application.php, change value of default 23 to 18

from:

if ($this->getCfg(‘offline’) && $user->get(‘gid’) < ’23’ ) {

$file = ‘offline’;

to:

if ($this->getCfg(‘offline’) && $user->get(‘gid’) < ’18’ ) {

$file = ‘offline’;

This will enable registered users to view the website after login on the offline page.

This will work for joomla 1.6 also……

Advertisements

PHP Developer..

Posted in Joomla 1.5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: