Logout embedded mode goes back to non-embedded main.php code

greggb

Joined: 2008-09-07
Posts: 10
Posted: Sun, 2009-10-25 17:46

Operating in embedded mode. All works well until clicking "logout" and it takes me back to the raw gallery main.php (ie: I am no longer inside the embedded gallery version of my web site). Is this an option somewhere or do I need to manually change a pointer somewhere from main.php to gallery2Embedded.php?

G.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sun, 2009-10-25 18:04

I'm assuming yoursite is registered only hence gallery is actually re-directing to a login page.
You can add 'loginRedirect'=>'your/special/login/page.php' to your init array.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
greggb

Joined: 2008-09-07
Posts: 10
Posted: Sun, 2009-10-25 18:11

What does "registered" mean?

I have removed the "login" from appearing on my site.

I use a manual shortcut to get to the initial (embedded) login screen (since I don't want the login option appearing anywhere on the site as I only use it for admin functions).

http://www.mydomain.com/gallery/gallery2Embedded.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery%2Fmain.php%3F

Not sure what the loginRedirect....init array is or what to do.

Please clarify.

Thanks for the help,
G.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sun, 2009-10-25 18:23

Did you remove the login with $gallery->setConfig('login', false);?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2