View site when locked?
error 232
From: -
From: -
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?
error
OP
232
From: -
From: -
Works like a charm. Thx.
1 Re: View site when locked?
Philipp Esselbach
From: -
Editor
0From: -
This will work:
The code itself is now in index.php (2.1.x)
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?
error
OP
232
From: -
From: -
This doesn't work but i need this urgent.
1 Re: View site when locked?
Philipp Esselbach
From: -
Editor
0From: -
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:
with
You need to be logged in on the front end before closing the site.
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.
Is it possible for admin to view site when site is in maintenance/closed mode?