coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: johanz on September 17, 2008, 08:59:53 PM

Title: Login form on homepage?
Post by: johanz 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
Title: Re: Login form on homepage?
Post by: Nibbler on September 17, 2008, 09:03:26 PM
Yes, search the board for previous discussions.
Title: Re: Login form on homepage?
Post by: johanz on September 17, 2008, 09:06:07 PM
I wonder what keyword should I use? Nothing comes to mind  ???
Title: Re: Login form on homepage?
Post by: johanz 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?
Title: Re: Login form on homepage?
Post by: Gizmo on September 17, 2008, 10:41:13 PM
What box? ??? Maybe you can share what you've found then we can help.
Title: Re: Login form on homepage?
Post by: johanz on September 18, 2008, 02:30:10 PM

<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
Title: Re: Login form on homepage?
Post by: Joachim Müller 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