Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add forgot password to login box


Guest

Recommended Posts

I added a login box that has not , forgot password link, I want to add that , since I elimated the login page, the customers either login , or go

to create account

Link to comment
Share on other sites

the file you're looking for is /catalog/password_forgotten.php

i think it should work if you just add a direct link to it, but i'm not entirely sure :?:

The more you do, the more you learn

Link to comment
Share on other sites

it looks like it's working when you type in the wrong pass or none at all

it takes you to the reg. login page where you can recover yor pass. :)

The more you do, the more you learn

Link to comment
Share on other sites

Horse,

Look at the original login box and see how the forgotten password part was called. Then put that where you want it

Link to comment
Share on other sites

That does get them to the login page, I would just like to have the password forgotten in the login box. Thanks for the reply

Link to comment
Share on other sites

can you pm me the login box file

mostlikely it's in your catalog/includes/boxes/somename.php

or post it here i'll take a crack at it :wink:

The more you do, the more you learn

Link to comment
Share on other sites

I tried putting in the text for the call to forgotten page:

<tr>

<td class="smallText" colspan="2"><?php echo '<a href="' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>

</tr>

 

But the box disappered off the page like I was logged in

Link to comment
Share on other sites

you will need to ad this to your new login box

<?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?>

but most likely it will have to be modified to work correctly :wink:

The more you do, the more you learn

Link to comment
Share on other sites

<?php

/*

$Id: login.php,v 1.5 2003/02/15 20:33:28 wilt Exp $

 

osCommerce, Open Source E-Commerce Solutions

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td width="50%" align="right" valign="top"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_continue.jpg', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="50%" align="right" valign="top"><?php echo tep_image_submit('button_login.jpg', IMAGE_BUTTON_LOGIN); ?></td>

</tr>

</table></form></td>

</tr>

</table></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

this is the login box and the text I added in the editor

 

 

<?php

/*

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com''>http://www.oscommerce.com'>http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

 

 

IMPORTANT NOTE:

 

This script is not part of the official osC distribution

but an add-on contributed to the osC community. Please

read the README and INSTALL documents that are provided

with this file for further information and installation notes.

 

 

loginbox.php - Version 1.0

 

This puts a login request in a box with a login button.

 

If already logged in, will not show anything.

 

 

 

 

 

*/

?>

<!-- loginbox //-->

<?php

if (!tep_session_is_registered('customer_id')) {

?>

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => BOX_LOGINBOX_HEADING

);

new infoBoxHeading($info_box_contents, false, false);

 

$loginboxcontent = "

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 

<form name="login" method="post" action="" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "">

 

<tr>

<td align="left" class="main">

 

" . BOX_LOGINBOX_EMAIL . "

 

</td>

 

</tr>

 

<tr>

<td align="left" class="main">

 

<input type="text" name="email_address" maxlength="96" size="20" value="">

 

</td>

 

</tr>

 

<tr>

<td align="left" class="main">

 

" . BOX_LOGINBOX_PASSWORD . "

 

</td>

 

</tr>

 

<tr>

<td align="left" class="main">

 

<input type="password" name="password" maxlength="40" size="20" value=""

</td>

 

</tr>

 

<tr>

 

<td class="main" align="center">

 

" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . "

 

</td>

 

</tr>

 

<tr>

<td CLASS="smallText" COLSPAN="2"><?php echo '<a href="' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>

</tr>

</form>

 

</table>

 

";

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => $loginboxcontent

);

new infoBox($info_box_contents);

?>

</td>

</tr>

<?php

}

else

{

// If you want to display anything when the user IS logged in, put it

// in here... Possibly a "You are logged in as :" box or something.

}

?>

 

<!-- loginbox_eof //-->

Link to comment
Share on other sites

I think I see the problem - in the login 5.2 by Ajeh and the enhanced logins contribs there are no spots for pw forgotten. I think if you locate the " . tep_loginbox_greeting_bottom() function and adjust it to ad the password forgotten part maybe?

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...