Hopefully this is really easy

djackman

Joined: 2007-03-31
Posts: 2
Posted: Sat, 2007-03-31 22:12

I've created a website that consists of a single home page (describing the services of the site), Gallery, and a couple of other services. For the website, Gallery is really the main focal point, so I'd like the login for the main home page to be the Gallery login. The wiki pages suggest I can move the login page outside of Gallery, but I don't know how to do that. I'm not a PHP programmer (but I am an experienced Java programmer).

Can someone describe the steps to move the login page out to my main site? Would it be easier to just design my own login page and have that page call to some Gallery module to create the necessary session so once the user links to Gallery they are ready to go?

Thanks,
..David..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-04-01 00:28

the g2 login is just a HTML form with the form action URL pointing to g2.
browse to the g2 login form, copy the login form from the page HTML source and put it anywhere on your site.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
djackman

Joined: 2007-03-31
Posts: 2
Posted: Sun, 2007-04-01 15:47

Well, so far so good. Thanks! That worked to pull the login form out to my own page. However, the login action goes to main.php, so when the login is complete I'm at the gallery home page. Is there a way to tell main.php to redirect to my website home page after the login is complete?

..David..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-04-01 23:48

you could set the returnUrl, but g2 wouldn't allow redirecting to a URL that isn't in g2 itself (phishing protection).

thus, you should use a small php script, using GalleryEmbed. point the form action url to that script and use the returnUrl. it should allow returning to that script.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage