Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Different column WIDTH in Internet Explorer/Firefox


Nemeliom

Recommended Posts

Hi everyone.

Im having this problem with column widths, i found on another forum that it might be the search box. Left column looks wider on IE7, everything ok on FF. I tried changing the search.php but nothinmg happened.

 

Here's my search.php

 

<?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 (c) 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 SearchBoxHeading($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 SearchBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- search_eof //-->

 

 

Trying different things i found out that if i remove the 'button_quick_find.gif' part, the problem gets partially solved, although the submit button turns into a "-AltValue-" thing:

 

 

tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH)

 

 

BTW, for some reason my store is not reading any image used for buttons, i just get common, grey buttons with text in them. For example, instead of the magnifying glass in the search box, i get a grey button which says "Quick Search".

 

PLEASE HELP! and thank you very much.

Link to comment
Share on other sites

Hi everyone.

Im having this problem with column widths, i found on another forum that it might be the search box. Left column looks wider on IE7, everything ok on FF. I tried changing the search.php but nothinmg happened.

 

Here's my search.php

 

<?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 (c) 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 SearchBoxHeading($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 SearchBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- search_eof //-->

 

 

Trying different things i found out that if i remove the 'button_quick_find.gif' part, the problem gets partially solved, although the submit button turns into a "-AltValue-" thing:

 

 

tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH)

 

 

BTW, for some reason my store is not reading any image used for buttons, i just get common, grey buttons with text in them. For example, instead of the magnifying glass in the search box, i get a grey button which says "Quick Search".

 

PLEASE HELP! and thank you very much.

 

 

I got the same problem, but now solution untill now

Thanks and Regards

Yasir Imran Mirza

My Contributions

Link to comment
Share on other sites

The width problem is in this part.

(BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id()

Change the

' '

to

'<br>'

Link to comment
Share on other sites

The width problem is in this part.

(BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id()

Change the

' '

to

'<br>'

 

I tryed what you say, and it didnt work for me.

However, i studied the code and figured out how to solve it.

 

Here's the solution:

On line

 

tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH)

 

Change the BOX_HEADING_SEARCH for whatever you want the button to say (in my case, the image wasn´t showing, so i decided to change what the button says, so it got smaller and the column width went back to normal)

 

For example:

 

tep_image_submit('button_quick_find.gif', Search!)

 

And that should work.

 

Thanks everybody!

Link to comment
Share on other sites

This thread may help with the button not showing problem.

 

Can't say for sure without your URL.

 

But it outlines the most common causes (other than corrupt images from FTP'ing them to the server in TEXT or ASCII mode instead of BINARY mode)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...