Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Getting Image To Show


Teamjr

Recommended Posts

Hello,

 

I am trying to get an image to show in right column in a box, but for some reason the image will not show?

 

 <tr>
		<td>
<?php
 $info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_APPAREL);

new infoBoxHeading($info_box_contents, false, false, false, $column_location);

$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
							  'tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT');

 new infoBox($info_box_contents, $column_location);
?>
		</td>
	  </tr>

 

Thanks JR

Link to comment
Share on other sites

i think you need to change this

	$info_box_contents[] = array('align' => 'center',
							  'tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT');

 

to this:

	$info_box_contents[] = array('align' => 'center',
					'text'=>'tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT');

 

basically, you need a 'text' content within the box. you're only specifying the 'align' setting.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

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

×
×
  • Create New...