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.

MSM + Members: Can't create a member that can only access "site 2" without access to "site 1".

April 26, 2011 10:26pm

Subscribe [6]
  • #16 / May 14, 2011 2:31pm

    Greg Salt

    3988 posts

    Hi Brian,

    I’m a bit confused by this:

    John,

    Thanks, but nothing. The only thing that shows is the template rendering from the site index page. In which is simply this:

    {if last_segment==""}
        {embed="site/home"}
    {if:else}
        {channel}|{entry_id}
        Nothing
    {/if}

    Which renders…

    Blog Entry|79
    Nothing

    Thanks,

    This suggests that you have the wrong file as your admin.php one i.e it’s a copy of your site index.php file and not the system/index.php file. Can you please post the top 30 or so lines of your admin.php (your Masked Access) file and if there are any paths or sensitive information there then just replace that data with something generic but keep the same format.

    Cheers

    Greg

  • #17 / May 16, 2011 11:19am

    a la mode

    168 posts

    Greg,

    First 45…

    <?php
    /**
     * ExpressionEngine - by EllisLab
     *
     * @package        ExpressionEngine
     * @author        ExpressionEngine Dev Team
     * @copyright    Copyright (c) 2003 - 2010, EllisLab, Inc.
     * @license        <a href="http://ellislab.com/expressionengine/user-guide/license.html">http://ellislab.com/expressionengine/user-guide/license.html</a>
     * @link        <a href="http://expressionengine.com">http://expressionengine.com</a>
     * @since        Version 2.0
     */
    
    /*
     * --------------------------------------------------------------------
     *  MASKED CP ACCESS
     * --------------------------------------------------------------------
     *
     * This lets the system know whether or not the control panel is being
     * accessed from a location outside the system folder
     * 
     * NOTE: If you set this, be sure that you set the $system_path and the 
     * 'cp_url' item in the $assign_to_config array below!
     * 
     */
        define('MASKED_CP', TRUE);
    
    /*
     * --------------------------------------------------------------------
     *  SYSTEM PATH
     * --------------------------------------------------------------------
     *
     * The following variable contains the server path to your
     * ExpressionEngine "system" folder.  By default the variable is left
     * blank.  If you need to run your CP from somewhere other then 
     * the default location you can set name here and move a copy of this
     * file to that location. If you set the name, please include the 
     * server path. The path can be a simple relative path or it can 
     * be a full server path.
     *
     * Example:  $system_path = './mysecretfolder';
     * 
     */
        $system_path = "../../MY_SYSTEM_SITE/system";
    /*
  • #18 / May 16, 2011 1:48pm

    Sue Crocker

    26054 posts

    Hi, Brian. That looks like the right file for your admin.php. But looking at your system_path - have you tried something like a full server path?

    Is there a particular reason you’re wanting that extra level of separation between the /system folder and the site1 folder?

  • #19 / May 16, 2011 2:11pm

    a la mode

    168 posts

    I’ll try the full server path,I was just following the instructions to provide a relative path.

    As for the locations, the IS team here has created folders for each site and that’s what I have to work with. If there is a compelling argument for keeping them all in the same folder, I will pass that on, but currently, each site has a folder with the A-record pointing to the proper location per domain.

    Thanks,


    ***EDIT
    Sue, the full path made no difference.

  • #20 / May 16, 2011 4:14pm

    Sue Crocker

    26054 posts

    Let’s get login details.. check your email in a few minutes.

  • #21 / May 16, 2011 4:14pm

    a la mode

    168 posts

    will do

  • #22 / May 16, 2011 4:23pm

    a la mode

    168 posts

    Sue,

    I sent you a message. Please let me know if you did not receive it.

    Thanks,

  • #23 / May 16, 2011 4:36pm

    Sue Crocker

    26054 posts

    I replied. 😊

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

ExpressionEngine News!

#eecms, #events, #releases