medved Posted August 17, 2006 Share Posted August 17, 2006 I did try to add html tag to the table <TABLE>, but it didn?t work. Maybe I didn?t specify correctly the path to the image. The store is in catalog folder. Please help, thank you Link to comment Share on other sites More sharing options...
feintan Posted August 17, 2006 Share Posted August 17, 2006 There's so many Table in the Page, which table are you refering to?? or are you refering to the background pic like http://CutieHearts.com For table, The correct code is <table background="something.gif"> Link to comment Share on other sites More sharing options...
medved Posted August 17, 2006 Author Share Posted August 17, 2006 There's so many Table in the Page, which table are you refering to??or are you refering to the background pic like http://CutieHearts.com For table, The correct code is <table background="something.gif"> I wan to change the background where the navigation links are, table header. I think it is in header.php. TD class in that table is ?headerNavigation? And also in all the heading on all the boxes like it is here: http://shops.oscommerce.com/directory/goto,20911 The image for background is in catalog/images The header.php is in catalog/includes I did try this <table background="nameoftheimage.gif"> and this <table background="images/ nameoftheimage.gif"> didn?t work. Thank you for your help I also have added new topic: How do I add <A HREF> link to the ?button_confirm_order? button? It is here: http://www.oscommerce.com/forums/index.php?showtopic=223383 If anybody can help me with this topic, please go to the link specified to the topic. Thank you very much. Link to comment Share on other sites More sharing options...
feintan Posted August 18, 2006 Share Posted August 18, 2006 I haven't got time to try but I can tell you every Box in \includes\boxes\ use this file \includes\classes\boxes.php to create the header. Default Header Creation <TABLE> <TR> <TD height="14" width="11"><img src="left.gif"></TD> <TD>Cat Name</TD> <TD height="14" width="11"><img src="right.gif"></TD> </TR> <TABLE> In boxes.php Easiest Way is to change the cat name in the middle to display your pic instead. But remember it's Dynamic. The Name change with every different box. 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); You can try change the line in red from 'text' => $contents[0]['text']), to 'text' => "<img src='http://mydomain.com/images/" . $contents[0]['text'] . ".gif' />"), Remember to Name all your Table Header pic Accordingly and the Name is CASE sensitive. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.