JonoB Posted November 29, 2003 Posted November 29, 2003 What I have done to modify the corners of my infoboxes is to change the the image files...which works fine. However, I would like to take it one step further and specify that ALL infoboxes must have corner_left on the left hand side and corner_right on the right hand side. I suspect that it may be to do with the following code in boxes.php, but not sure how to actually modify. Any help appreciated. 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'); }
Godkid Posted November 29, 2003 Posted November 29, 2003 actually that code only specifies which images to use.. you have to actually mod the files in includes/boxes to get your desired effect (if i'm reading you right).. this is best explained in the Wiki site .. http://wiki.oscommerce.com/docsCatBoxGenCorner hope that helps
Guest Posted November 29, 2003 Posted November 29, 2003 Comment out the selection code, like this 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'); }*/ Hth, Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.