Dennis_gull Posted October 9, 2006 Posted October 9, 2006 Hey, I was just wondering if there is any easy way to make the bottom corners round or if you could add an image to the left and right side like you do on the top.
Dennis_gull Posted October 10, 2006 Author Posted October 10, 2006 I found one addon that will make all the infoboxes and contentbox borders round But They wont work with the menu from basic design pack, doesnt anyone have round boxes here without the "Graphical_Borders_v2" addon. Its mostly on contentboxes I want it.. Also I cant add a right corner picture on the contentbox as it is now, look at the code: //Default contenBox Class 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="contentBox"'; $this->tableBox($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = '4'; $this->table_parameters = 'class="contentBoxContents"'; return $this->tableBox($contents); } } 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="contentBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_left.gif')), array('params' => 'height="14" class="contentBoxHeading" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="contentBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right_left.gif'))); $this->tableBox($info_box_contents, true); } } class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } class productListingBox extends tableBox { function productListingBox($contents) { $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true); } } I tried to just add: array('params' => 'height="14" class="contentBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right.gif')), after the: 'text' => $contents[0]['text']), array('params' => 'height="14" class="contentBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right_left.gif'))); But it didnt work.
Jack_mcs Posted October 10, 2006 Posted October 10, 2006 No, that won't work. You need to edit the idividual box files. There are many contributions that will do this. The InfoSkin Manager and Shadow Controller are two. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.