This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

View site when locked?


avatar
error 232
From: -
View site when locked?

Is it possible for admin to view site when site is in maintenance/closed mode?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: View site when locked?
avatar
OP 232
From: -
Works like a charm. Thx.
1 Re: View site when locked?
avatar
Editor
0
From: -
This will work:
if( !$preferences[ 'website_active' ] and $user[ 'user_status' ] != 2 )


The code itself is now in index.php (2.1.x)
1 Re: View site when locked?
avatar
OP 232
From: -
This doesn't work but i need this urgent.
1 Re: View site when locked?
avatar
Editor
0
From: -
I guess this is another thing on the do list for the next update.

Theoretically, the following small modification should do the trick. Open contentteller.php in an editor and replace:

if( !$preferences[ 'website_active' ] )


with

if( ( !$preferences[ 'website_active' ] ) and ( $user[ 'user_status' ] == 2 ) )


You need to be logged in on the front end before closing the site.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.