osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-07-2004, 12:51 PM
Lurker
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
OmarC
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-07-2004, 03:45 PM
Active Member
 
Join Date: Oct 2004
Posts: 215
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
groggory
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-20-2004, 08:09 AM
developer_x's Avatar
Active Member
 
Join Date: Nov 2004
Location: Digital Infoway
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
developer_x
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-20-2004, 10:45 AM
Lurker
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
OmarC
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 05:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax