Author Topic: [Mod] Login Page  (Read 13545 times)

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
[Mod] Login Page
« on: February 10, 2011, 01:56:20 PM »
Create a new Login Page

1.) copy your template/error.html rename it to "login.html" and store it in your template folder.

2.) search in the new file template/login.html:
Code: [Select]
<p>{error_msg}</p>
and replace:
Code: [Select]
<form action="{url_login}" method="post">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
  <tr>
    <td  class="row2">
      <table width="100%" border="0" cellpadding="4" cellspacing="0">
        <tr>
        <tr>
          <td align="right">{lang_user_name}</td>
          <td width="100%"><input type="text" size="10" name="user_name" class="logininput"></td>
        </tr>
        <tr>
          <td align="right">{lang_password}</td>
          <td><input type="password" size="10" name="user_password" class="logininput"></td>
        </tr>
        <tr>
          <td align="right"><input type="checkbox" name="auto_login" value="1" ></td>
          <td><span class="smalltext">{lang_auto_login}</span></td>
        </tr>
        <tr>
          <td align="right"><input type="hidden" name="url" value="./login.html"></td>
          <td><input type="submit" value="{lang_login}" class="button"></td>
        </tr>
      </table>
      <p>&nbsp;</p>
    </td>
  </tr>
</table>
</form>

3.) search in all template files (home, categories, detail.html the new login.html e.t.c ) and remove:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
  </tr>
  <tr>
    <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td align="center" class="row1">{user_box}</td>
  </tr>
   <tr>
    <td align="center" class="row1">{template_select}</td>
  </tr>
  <tr>
    <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
  </tr>
</table>

4.) search in all template files (home, categories, detail.html the new login.html e.t.c ):
Code: [Select]
<a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
insert above:
Code: [Select]
        {if user_loggedin}<span><a href="./admin/index.php">[Admin Control Panel]</a></span><span>&nbsp;|</span>
        <span><a href="{url_control_panel}">[User Control Panel]</a></span><span>&nbsp;|</span>
        {endif user_loggedin}
        {if user_loggedout}<span><a href="{url_custom_login}">{lang_login}</a></span><span>&nbsp;|</span>{endif user_loggedout}
        {if user_loggedin}<span><a href="{url_logout}">{lang_logout}</a></span><span>&nbsp;|</span>{endif user_loggedin}

5.) search in templates/member_editprofile.html:
Code: [Select]
{lang_edit_profile_msg}<br />
<br>
insert below:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td valign="top" class="head1">
     <table width="100%" border="0" cellpadding="4" cellspacing="0">
        <tr>
          <td colspan="2" valign="top" class="head1">{lang_loggedin_msg}</td>
        </tr>
        <tr>
          <td class="row1">
          <ul>
            <li><a href="{url_lightbox}">{lang_lightbox}</a></li>
            <li><a href="{url_control_panel}">{lang_control_panel}</a></li>
            <li><a href="{url_logout}">{lang_logout}</a></li>
            <li><a href="./admin/index.php">[Admin Control Panel]</a></li>
          </ul>
          </td>
        </tr>           
      </table>
   </td>
  </tr>
</table>

6.) search in includes/page_header.php:

"home_url"  => ROOT_PATH,

insert above:

  
"url_custom_login" => $site_sess->url(ROOT_PATH."index.php?template=login"),
  
"url_user_logininfo" => $site_sess->url(ROOT_PATH."index.php?template=user_logininfo"),


mfg Andi

Offline LiverpooL

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Login Page
« Reply #1 on: February 14, 2011, 01:53:39 PM »
Could you give us a demo, just to see :)

Rembrandt

  • Guest
Re: [Mod] Login Page
« Reply #2 on: February 14, 2011, 03:00:54 PM »
Welcome to the Forum!
Could you give us a demo, just to see :)
and here top right "Anmelden"
you can not login  :)

Offline LiverpooL

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Login Page
« Reply #3 on: February 14, 2011, 05:50:21 PM »
Thank you for the fast posting and the pictures. ;)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.808
  • I ♥ 4I
    • View Profile
Re: [Mod] Login Page
« Reply #4 on: January 03, 2014, 12:29:23 AM »
Kann man da auch das reCaptcha verbauen?
Bzw. Generell das Captcha?

Rembrandt

  • Guest
Re: [Mod] Login Page
« Reply #5 on: January 03, 2014, 05:22:41 AM »
Hi!
Das Captcha kannst sicher einbauen, als Bspl. kannst du die register.php nehmen.
Und in der global.php noch den captcha teil ergänzen.

mfg Andi