weird2u2 Posted July 25, 2003 Posted July 25, 2003 ok been on this one several hours now, I have managed to remove/comment out all corner images for the left & right info boxes....but am having problem finding a way to remove the corner images from the ' New Products for July ' table-head. I have tracked the images ('pixel_trans.gif') to this reference in :- catalogincludesclassesboxes.php line no: 148 ################################################ 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 . 'pixel_trans.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 . 'pixel_trans.gif'))); $this->tableBox($info_box_contents, true); } } ################################################ can these images be commented out here, or is there another reference somewhere else ?? I am using latest Os snapshot. This may help ................ the outputted html I get, as you can see I would like to remove the '' images.. ~~~~~~~~~~~~~~~~~ <TD><!-- new_products //--> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=infoBoxHeading height=14><IMG src="homesite4_files/pixel_trans.gif" alt="" width="8" height="8" border=0></TD> <TD class=infoBoxHeading width="100%" height=14>New Products For July</TD> <TD class=infoBoxHeading height=14><IMG alt="" src="homesite4_files/pixel_trans.gif" border=0></TD></TR></TBODY></TABLE> ~~~~~~~~~~~~~~~~~~ thks for your help
Rumble Posted July 25, 2003 Posted July 25, 2003 Hi! Just remove the images like; $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => ''), array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading"', 'text' => '')); OR remove the lines completely $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text'])); Back up before you try!!! Reddy to Rumble Thank you osCommerce and all who Contribute to her!
weird2u2 Posted July 25, 2003 Author Posted July 25, 2003 $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => ''), array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading"', 'text' => '')); This worked a treat ~many thanks~ :lol: I'm still getting the hang of PHP....never sure which bits to take out and which to leave....! I wish I knew why they have some tables written by PHP and others written as pure html within the PHP. What would be really useful, is if someone came up with a visual guide to where the HTML is located for the various tables, within all the files.php. This would be most useful for CSS....
weird2u2 Posted July 25, 2003 Author Posted July 25, 2003 Just to finish this topic off...... Do you know where the HTML table code is relating to this Table Header (New Product for..) is located? Now I have removed the images, I am trying to apply an individual CSS class to this header. At present it is controlled by a default class 'infoboxHeading' , I would like to change this. But I cannot find the originating <TD class=''> to rename class. It appears the whole of 'Products_new Table' is written by an array ?? :? Output Html that needs changing; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <TD><!-- new_products //--> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class="infoBoxHeading"width="100%" height=14>New Products For July</TD></TR></TBODY></TABLE> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thks again for all help..... :D
Rumble Posted July 25, 2003 Posted July 25, 2003 Find this code in 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_left.gif'))); $this->tableBox($info_box_contents, true); } } change to....... class contentBoxHeadingNew extends tableBox { function contentBoxHeadingNew($contents) { $this->table_width = '100%'; $this->table_cellpadding = '0'; $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeadingNew"', 'text' => '')), array('params' => 'height="14" class="infoBoxHeadingNew" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeadingNew"', 'text' => ''))); $this->tableBox($info_box_contents, true); } } Then in modules/new_products.php find new contentBoxHeading($info_box_contents); change to new contentBoxHeadingNew($info_box_contents); Then in stylesheets.css create a new style for 'contentBoxHeadingNew' this will affect the New Prods header! Back up before you try! :) Reddy to Rumble Thank you osCommerce and all who Contribute to her!
weird2u2 Posted July 25, 2003 Author Posted July 25, 2003 I better answer this one myself....wot a fool I'am :oops: .......it's staring me right in the face all along. $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => ''), array('params' => 'height="14" class="MY_NEW_CLASSNAME" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading"', 'text' => '')); Don't half feel daft when you ask a question like this, and find the answer staring at you in the question!!...lol So to all who wish to have CSS control, over your "New Products for Month" tableheader. goto ; catalogincludesclassesboxes.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' => ''), array('params' => 'height="14" class="mynewclassname" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading"', 'text' => '')); ~~~~~~~~~~~~~~~ volia...rename the old class (inforboxHeading) to what ever ...now you have full CSS control.. :wink:
Rumble Posted July 25, 2003 Posted July 25, 2003 Yeah that works, but remember all your content boxes will be affected by just changing the css class in boxes.php Reddy to Rumble Thank you osCommerce and all who Contribute to her!
vptuning Posted August 7, 2003 Posted August 7, 2003 I'm still confused... I removed the corner images for the left & right info boxes, but still can't remove the corner images for the 'New Products" boxes. Can someone please explain how to do this? The posts in this topic were only confusing me. Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.