Embed but use gallery user management

timoe

Joined: 2009-03-08
Posts: 11
Posted: Sun, 2010-10-03 15:15

Hi,

I would like to embed gallery into a site. I read all the documentation about it and it kooks easy. But in the documentation te emapp has a user management. But is it possible to use the gallery user management to log in but with the login and logout as part of the emapp instead of gallery? That way i don't have to reinvent the login part and get the login user from gallery.

If it's not possible i'll have to make the login part myself but that looks like extra work.

Timo

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2010-10-03 17:33

Does your embedding app have a user system?

You can do a simple embed w/ my easy form.
And choose to allow login so the only user management would be through gallery.

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

 
timoe

Joined: 2009-03-08
Posts: 11
Posted: Sun, 2010-10-03 19:54

The emApp does not exist yet :D And what the form does is the easy part, i've done that myself already. And I can enable $gallery->setConfig('login', true); so the login link in Gallery is visable but that's not the point were I want to give users te possibility to login. I would like it integrated into my emApp, a login and logout link in the menu and a non gallery login page that will parse the login to gallery to verify the creditials. So the emApp is login as well. It saves time for me and login security updates aply to my emApp as well. Is this possible?

Timo

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2010-10-03 20:19
Quote:
Is this possible?

Absolutely, but you'll have to code some kind of notification for your emapp to check for a valid session from gallery.
I believe there is a sample in the docs somewhere.

It is far easier to do it the other way though.

I think I have a script to display the login block outside of gallery if you're interested.(you can call any available block, but I personally never tried the login block)

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