Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / zen 1.3.5 password field box

zen 1.3.5 password field box

Locked

Views: 2,528

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Sep 2006, 11:41 PM
#1
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

zen 1.3.5 password field box

When clicking Login, and it takes you to the Login Page. On Foxfire it is fine, but on IE both boxes are not the same length. On the old zencart this was not a problem. So why is the password field box shorter and the email address box in IE? When both field boxes are suppose to be the same length. Is there something wrong with my zencart or is it zencart itself?

11 Sep 2006, 11:47 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: zen 1.3.5 password field box

The fields are formulated via a function based on the length or based on the setting in the:
/includes/templates/template_default/templates/tpl_module_create_account.php

<legend><?php echo TABLE_HEADING_LOGIN_DETAILS; ?></legend>
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="password-new"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-new"') . (zen_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

<label class="inputLabel" for="password-confirm"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></label>
<?php echo zen_draw_password_field('confirmation', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-confirm"') . (zen_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

You can customize your template by copying that to:
/includes/templates/your_template_dir/templates

and chaning the length ... :smile:

Now for me, I have never made a password as long as my email address ... but this is up to you ... :unsure:

11 Sep 2006, 11:58 PM
#3
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: zen 1.3.5 password field box

Sorry should of been more clear on which part on the Login Page. On the Login Page, under Returning Customers: Please Log In

Foxfire has both email address and password input box the same length, but under IE the password box is shorter than the email address box. On the old zencart this was not a problem, but I notice the password box is shorter than the email address box.

12 Sep 2006, 12:50 AM
#4
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: zen 1.3.5 password field box

Well I don't under stand why in Internet Explorer zen_draw_password_field input boxes are shorter than zen_draw_input_field input boxes. For Foxfire email and password input box are the same length when I put "size=20." But on IE the password box is shorter than the email input box. When I go to tpl_default_login.php and tpl_modules_create_account.php and change zen_draw_password_field to zen_draw_input_field, the input box length comes out correct. But the problem with using zen_draw_input_field, passwords are not protected so for sure we can't use zen_draw_input_field. Does anyone know why zen_draw_password_field is causing this problem? There seems to be no problem with that in zencart 1.3.0.2 and lower except for zencart 1.3.5. Everything works like it suppose to on Foxfire but not IE. Any help would be appreicated, thanks in advance.

12 Sep 2006, 1:04 AM
#5
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: zen 1.3.5 password field box

Never mind was using some older contributions that was causing this. Sorry for wasting space on the forum.

9 Feb 2009, 2:47 AM
#6
susan767 avatar

susan767

New Zenner

Join Date:
Feb 2009
Posts:
23
Plugin Contributions:
0

Re: zen 1.3.5 password field box

Although the last posting for this thread is more than two years old, I'm having the exact same problem.

I just installed Zen-Cart 1.3.8a and using a template downloaded from here. Here's the part of tpl_login_default.php that corresponds to the email and password input boxes.

<fieldset class="floatingBox forward">
<legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend>
<!--<div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div> -->
<br>
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', 'size="20" id="login-email-address"'); ?>
<br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', 'size="20" id="login-password"'); ?>
<?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
<br class="clearBoth" />

Any help or suggestion would be appreciated,

Susan