Contentteller

Contentteller Support Forums
Home Forums > Contentteller > General Questions >

View site when locked?

Discussion in 'General Questions' started by error, Nov 5, 2008.

  1. error Customer

    View site when locked?

    Is it possible for admin to view site when site is in maintenance/closed mode?
    error, Nov 5, 2008
    #1
  2. Philipp Administrator

    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:

    PHP:
    if( !$preferences[ 'website_active' ] )
    with

    PHP:
    if( ( !$preferences[ 'website_active' ] ) and ( $user[ 'user_status' ] == 2 ) )
    You need to be logged in on the front end before closing the site.
    Philipp, Nov 5, 2008
    #2
  3. error Customer

    This doesn't work but i need this urgent.
    error, Sep 1, 2010
    #3
  4. Philipp Administrator

    This will work:
    PHP:
    if( !$preferences[ 'website_active' ] and $user[ 'user_status' ] != 2 )
    The code itself is now in index.php (2.1.x)
    Philipp, Sep 1, 2010
    #4
  5. error Customer

    Works like a charm. Thx.
    error, Sep 1, 2010
    #5
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > General Questions >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.