The pursuit of visually stimulating web designs with an emphasis on client ease of use. Start building your professional website, attract more customers and generate more sales today. Read More

Text Size
Tuesday, 08 June 2010 01:46

How to allow a registered user to access an offline Joomla website

Written by Richard
Rate this item
(0 votes)

So the situation may have arisen where you need to have your website offline, yet you need your registered users to have access to it. This could be because of beta testing, pre-approval prior to launch, or a host of other reasons. However, you have a problem. By default Joomla does not allow registered users to access a website when it is offline. So here is how you can accomplish this.

Step 1Open your default Joomla directory via your web server file manager or ftp client.

Step 2Open the folder "includes".

Step 3Look for and open the file "application.php" in your editor.

NOTE: If you do not have a fancy web editor, don't worry. Notepad can be found on any windows computer. Although this is not a pretty solution it can be done. Make sure to use the find function in Notepad by pressing "ctrl+F". Then search for offline to find the code below.

Step 4Scroll down to line 154, it should look like this: if ($this->getCfg('offline') && $user->get('gid') < '23' ) { $file = 'offline';

Step 5Change the "23" to an "18".

Step 6Save the file and you have now allowed registered users to access your Joomla install.

Note that playing with core files may create security risks, therefore do not use this method as a long term solution. Also this file may be over written with future Joomla updates.

Last modified on Tuesday, 08 June 2010 13:04
Richard

Richard


Website: www.richardbankertwebdesign.com E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Related Video

Login to post comments

Newsletter

:

Latest Tweets

Blog Poll

Favourite Gadget

Top Commenters