Login form on separate html file Login form on separate html file
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Login form on separate html file

Started by zac, March 06, 2008, 10:22:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zac

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.


Aditya Mooley

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.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

zac

Oh ok thanks Aditya! I will give that a try.  I guess it is just as easy as Gau Gau said it was.

zac

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.

mala

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

Andreas

Aditya Mooley

@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.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

nazcarpine

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
I hope someone can help..
Thanks a lot.

Joachim Müller

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.