Guest Posted July 7, 2003 Share Posted July 7, 2003 OK - any help would be appreciated. I have searched these help forums and looked everywhere I can think of, but I can't find where to change this. The problem is that the "New Products for July" box has a rounded corner on the left and a square corner on the right. I just want them both to be square. If it's anything like the infoboxes it's juts a matter of a boolean in a function call, but I can't find which file to edit. Again, any help would be great! Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2003 Share Posted July 7, 2003 do you want to sq. all corners? Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2003 Share Posted July 7, 2003 Yes; I found all the places to set the calls to infoBoxHeading($infoBoxContents, false, false) to square all the boxes in the right and left columns, but I can't find where to do it for the "New Products" box... Thanks! Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2003 Share Posted July 7, 2003 http://wiki.oscommerce.com/helpHowtoChangeBoxCorners/ Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2003 Share Posted July 7, 2003 Thanks a lot! I looked at the wiki help site, but didn't see that one... Link to comment Share on other sites More sharing options...
rreeddhhaatt Posted July 8, 2003 Share Posted July 8, 2003 Hi Becca, Try this....locate the following file /catalog/includes/modules/new_products.php and around line 18 you'll find new contentBoxHeading($info_box_contents); change it to new contentBoxHeading($info_box_contents, false, false); this should do it.... :D Marcelo Link to comment Share on other sites More sharing options...
ashlyn Posted July 13, 2003 Share Posted July 13, 2003 It didn't work! I still have the ugly grey and the little left corner and they won't go away. I'm trying to make a completely CSS site, no tables, and it's getting the better of me.. I've edited the heck out of new_products.php and products_new.php but just can't get that display to do what I want it to do.. ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Link to comment Share on other sites More sharing options...
rreeddhhaatt Posted July 14, 2003 Share Posted July 14, 2003 Hi, Sorry about the last post I made mistake.... but this should do it... Under catalog/includes/modules/new_products.php around line 19 ( on ms2) change the line new contentBoxHeading($info_box_contents); for the following new infoBoxHeading($info_box_contents, false); and this will do the trick...I just tested it with OSC ms2 and it worked... I hope this helps... :P Marcello Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 Soory I shold of been more clear this is the part you need /* 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'); } */ AND if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } else { IN /catalog/includes/classes/boxes.php Link to comment Share on other sites More sharing options...
ashlyn Posted July 15, 2003 Share Posted July 15, 2003 Not sure how I did it, but they are gone now! That's the trouble with editing 10 files at once.. Thanks anyway ------------------------------------------------------- I used to be insane, but now I'm just nuts ;) Link to comment Share on other sites More sharing options...
amoun Posted August 17, 2003 Share Posted August 17, 2003 At last I have found the way to change the corners on the main box New Products for 'This Month' All the above helped me get on the right track but nothing worked except this. /classes/boxes.php 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.gif'))); $this->tableBox($info_box_contents, true); } } It was set as 'infobox/corner_right_left.gif' Woopee Roger :D facts invariably distort the truth Link to comment Share on other sites More sharing options...
mpunkace Posted August 18, 2003 Share Posted August 18, 2003 if you delete or rename the image files for the corners, you will get square boxes. Plus, you can change the colors easily without having to change the corners. the image files for the corners are in: public_html/Store/catalog/images/infobox There's probably a better way, but it worked for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.