weird2u2 Posted July 23, 2003 Posted July 23, 2003 I am having problems with the corner images.....of box-headings. I am trying to apply css- borders to the box-headers, but find if i apply a border, i get a border on the corner images as well, not just on the box heading. Have applied the css to : Td.infoBoxHeading Can the corner images be got rid of ie. //comment out. ? The main problem is that, the images share css class (.infoBoxHeading) with other parts of the box/tables... it also appears that the box headings are written by either Javascript or php....not sure about this, though. Any suggestions please ??
cjaugey Posted July 23, 2003 Posted July 23, 2003 I have played around with box corner images. It is really easy to add them or take them out. In includes/boxes, enter into a file (e.g. the search box), and yuo'll find a line like that one: new infoBoxHeading($info_box_contents, false, false) the last two false's mean that the left and right corner image is deactivated. If you put them on true, the corner images will appear. Not sure if this is the most elegant solution, though. I suppose you could also go into includes/classes/boxes.php and look for the infoBoxHeading class. There I think you could just take out the part that adds the corner images to the boxes.
weird2u2 Posted July 23, 2003 Author Posted July 23, 2003 i tried "new infoBoxHeading($info_box_contents, false, false)" but all this does is replace the images with a pixel_trans.gif which again creates the problem of unwanted borders..... suggestion no 2: includes/classes/boxes.php and look for the infoBoxHeading class..... Had a look at this, but find if i comment out the whole class, i get an error i tried to comment out 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 . 'pixel_trans.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'pixel_trans.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 . 'pixel_trans.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); }
cjaugey Posted July 23, 2003 Posted July 23, 2003 Ok, here is how it worked on my system: in includes/classes/boxes.php find the line that goes like this: class infoBoxHeading extends tableBox { below (seven lines below, line 107 in my editor), I just commented out this line: // $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } this did it for me. Try it.
weird2u2 Posted July 23, 2003 Author Posted July 23, 2003 cool, yes i just discovered the same : thanks, i have commented out ; ######################################### 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 . 'pixel_trans.gif'); } else { // $left_corner = tep_image(DIR_WS_IMAGES . 'pixel_trans.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 . 'pixel_trans.gif'); } else { // $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } ############################################## all works except i appear to have a '1' where the image wos, in the shopping cart heading box on the right side. perhaps there is one more definition to comment out.... thks again
weird2u2 Posted July 23, 2003 Author Posted July 23, 2003 Perhaps someone could help with this.... I would like to know/read about, why we comment out '//' ???????????????? if ($left_corner == true) { // $left_corner = tep_image(DIR_WS_IMAGES . 'pixel_trans.gif'); else{ ???????????????? Why do we not comment out the 'if' or 'else'.....are these required somewhere else ?? Should i be reading about the structure of PHP...srry if this makes no sense, but I'm what you call a newbie...lol I know read-a-bit, read-another-bit, and then read some more.!! And finally learn.....mmm
weird2u2 Posted July 23, 2003 Author Posted July 23, 2003 i have commented out ;######################################### 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 . 'pixel_trans.gif'); } else { // $left_corner = tep_image(DIR_WS_IMAGES . 'pixel_trans.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 . 'pixel_trans.gif'); } else { // $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } ############################################## all works except i appear to have a '1' where the image wos, in the shopping cart heading box on the right side. perhaps there is one more definition to comment out.... well i found you need also to change the true, false in ..includesboxesshopping_cart.php ie: new infoBoxHeading($info_box_contents, false, , tep_href_link(FILENAME_SHOPPING_CART)); and all seems ok now.. :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.