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 integration  (Read 2966 times)

0 Members and 1 Guest are viewing this topic.

JonSmyth

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Login integration
« on: January 20, 2006, 08:15:18 pm »

Hey,

Okay... How can I integrate the login script to another page throughout my site.

I want a login script on my main site page.

All help is muchly appreciated.

Thanks,
Jon Smyth.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login integration
« Reply #1 on: January 21, 2006, 05:43:22 am »

Code: [Select]
<form action="/path/to/your/coppermine/folder/login.php" method="post" name="loginbox" style="margin:0px">
  <table border="0" cellspacing="0" cellpadding="0" class="maintable">
    <tr>
      <td class="tableb" width="40%">
        Username
      </td>
      <td class="tableb" width="60%">
        <input type="text" class="textinput" name="username" style="width: 100%" />
      </td>
    </tr>
    <tr>
      <td class="tableb">
        Password
      </td>
      <td class="tableb">
        <input type="password" class="textinput" name="password" style="width: 100%" />
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center" class="tableb">
        <label for="remember_me">Remember me</label>
        <input name="remember_me" type="checkbox" class="checkbox" value="1" />
      </td>
    </tr>
    <tr>
      <td align="center" class="tablef">
        <a href="/path/to/your/coppermine/folder/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" />
      </td>
    </tr>
  </table>
</form>

Edit
Code: [Select]
/path/to/your/coppermine/folder/appropriately (is in the code twice)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.