Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Posts
    591
    Plugin Contributions
    0

    Default How change the Length of field?

    How change the Length of filling Password

    Name:  password change.png
Views: 170
Size:  13.5 KB


    Thanks for help

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: How change the Length of field?

    Quote Originally Posted by dmagic View Post
    How change the Length of filling Password
    There isn't a setting for this (that I'm aware of), which means you'll need to edit the login template file.

    The default file for this is
    /includes/templates/template_default/templates/tpl_login_default.php

    Line#76 (or thereabouts) zencart v1.5.0 currently reads:

    Code:
    <?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
    As you can (hopefully) see, the field length is currently being set to match the size of the customers password datafield. You'll need to change this code to use a smaller value (assuming that's what you want).

    Something like the following *should* do it.
    Code:
    <?php echo zen_draw_password_field('password', '', 'size = "20" ' . '  id="login-password"'); ?>
    The code above will/should set the size to 20 characters.

    Cheers
    Rod

    ps. I suggest you use the override system rather than editing the default file.

 

 

Similar Threads

  1. How can I change the field length for product description?
    By 1speedbump in forum Customization from the Admin
    Replies: 11
    Last Post: 9 Nov 2014, 04:54 PM
  2. How to change the maximum length for postcode?
    By ferid in forum Basic Configuration
    Replies: 6
    Last Post: 26 Sep 2011, 06:50 AM
  3. How to extend Product Model Field length in the ADMIN?
    By Asdesign in forum General Questions
    Replies: 8
    Last Post: 16 Sep 2010, 02:16 PM
  4. How do I change the length of the products_name field in the admin
    By shrimp-gumbo-mmmhhh in forum General Questions
    Replies: 1
    Last Post: 25 Dec 2009, 07:36 AM
  5. How to adjust the Sidebox Login field length
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Sep 2006, 02:46 AM

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