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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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') . '&nbsp;' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>
</tr>
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
| ||||
| ||||
| Quote:
i think he shud join www.htmlforums.com
__________________ Regards, developer X Web Developer [color=blue]HTTPPoint Web Talk - Discuss about Web Design, Web Hosting, Programming & Web Development |
|
#4
| |||
| |||
| 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) {
Code: $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; Code: $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '" size="XX"'; Jack |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to add input text field in product attributes | bethphilbin | osCommerce 2.2 Modification Help | 15 | 08-07-2006 07:48 PM |
| Attributes, Text Input + Price | donm1021 | osCommerce 2.2 Discussion | 0 | 08-07-2006 11:58 AM |
| Problem with Input Field type - must restrict chars... | Anonymous | osCMax v1.7 Discussion | 4 | 02-26-2004 04:43 PM |
| Positioning order of Customer Input Boxes | WebMistress | osCommerce 2.2 Modification Help | 6 | 11-10-2003 08:45 PM |
| Postal code label and input box shifted left after move | cvc505 | osCommerce 2.2 Installation Help | 0 | 06-09-2003 07:56 PM |