ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Member logins

September 08, 2011 7:04am

Subscribe [2]
  • #1 / Sep 08, 2011 7:04am

    Scott Harrington

    85 posts

    Hi, Im having trouble creating a user login so that my client can see the sites progress behind the system offline template.

    I want to enable minimal access, ideally just so they can see the site.

    Tried creating a user in guests and just gave them control panel access but they can still only see just the landing page and we also got this error when trying to access the control panel.

    A PHP Error was encountered

    Severity: Warning

    Message: array_keys() [function.array-keys]: The first argument should be an array

    Filename: libraries/Menu.php

    Line Number: 208

    It also doesnt allow us to logout either.

    If I try and select the ‘view site when offline’ option in the member group settings, then the site shows as online regardless whether you are logged in or not???

    Any suggestions?

  • #2 / Sep 09, 2011 1:10am

    LMO

    203 posts

    Hi Scott,

    I normally use a basic php script in my index.php file to limit users by ip to my dev sites.

    $ips = array(
        '0.0.0.0',
        '0.0.0.0',
        '0.0.0.0'
    );
    
    if (! in_array($_SERVER['REMOTE_ADDR'],$ips))
    {
        require 'site_down.php'; exit;
    }

    Also if you use a global header you can just use this tag

    {if logged_out}{redirect=''}{/if}

    and redirect none users to another static page.

  • #3 / Sep 12, 2011 3:44pm

    Scott Harrington

    85 posts

    Thanks - I used your method with the index.php file and it sorted it.

    Thanks again

    Scott

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases