jacobr Posted July 20, 2004 Posted July 20, 2004 After I commented out the rounded corners on my infoboxes via the /includes/classes/boxes.php file, there is a "1" character aligned left in the upper left corner of the top left infobox title, as well as one aligned right in the upper right infobox title. I'm looking through boxes.php to see if there is something in there controlling it, but I'm such a PHP newbie :) Where did this come from and how can I take it away? Thanks! Jacob
Guest Posted July 21, 2004 Posted July 21, 2004 I think to remove these you would have to comment out a few lines in each of the boxes in the site like categories, information, shopping cart and so on these can be found in the includes/boxes/ folder a full list and all would need to be edited where the 1s are showing good luck.
jacobr Posted July 21, 2004 Author Posted July 21, 2004 You, or anybody else, wouldn't happen to know which lines to comment out would you? :) Looked through categories.php, didn't see anything that would cause the "1" to appear, but then again I can't program in php, so that doesn't mean much! Jacob
Guest Posted July 25, 2004 Posted July 25, 2004 xoom in Right. To remove the 1's from your infobox headings does not require you to remove ANY lines of code. Where you see a 1 on the info box heading depends on wihch file you have to edit. For instance if you get this on your categories menu (left hand navigation) then you need to edit the categories.php file which can be found in catalog/includes/categories.php and look for this line... new infoBoxHeading($info_box_contents, true, true); and replace with this line new infoBoxHeading($info_box_contents, false, false); your changing the statement to read false... simple xoom out
Guest Posted July 25, 2004 Posted July 25, 2004 Thats the one, but commenting is easier is coding is not your thing, simply because if you want to go back then what is the code change to be made to fix, so commenting is better I think than code changes when needed.
cilia Posted July 25, 2004 Posted July 25, 2004 in includes > classes > boxes.php, I worked back and forth and found this worked: 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'); } */ $left_corner = ""; 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 = ''; } $right_corner = $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.
jacobr Posted July 26, 2004 Author Posted July 26, 2004 It did - got it all worked out, and then decided to move to STS for (hopefully) more control. Thanks for the help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.