coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: zac on March 06, 2008, 10:22:05 AM

Title: Login form on separate html file
Post by: zac on March 06, 2008, 10:22:05 AM
Hi.. I was wondering if anyone knows how to put the login form outside of the coppermine gallery?  I just want to have the login box on my home page and if someone uses it they will be sent to my coppermine install and be logged in.  All I could dig up in the forums was this...

Quote from: Joachim Müller on August 06, 2007, 07:06:41 AM
Adding a login-box to non-coppermine-driven pages is dead easy - you just need to copy the corresponding HTML output of the form into your non-coppermine page. This has been asked and answered several times already. Making all your pages "coppermine-aware" is being explained in several postings as well. ...

I think there are answers in there but really not enough for me to go on.  Please tell me if you have done this or perhaps can point me to where I can learn how.

Title: Re: Login form on separate html file
Post by: Aditya Mooley on March 06, 2008, 11:55:55 AM
Go to http://yoursite.com/cpginstall/login.php
View source of the page.
Copy the HTML for login form.
Paste it wherever you need it.
Enter the correct path in form action.
That's it.
Title: Re: Login form on separate html file
Post by: zac on March 06, 2008, 07:49:55 PM
Oh ok thanks Aditya! I will give that a try.  I guess it is just as easy as Gau Gau said it was.
Title: Re: Login form on separate html file
Post by: zac on March 07, 2008, 10:14:02 AM
Yes it is very easy..  Weird thing though, I generated a site map and for some reason the login form page was generated like 100 times!!  Weird.  I hope this doesnt mess up the bots.
Title: Re: Login form on separate html file
Post by: mala on March 07, 2008, 10:40:02 AM
I don't know if I understand really what you want to do, but I have the impression it has nothing to do
with the Gallery. I you want to protect your homepage (or any other page) with a password
try to "google" "apache password protection" or something similar if you do not use apache
and you will find pretty detailed explanations. For example in
http://httpd.apache.org/docs/1.3/howto/auth.html

Title: Re: Login form on separate html file
Post by: Aditya Mooley on March 07, 2008, 12:19:22 PM
@mala - zac doesn't want a protection for homepage. Here the only requirement is putting a login form on pages other than coppermine so that user can login from anywhere.
Title: Re: Login form on separate html file
Post by: nazcarpine on August 02, 2008, 07:22:51 AM
Oh.. when i place the code to my site it works well and look good in internet explorer. but not in firefox. My line breaks were replaced with a "@" sign.
??? ???
Then I deleted the code and the "@" sign is still there. Here's the site:http://www.nazcarpine.com (http://www.nazcarpine.com)
I hope someone can help..
Thanks a lot.
Title: Re: Login form on separate html file
Post by: Joachim Müller on August 02, 2008, 02:37:22 PM
Locking. Start a separate thread for your issues. We can't tell what you did, but you just have to undo your edit and you'll be fine. Make sure you're not looking at a cached copy of the page.