Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the size of the text box for new categories


Guest

Recommended Posts

Posted

When I add or edit new categories, my text box is so small I can't paste html in there. Does anyone know where I can change it to make it a larger box?

how-make-box-bigger.jpg

Posted

Hi,

 

Open the file /admin/categories.php and search for "textarea_field". You'll see within those lines something like this:

 

'soft', '70', '5',

 

jon

It's all just ones and zeros....

Posted
Hi,

 

Open the file /admin/categories.php and search for "textarea_field". You'll see within those lines something like this:

 

'soft', '70', '5',

 

jon

That was close, it resized the text box for the actual product pages. I need to resize it for the category page. Any other ideas?

 

Thanks,

Mike A.

Posted

Can you tell me what version of osC you're using and which version of which Meta Tags Contribution? Using STS or no?

 

Thanks :)

It's all just ones and zeros....

  • 3 weeks later...
Posted
Can you tell me what version of osC you're using and which version of which Meta Tags Contribution? Using STS or no?

 

Thanks :)

How do I find out what version I'm using?

Posted

Be sure you have a backup of this file. Look for this in admin/categories.php:

$category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_textarea
_field('categories_htc_description[' . $languages[$i]['id'] . ']',
'hard', 30, 5,
tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id']));

Above this line (which may appear twice in this file), you'll find like lines. For example:

$category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_input_field
('categories_htc_title_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id']));

You want to change the input to textarea.

You want to insert 'hard', 30, 5, to the same position so that...

$category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_input_field
('categories_htc_title_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id']));

...becomes

$category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_textarea_field
('categories_htc_title_tag[' . $languages[$i]['id'] . ']',
'hard', 30, 5,
tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id']));

Let me know how you get on.

 

jon

It's all just ones and zeros....

Posted
Be sure you have a backup of this file. Look for this in admin/categories.php:

$category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_textarea
_field('categories_htc_description[' . $languages[$i]['id'] . ']',
'hard', 30, 5,
tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id']));

Above this line (which may appear twice in this file), you'll find like lines. For example:

$category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_input_field
('categories_htc_title_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id']));

You want to change the input to textarea.

You want to insert 'hard', 30, 5, to the same position so that...

$category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_input_field
('categories_htc_title_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id']));

...becomes

$category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' .
tep_draw_textarea_field
('categories_htc_title_tag[' . $languages[$i]['id'] . ']',
'hard', 30, 5,
tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id']));

Let me know how you get on.

 

jon

Thanks for your time Jon. I was very close, my code looks a bit different. I was able to change it by just changingf "input field" to "textarea". I did get this error though:

Missing argument 4 for tep_draw_textarea_field() in /home/lakelan2/public_html/admin/includes/functions/html_output.php on line 236

Any ideas?

Posted
Thanks for your time Jon. I was very close, my code looks a bit different. I was able to change it by just changingf "input field" to "textarea". I did get this error though:

Missing argument 4 for tep_draw_textarea_field() in /home/lakelan2/public_html/admin/includes/functions/html_output.php on line 236

Any ideas?

This is what line 236 says

function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...