Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

left column too wide


slas7713

Recommended Posts

I've successfully worked through most problems by searching this site but this one is nagging me. I don't know which of the hundred changes might have caused this, or when, but while viewing my site with firefox all was well until the other day when I went to view it in IE and my left column was too wide.

 

I've tried setting the box_width_left to default in application_top.php but no change. I removed my background image and no changes. Do I need some stylesheet changes? Input?

 

Steve L.

Link to comment
Share on other sites

I've successfully worked through most problems by searching this site but this one is nagging me. I don't know which of the hundred changes might have caused this, or when, but while viewing my site with firefox all was well until the other day when I went to view it in IE and my left column was too wide.

 

I've tried setting the box_width_left to default in application_top.php but no change. I removed my background image and no changes. Do I need some stylesheet changes? Input?

 

Steve L.

 

 

What is your web address?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

I just changed the configure files so you can now view it at http://www.lswebsolutions.com/tzcat/

 

Let me know if you have problems viewing it.

 

Thanks,

 

Steve L

 

 

its say this page can't be displayed

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

You were too quick. I had to redirect via my firewall rules. Try it now.

 

 

ok are you talking about the left boxes?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

ok are you talking about the left boxes?

 

The complete left column as a whole. If you view it in Firefox it is the correct size. If you view it in IE it is too wide and you will also notice things such as the quicksearch button is to the right of the entry field.

Link to comment
Share on other sites

Looks like your "Search" image is causing this. Maybe a <br> would help.

 

Yeah, I've tried that in serveral areas of the search.php file and none have worked for me. It adds the break but the width never changes. Any specific areas of the search.php file you would suggest? Maybe I've missed some.

 

Steve

Link to comment
Share on other sites

Yeah, I've tried that in serveral areas of the search.php file and none have worked for me. It adds the break but the width never changes. Any specific areas of the search.php file you would suggest? Maybe I've missed some.

 

Steve

 

Go to: includes/boxes/search.php and copy and paste the code in a reply.

Link to comment
Share on other sites

Go to: includes/boxes/search.php and copy and paste the code in a reply.

 

I currently have the original search.php file. I edited and never got it to change so I reverted back to the original.

 

Steve

Link to comment
Share on other sites

I currently have the original search.php file. I edited and never got it to change so I reverted back to the original.

 

Steve

 

Can you copy and paste it.. I think i see your issue from looking at your source.

Link to comment
Share on other sites

Can you copy and paste it.. I think i see your issue from looking at your source.

 

<?php

/*

$Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- search //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

'align' => 'center',

'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- search_eof //-->

Link to comment
Share on other sites

Replace this:

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'align' => 'center', 
						   'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '?' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 new infoBox($info_box_contents);
?>

 

With:

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
						   'align' => 'center',
						   'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '?' . tep_hide_session_id() . '<br>' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 new infoBox($info_box_contents);
?>

 

Notice the '<br>' between . tep_hide_session_id() AND . tep_image_submit

 

You may just want to add '<br>' between as described above. Copy and pasting may have issues with the forum formatting.

 

Let me know..

Brady

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...