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.

Passed variables and auto login not working in MSM

January 06, 2011 6:47pm

Subscribe [5]
  • #1 / Jan 06, 2011 6:47pm

    gbederson

    92 posts

    All this was working fine, and I don’t remember anything that I might have done to change that. I’d like to get it working again! Below is the code I’m using.

    Thanks,
    Geoff


    Variable passed from another template:
    Template 1:

    {embed="site/erase2 memberid="{member_id}"}

    Template 2:

    {exp:weblog:entries site="default_site" weblog="partnership" }
    {if abroad-memberid == "{embed:memberid}"}
    Your partner is {title}
    {/if}
    {/exp:weblog:entries}

    (I also tried using an embed to the original site, {embed="default_site:site/erase"}, but the passed variable there is also not working.)

    Auto login code was working with this line in my config.php:

    $conf['multi_login_sites'] = "http://www.pinpartnership.org/index.php|http://visionarysociety.net/index.php";
  • #2 / Jan 07, 2011 11:02am

    Ingmar

    29245 posts

    There is a mismatch of quotes in your first embed:

    {embed="site/erase2 memberid="{member_id}"}

    Should probably read:

    {embed="site/erase2" memberid="{member_id}"}
  • #3 / Jan 07, 2011 11:58am

    gbederson

    92 posts

    Thanks for pointing out the missing quotes. However, that did not solve the problem, as the embed was already opening the second template. The passed variables are still not working in the other site (‘default_site’), nor is the auto-login working. They were working previously.

    Geoff

  • #4 / Jan 08, 2011 2:34pm

    Greg Salt

    3988 posts

    Hi Geoff,

    Can you clarify what has changed in your install since this was working for you? Have you upgraded any part of the site or added any extensions?

    Cheers

    Greg

  • #5 / Jan 17, 2011 10:04am

    Sue Crocker

    26054 posts

    Hi, Geoff. Any updates?

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

ExpressionEngine News!

#eecms, #events, #releases