Including G2 login box into web site

ie

Joined: 2005-08-20
Posts: 4
Posted: Sat, 2005-08-20 22:50

I've trawled through this forum, and I cant seem to find any examples where the embedding site is using the G2 login box, so I guess it's safe to ask - how do I do this ? I have the user verification up against the G2 user db up and running, but I want to display the login box, if the visitor hasnt logged in.

I just need the "login to your account stuff", no header or footer or sidebar stuff. Thanks for the great support on this great product !

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-21 16:40

if i understand you correctly, you just want to put the login box somewhere on your website, on a non-g2 page.
this has been done before, and there should be 2,3 topics in the forums about it.

just browse to your g2, log out. browse to the login screen are if your front page already shows the login box in the sidebar this is also ok.
click in your browser the "show me the (html) source" option (mouse, rightclick, ..).
search for the login <form .... </form> and copy the html to the other page.

 
ie

Joined: 2005-08-20
Posts: 4
Posted: Sun, 2005-08-21 18:27

Thanks for clearing this up for me. I was searching for somekind of php include, but this works just as I want it - I just changed the g2_formUrl hidden form value to the page for registered users in stead of the g2 login url. This is just in case someone else wants to do this too.. :-)