jdreamer Posted May 4, 2003 Posted May 4, 2003 How can I get rid of the corner_left.gof on the 'New Products' table? I tried to edit, new_products.php and change new contentBoxHeading($info_box_contents); To: new contentBoxHeading($info_box_contents,false,false); But it is still showing the corner gif. To remove it from all my side boxes all I had to do was change it from true to false.
Alex H Posted May 4, 2003 Posted May 4, 2003 I had the same problem and just solved it like this: edit includes/classes/boxes.php search for: class contentBoxHeading extends tableBox { function contentBoxHeading($contents) { $this->table_width = '100%'; $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_draw_separator('pixel_trans.gif', '1', '14'); // $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } uncomment this line as shown here, for the $left_corner -> corner_right_left.gif. I think that should do it- greetz Alex
jdreamer Posted May 4, 2003 Author Posted May 4, 2003 my code looks different. mayb different osCommerce versions? 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')));
Alex H Posted May 4, 2003 Posted May 4, 2003 ok, yours looks like an older version, maybe you should get a new snapshot and replace the boxes.php (just try - could work) here is the complete code of the content box in this file, if you just want to replace the content box: class contentBox extends tableBox { function contentBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="infoBox"'; $this->tableBox($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = '4'; $this->table_parameters = 'class="infoBoxContents"'; return $this->tableBox($contents); } } class contentBoxHeading extends tableBox { function contentBoxHeading($contents) { $this->table_width = '100%'; $this->table_cellpadding = '0'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif'); } else { $left_corner = tep_draw_separator('pixel_trans.gif', '1', '14'); // $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="22" ackground="' . DIR_WS_IMAGES . 'infobox/box_bg.gif" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'height="22" ackground="' . DIR_WS_IMAGES . 'infobox/box_bg.gif" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="22" ackground="' . DIR_WS_IMAGES . 'infobox/box_bg.gif" class="infoBoxHeading"', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } your version has no if-query in your contentbox-function - so your new line: new contentBoxHeading($info_box_contents,false,false); won?t work! Alex
Recommended Posts
Archived
This topic is now archived and is closed to further replies.