Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Newbie Question


Trentide

Recommended Posts

Posted

Thanks for looking, by the way. The box I'm referring to is the actual entry box where you input your friends name in the "tell a friend" module. For some reason the box got much smaller and I would like to make it the same as my "search" input box.

 

Thank you so much,

Jason

Posted
Thanks for looking, by the way. The box I'm referring to is the actual entry box where you input your friends name in the "tell a friend" module. For some reason the box got much smaller and I would like to make it the same as my "search" input box.

 

Thank you so much,

Jason

 

 

just how newbie is newbie? fixing this is not necessarily a newbie sort of thing to do, in the sense that you will have to modify the code. but it's a pretty easy fix if you're not a total newbie:

 

1. download a copy of the file /catalog/includes/boxes/tell_a_friend.php

 

2. open tell_a_friend.php, and immediately do a "save as" and rename that file something else, like "tell_a_friendOld.php". close that file. you have just made a back-up, which is an essential step whenever you do these sorts of changes. if you have any problems, you can always get back to the starting point using your back-up. always backup first.

 

3. reopen the file "tell_a_friend.php" and find the following text:

tep_draw_input_field('to_email_address', '', 'size="10"')

change that 10 to whatever size you want. notice the series of quotation marks in the original, and be sure you do not alter them.

 

4. save the file tell_a_friend.php, and upload it to your site.

Posted

Thanks for that!! The changes have been made and I'm that much closer to making some pennies.

 

Jason

Posted
Or if you want more precise/detailed control then change that bit of code to this:

 

tep_draw_input_field('to_email_address', '', 'style="width:150px;"')

 

Change the 150 to suit your needs obviously.

great tip! use styles, of course. doh! why didn't i think of that? or i suppose you could give it a class assignment and style it in style sheet. thanks!

 

rj

Archived

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

×
×
  • Create New...