Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Taller Infobox Headers


warrenerjm

Recommended Posts

Posted

Hi

 

I have been searching for ages & thought I'd found the answer but it doesn't appear to be doing anything? :(

 

Infobox header - find the following in includes/classes/boxes.php (around line 148) and change the height value to whatever you want (in red):

 

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

 

I changed the 14 but my info box headers aren't any deeper/taller :huh:

 

Nothing fancy ... I would just like then to be BIGGER.

 

Please can you help?

 

Thanks

Julie

Posted

The code above is for the content boxes eg: new products for april and also purchased.

If you are trying to change the box headings in the left and right columns then change this code

catalog/includes/classes/boxes.php

  class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  $this->table_cellpadding = '0';

  if ($left_corner == true) {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
  } else {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
  }
  if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';
  }
  if ($right_corner == true) {
	$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
  } else {
	$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
  }

  $info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $left_corner),
							   array('params' => 'width="100%" height="14" class="infoBoxHeading"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="infoBoxHeading" nowrap',
									 'text' => $right_corner));

  $this->tableBox($info_box_contents, true);
}
 }

Change height="14" to shateever you want. If you are useing the cache then you will need to go to admin-->tools-->cache control and reset the caches.

Posted
The code above is for the content boxes eg: new products for april and also purchased.

If you are trying to change the box headings in the left and right columns then change this code

catalog/includes/classes/boxes.php

  class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  $this->table_cellpadding = '0';

  if ($left_corner == true) {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
  } else {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
  }
  if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';
  }
  if ($right_corner == true) {
	$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
  } else {
	$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
  }

  $info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $left_corner),
							   array('params' => 'width="100%" height="14" class="infoBoxHeading"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="infoBoxHeading" nowrap',
									 'text' => $right_corner));

  $this->tableBox($info_box_contents, true);
}
 }

Change height="14" to shateever you want. If you are useing the cache then you will need to go to admin-->tools-->cache control and reset the caches.

:thumbsup: That's better

Thank you Brian :D

 

Julie

Posted

You're welcome. Did you ever get the date prtion working in your invoice page?

Posted
You're welcome. Did you ever get the date prtion working in your invoice page?

:( No not completely

 

That is what I am doing now. :lol: Just thought I'd side track for a break!

 

I managed to get the order number coded the same as the date, but I cannot get the date format changed from US to EU (ie tried using the spanish way %d/%m/%Y in english.php) or remove the time part.

Archived

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

×
×
  • Create New...