Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2005
    Posts
    30
    Plugin Contributions
    0

    Default Text Box Length on Log-In

    Ok...I have started a few threads here about this issue. Originally, the text boxes on our Log-In page were only 2 characters wide, and we could not change it no matter what.

    Members here on these forums let me know that it might be a server issue. I had our hosting tech support dig and dig. They didn't find anything funny with the server, but they were able to make the fields on that page bigger.

    They discovered that it was a code issue on includes/function/functions_general.php They went in and changes some stuff to fix the field length.

    But now the length of the email field is 468 characters! And I don't know how to fix it...changing variables on the aforementioned page does nothing. I can't figure out where to look. Any ideas on what I can do? I'm desperate.

    Please take a look here and let me know what I can do: https://www.dirtragmag.com/merch/ind...ain_page=login

    Thanks!....

  2. #2
    Join Date
    Feb 2006
    Posts
    235
    Plugin Contributions
    1

    Default Re: Text Box Length on Log-In

    If memory serves me right I believe that the length is based on the DB settings for that field....
    I would start by upgrading to the latest zen cart version ( do a fresh install ).
    I see that yo dont have that many products not tooo much customization...so should be a relatively quick procedure....
    www.planetebio.net - Eat Right Feel Good !

  3. #3
    Join Date
    Nov 2005
    Posts
    30
    Plugin Contributions
    0

    Default Re: Text Box Length on Log-In

    Thanks, johnny. But that's pretty rough news for me. We've done a lot of customization. And, despite only seeing two products on the cart, there are many more...they're just not live.

    Do you know of any other way that we can partially upgrade without too much hassle so we won't lose everythying?

    Thanks!

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Text Box Length on Log-In

    Take a look in your tpl_login_default.php

    find this line of code:

    Code:
    <label class="inputLabel" for="login-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="login-email-address"'); ?>
    <br class="clearBoth" />
    A check of the source of the login page shows that the highlighted portion is currently set at 431 this is causing the excesive length.

    Do the same for:
    tpl_modules_create_account.php

    Code:
    <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>': ''); ?>

  5. #5
    Join Date
    Nov 2005
    Posts
    30
    Plugin Contributions
    0

    Default Re: Text Box Length on Log-In

    Thanks, Clyde! I saw the same thing when I viewed the code of the page in a browser, too. But that's the thing...I see it in there, but not on the actual tpl pages. But here's my path to the pages I'm looking at on my FTP server. Maybe I'm looking in the wrong place?

    zen_directory/includes/templates/templates_default/templates/tpl_create_account_default.php

    zen_directory/includes/templates/templates_default/templates/tpl_login_default.php

    Thanks!

  6. #6
    Join Date
    Jun 2006
    Location
    Michigan
    Posts
    196
    Plugin Contributions
    0

    Default Re: Text Box Length on Log-In

    Quote Originally Posted by thirtytwo16 View Post
    Thanks, johnny. But that's pretty rough news for me. We've done a lot of customization. And, despite only seeing two products on the cart, there are many more...they're just not live.

    Do you know of any other way that we can partially upgrade without too much hassle so we won't lose everythying?

    Thanks!
    Just a small note to let you know that during an upgrade you shouldn't lose any data whatsoever. I had one of what I thought the most heavily modified Zen Carts out there and I made it through a large upgrade. I had a few minor template issues but I hammered those out in about 30 mins.

    Just back up your data and test everything out before you go live. It'll be worth it in the long run.

 

 

Similar Threads

  1. How to make text box attribute required and maximum length?
    By dgeere in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 20 Mar 2010, 11:10 AM
  2. Text box length for search in header
    By catnaplb in forum Basic Configuration
    Replies: 0
    Last Post: 25 Sep 2009, 04:22 PM
  3. Input Box Length ?
    By J#xx in forum General Questions
    Replies: 7
    Last Post: 5 Mar 2009, 06:56 PM
  4. Length of Street Address Text Box on Create Account Page
    By Picci in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Dec 2007, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg