Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Login form on homepage?  (Read 3340 times)

0 Members and 1 Guest are viewing this topic.

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Login form on homepage?
« on: September 17, 2008, 08:59:53 pm »

I wonder if it is possible to add login(username and password) form on the main page without pressing login button to login :D
Logged

Nibbler

  • Guest
Re: Login form on homepage?
« Reply #1 on: September 17, 2008, 09:03:26 pm »

Yes, search the board for previous discussions.
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: Login form on homepage?
« Reply #2 on: September 17, 2008, 09:06:07 pm »

I wonder what keyword should I use? Nothing comes to mind  ???
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: Login form on homepage?
« Reply #3 on: September 17, 2008, 09:20:42 pm »

Okay I found it, but how do i make the box disappear when someone is logged in?
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Login form on homepage?
« Reply #4 on: September 17, 2008, 10:41:13 pm »

What box? ??? Maybe you can share what you've found then we can help.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: Login form on homepage?
« Reply #5 on: September 18, 2008, 02:30:10 pm »

Code: [Select]
<table width="160" border="0" cellspacing="0" cellpadding="0">
  <tr>
     <form action="login.php" method="post" name="loginbox">
      <td width="100%" colspan="0">
<p>
<input type="text" class="textinput" name="username" style="width: 100%" tabindex="1" />
<input type="password" class="textinput" name="password" style="width: 100%" tabindex="2" />
<input name="submitted" type="submit" class="button" value="login" tabindex="3" />
</td>
    </form>
  </tr>
</table>
This is what I use to login, but I need to make it somehow, when user is logged, this will disappear
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login form on homepage?
« Reply #6 on: September 18, 2008, 06:35:39 pm »

Well, that's a straightforward, static, HTML-driven login box that will of course appear no matter what. There have been other discussions that explain how to add a login box. Search more throughly. The thread you probably want is http://forum.coppermine-gallery.net/index.php/topic,33349.0.html
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 20 queries.