osCmax v2.5 User Manual
Results 1 to 4 of 4

Input Field Width???

This is a discussion on Input Field Width??? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; On my create account page where the customer enters all their information, I would like to make these boxes wider ...

      
  1. #1
    Lurker
    Join Date
    Dec 2004
    Posts
    2
    Rep Power
    0


    Default Input Field Width???

    On my create account page where the customer enters all their information, I would like to make these boxes wider by about 50%.

    I can't seem to figure out how to do this. How does one increase the width of these input textfields?

    Thanks for any help!

  2. #2
    Active Member
    Join Date
    Oct 2004
    Posts
    215
    Rep Power
    8


    Default

    I haven't figured this out yet, but here's what I've found....

    catalog/templates/aabox/content/create_account.php

    there is the code saying
    Code:
                  <tr>
                    <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>
                    <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>
                  </tr>
    From what I can gather, this is the code to create the first name row of the person on the create account page. the statement 'tep_draw_input_field('firstname')' seems to be the code that creates the input field box and the variable 'firstname' appears to be an object that is passed to the function 'tep_draw_input_field' .

    I haven't figured it out yet, but it looks like you need to modify the length of the variable (most likely some sort of 'string') to be longer and it will in turn make the input field longer.

    I have not read any books on PHP so I'm sorry if I can't be of more help, this is just how much I could figure out by looking at the code. Hopefully someone more knowledgable than I in PHP can help you out.

    Good luck,

    Greg

  3. #3
    Active Member developer_x's Avatar
    Join Date
    Nov 2004
    Location
    Digital Infoway
    Posts
    109
    Rep Power
    0


    Default

    Quote Originally Posted by groggory
    I

    I haven't figured it out yet, but it looks like you need to modify the length of the variable (most likely some sort of 'string') to be longer and it will in turn make the input field longer.

    Greg
    sorry to say greg dat u r mistaken. the variable's lenght is already quite long. enlarging the text field is simple an html issue. unfortunately i dont know/like html.
    i think he shud join
    www.htmlforums.com

  4. #4
    Lurker
    Join Date
    Dec 2004
    Posts
    2
    Rep Power
    0


    Default Got this from another forum...

    Works like a charm!
    --------------------------------------
    If all you are trying to do is change the width of the input fields, find this code in includes/functions/html_output.php

    Code:
    // Output a form input field
     function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {
    The next line is
    Code:
    $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';
    Change it to
    Code:
    $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '" size="XX"';
    where XX is the desired width.

    Jack

Similar Threads

  1. Need to add input text field in product attributes
    By bethphilbin in forum osCommerce 2.2 Modification Help
    Replies: 15
    Last Post: 08-07-2006, 07:48 PM
  2. Attributes, Text Input + Price
    By donm1021 in forum osCommerce 2.2 Discussion
    Replies: 0
    Last Post: 08-07-2006, 11:58 AM
  3. Problem with Input Field type - must restrict chars...
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 02-26-2004, 03:43 PM
  4. Positioning order of Customer Input Boxes
    By WebMistress in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 11-10-2003, 07:45 PM
  5. Postal code label and input box shifted left after move
    By cvc505 in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 06-09-2003, 07:56 PM

Bookmarks

Posting Permissions

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