coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: santoro on January 10, 2008, 01:05:06 AM

Title: loginbox for Coppermine bridged with phpBB2
Post by: santoro on January 10, 2008, 01:05:06 AM
I found this script, but it doesn't work on Coppermine that is bridged with some other application (in my instance with phpBB2). What should I do? Thanks for answer!


<form action="login.php?referer=foobar.htm" method="post" name="loginbox">
  <table align="center" width="600" cellspacing="1" cellpadding="0" class="maintable">
    <tr>
      <td class="tableh1" colspan="2">Enter your username and password to login</td>
    </tr>
    <tr>
      <td class="tableb" width="40%">Username</td>
      <td class="tableb" width="60%"><input type="text" class="textinput" name="username" style="width: 100%" tabindex="1" /></td>
    </tr>
    <tr>
      <td class="tableb">Password</td>
      <td class="tableb"><input type="password" class="textinput" name="password" style="width: 100%" tabindex="2" /></td>
    </tr>
    <tr>
      <td colspan="2" align="center" class="tableb">Remember me <input name="remember_me" type="checkbox" class="checkbox" value="1" tabindex="3" /></td>
    </tr>
    <tr>
      <td align="center" class="tablef"><a href="forgot_passwd.php" class="topmenu">I forgot my password</a></td>
      <td align="left" class="tablef"><input name="submitted" type="submit" class="button" value="Login" tabindex="4" /></td>
    </tr>
  </table>
</form>
<script language="javascript" type="text/javascript">
<!--
document.loginbox.username.focus();
-->
</script>
Title: Re: loginbox for Coppermine bridged with phpBB2
Post by: Joachim Müller on January 10, 2008, 08:09:19 AM
Take a look at the HTML output of the phpbb login form, copy that and change the action attribute of the form accordingly. For details, post details.