Advanced search  

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

Pages: [1]   Go Down

Author Topic: Login form on separate html file  (Read 3465 times)

0 Members and 1 Guest are viewing this topic.

zac

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 153
Login form on separate html file
« 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...

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.

Logged

Aditya Mooley

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 781
    • My Sweet Home
Re: Login form on separate html file
« Reply #1 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.
Logged
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

zac

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 153
Re: Login form on separate html file
« Reply #2 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.
Logged

zac

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 153
Re: Login form on separate html file
« Reply #3 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.
Logged

mala

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Login form on separate html file
« Reply #4 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

Logged
Andreas

Aditya Mooley

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 781
    • My Sweet Home
Re: Login form on separate html file
« Reply #5 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.
Logged
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

nazcarpine

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Nazcar Multimedia Productions
Re: Login form on separate html file
« Reply #6 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
I hope someone can help..
Thanks a lot.
Logged
nazcarpine.com

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login form on separate html file
« Reply #7 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.