Guest Posted July 5, 2009 Posted July 5, 2009 Hi. I'm trying to validate my site thml - css is ok now. I'm down to 9 errors and I can't solve them. Could any one offer a bit of help? I'm not looking for some one to do the work for me, just need some hints on where to go, what to do to solve those errors. Thank you. Here is the w3c validator link for my site Hopefully one day I'll have every page of my website valid. But it's hard work (I have 7 oscommerce shops...)
Guest Posted July 5, 2009 Posted July 5, 2009 I'm down to one error: Error Line 148, Column 151: Attribute "BACKGROUND" is not a valid attribute. Did you mean "background"? …1/top_left.jpg"></td><td background="/images/slice_sets/1/top_background.jpg" I't caused by InfoBox Skin Manager How do I fix it? I guess I need to make the background appear from css - but I have nu clue how - how do I fetch the specific image for each infobox? Here is the code from boxes.php: <?php /* $Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class tableBox { var $table_border = '0'; var $table_width = '100%'; var $table_cellspacing = '0'; var $table_cellpadding = '2'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = ''; // class constructor function tableBox($contents, $direct_output = false, $skin_this = false, $header_text='', $header_link=false, $slice_set=INFOBOX_HEADERNAV_SLICE_SET) { // Added by Rigadin in v2.0a: force to default value if $slice_set is null when calling the function if (!isset($slice_set)) $slice_set=INFOBOX_HEADERNAV_SLICE_SET; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ // START Rigadin v2.0a: replaced 10x If statement by shorter code if (defined('INFOBOX_SKIN_BGCOL'.$slice_set)) { $infobox_bg_color = stripslashes(constant('INFOBOX_SKIN_BGCOL'.$slice_set)); } /* if ($slice_set == 1) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL1); if ($slice_set == 2) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL2); if ($slice_set == 3) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL3); if ($slice_set == 4) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL4); if ($slice_set == 5) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL5); if ($slice_set == 6) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL6); if ($slice_set == 7) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL7); if ($slice_set == 8) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL8); if ($slice_set == 9) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL9); if ($slice_set == 10) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL10); END Rigadin v2.0a */ $tableBox_string = '<table cellspacing="0" cellpadding="0" border="0"><tr><td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/top_left.jpg"></td>' . '<td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/top_background.jpg" class="newinfobox_top' . $slice_set . '" valign="middle" align="center" width="100%">' . $header_text; if ($header_link != false) { $tableBox_string.= ' <a href="' . $header_link . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } $tableBox_string.= '</td>' . '<td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/top_right.jpg"></td></tr>' . '<tr><td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/left_background.jpg"></td><td bgcolor = "#' . $infobox_bg_color . '">' ; } $tableBox_string .= '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"'; if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters; $tableBox_string .= '>' . "\n"; for ($i=0, $n=sizeof($contents); $i<$n; $i++) { if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n"; $tableBox_string .= ' <tr'; if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params']; $tableBox_string .= '>' . "\n"; if (isset($contents[$i][0]) && is_array($contents[$i][0])) { for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) { if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) { $tableBox_string .= ' <td'; if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"'; if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) { $tableBox_string .= ' ' . $contents[$i][$x]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>'; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form']; $tableBox_string .= $contents[$i][$x]['text']; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>'; $tableBox_string .= '</td>' . "\n"; } } } else { $tableBox_string .= ' <td'; if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"'; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) { $tableBox_string .= ' ' . $contents[$i]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n"; } $tableBox_string .= ' </tr>' . "\n"; if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n"; } $tableBox_string .= '</table>' . "\n"; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ $tableBox_string .= '</td><td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/right_background.jpg"></td></tr>' . '<tr><td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/bottom_left.jpg"></td>' . '<td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/bottom_background.jpg"></td>' . '<td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/bottom_right.jpg"></td></tr></table>'; } if ($direct_output == true) echo $tableBox_string; return $tableBox_string; } } class infoBox extends tableBox { function infoBox($contents) { global $infobox_header_text, $infobox_header_link; $info_box_contents = array(); if (SKIN_INFOBOX_ACTIVE == 'true'){ $info_box_contents[] = array('text' => $this->newinfoBoxContents($contents)); //reset globals as these should only be used once! $infobox_header_text = ''; $infobox_header_link = false; } else { $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="infoBox"'; } $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } function newinfoboxcontents($contents) { global $infobox_header_text, $infobox_header_link, $skin_slice_set; $this->table_cellpadding = '0'; $this -> align = 'center'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } if ($infobox_header_link != false) { $infobox_link = '<a href="' . $infobox_header_link . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } return $this->tableBox($info_box_contents, false, true, $infobox_header_text, $infobox_header_link, $skin_slice_set); } } class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $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'); } 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 = ''; } 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'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } class contentBox extends tableBox { function contentBox($contents, $skin_this = false, $slice_set = INFOBOX_HEADERNAV_SLICE_SET) { global $contentbox_header_text; $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents, $skin_this)); $this->table_cellpadding = '1'; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ $this->table_parameters = 'class="newinfoBox"'; $this->tableBox($info_box_contents, true, true, $contentbox_header_text, false, $slice_set); } else{ $this->table_parameters = 'class="infoBox"'; $this->tableBox($info_box_contents, true); } } function contentBoxContents($contents, $skin_this = false) { $this->table_cellpadding = '4'; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)) $this->table_parameters = 'class="newinfoBoxContents"'; else $this->table_parameters = 'class="infoBoxContents"'; return $this->tableBox($contents); } } class contentBoxHeading extends tableBox { function contentBoxHeading($contents, $skin_this = false) { global $contentbox_header_text; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ $contentbox_header_text = $contents[0]['text']; } else { $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); } } } class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } class productListingBox extends tableBox { function productListingBox($contents, $skin_this = false, $slice_set = INFOBOX_HEADERNAV_SLICE_SET) { global $contentbox_header_text; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)) $this->table_parameters = 'class="newInfoboxContents"'; else $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true, $skin_this, $contentbox_header_text, false, $slice_set); } } ?> Thank you!
Guest Posted July 5, 2009 Posted July 5, 2009 I'm down to one error: Error Line 148, Column 151: Attribute "BACKGROUND" is not a valid attribute. Did you mean "background"? …1/top_left.jpg"></td><td background="/images/slice_sets/1/top_background.jpg" I't caused by InfoBox Skin Manager How do I fix it? I guess I need to make the background appear from css - but I have nu clue how - how do I fetch the specific image for each infobox? Here is the code from boxes.php: <?php /* $Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class tableBox { var $table_border = '0'; var $table_width = '100%'; var $table_cellspacing = '0'; var $table_cellpadding = '2'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = ''; // class constructor function tableBox($contents, $direct_output = false, $skin_this = false, $header_text='', $header_link=false, $slice_set=INFOBOX_HEADERNAV_SLICE_SET) { // Added by Rigadin in v2.0a: force to default value if $slice_set is null when calling the function if (!isset($slice_set)) $slice_set=INFOBOX_HEADERNAV_SLICE_SET; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ // START Rigadin v2.0a: replaced 10x If statement by shorter code if (defined('INFOBOX_SKIN_BGCOL'.$slice_set)) { $infobox_bg_color = stripslashes(constant('INFOBOX_SKIN_BGCOL'.$slice_set)); } /* if ($slice_set == 1) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL1); if ($slice_set == 2) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL2); if ($slice_set == 3) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL3); if ($slice_set == 4) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL4); if ($slice_set == 5) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL5); if ($slice_set == 6) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL6); if ($slice_set == 7) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL7); if ($slice_set == 8) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL8); if ($slice_set == 9) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL9); if ($slice_set == 10) $infobox_bg_color = stripslashes(INFOBOX_SKIN_BGCOL10); END Rigadin v2.0a */ $tableBox_string = '<table cellspacing="0" cellpadding="0" border="0"><tr><td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/top_left.jpg"></td>' . '<td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/top_background.jpg" class="newinfobox_top' . $slice_set . '" valign="middle" align="center" width="100%">' . $header_text; if ($header_link != false) { $tableBox_string.= ' <a href="' . $header_link . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } $tableBox_string.= '</td>' . '<td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/top_right.jpg"></td></tr>' . '<tr><td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/left_background.jpg"></td><td bgcolor = "#' . $infobox_bg_color . '">' ; } $tableBox_string .= '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"'; if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters; $tableBox_string .= '>' . "\n"; for ($i=0, $n=sizeof($contents); $i<$n; $i++) { if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n"; $tableBox_string .= ' <tr'; if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params']; $tableBox_string .= '>' . "\n"; if (isset($contents[$i][0]) && is_array($contents[$i][0])) { for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) { if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) { $tableBox_string .= ' <td'; if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"'; if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) { $tableBox_string .= ' ' . $contents[$i][$x]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>'; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form']; $tableBox_string .= $contents[$i][$x]['text']; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>'; $tableBox_string .= '</td>' . "\n"; } } } else { $tableBox_string .= ' <td'; if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"'; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) { $tableBox_string .= ' ' . $contents[$i]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n"; } $tableBox_string .= ' </tr>' . "\n"; if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n"; } $tableBox_string .= '</table>' . "\n"; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ $tableBox_string .= '</td><td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/right_background.jpg"></td></tr>' . '<tr><td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/bottom_left.jpg"></td>' . '<td background="' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/bottom_background.jpg"></td>' . '<td><img alt="magazin copii" src="images/slice_sets/' . $slice_set . '/bottom_right.jpg"></td></tr></table>'; } if ($direct_output == true) echo $tableBox_string; return $tableBox_string; } } class infoBox extends tableBox { function infoBox($contents) { global $infobox_header_text, $infobox_header_link; $info_box_contents = array(); if (SKIN_INFOBOX_ACTIVE == 'true'){ $info_box_contents[] = array('text' => $this->newinfoBoxContents($contents)); //reset globals as these should only be used once! $infobox_header_text = ''; $infobox_header_link = false; } else { $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="infoBox"'; } $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } function newinfoboxcontents($contents) { global $infobox_header_text, $infobox_header_link, $skin_slice_set; $this->table_cellpadding = '0'; $this -> align = 'center'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } if ($infobox_header_link != false) { $infobox_link = '<a href="' . $infobox_header_link . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } return $this->tableBox($info_box_contents, false, true, $infobox_header_text, $infobox_header_link, $skin_slice_set); } } class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $infobox_header_text, $infobox_header_link; if (SKIN_INFOBOX_ACTIVE == 'true'){ $infobox_header_text = $contents[0]['text']; $infobox_header_link = $right_arrow; } else { $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'); } 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 = ''; } 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'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } } class contentBox extends tableBox { function contentBox($contents, $skin_this = false, $slice_set = INFOBOX_HEADERNAV_SLICE_SET) { global $contentbox_header_text; $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents, $skin_this)); $this->table_cellpadding = '1'; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ $this->table_parameters = 'class="newinfoBox"'; $this->tableBox($info_box_contents, true, true, $contentbox_header_text, false, $slice_set); } else{ $this->table_parameters = 'class="infoBox"'; $this->tableBox($info_box_contents, true); } } function contentBoxContents($contents, $skin_this = false) { $this->table_cellpadding = '4'; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)) $this->table_parameters = 'class="newinfoBoxContents"'; else $this->table_parameters = 'class="infoBoxContents"'; return $this->tableBox($contents); } } class contentBoxHeading extends tableBox { function contentBoxHeading($contents, $skin_this = false) { global $contentbox_header_text; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)){ $contentbox_header_text = $contents[0]['text']; } else { $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); } } } class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } class productListingBox extends tableBox { function productListingBox($contents, $skin_this = false, $slice_set = INFOBOX_HEADERNAV_SLICE_SET) { global $contentbox_header_text; if ((SKIN_INFOBOX_ACTIVE == 'true') && ($skin_this == true)) $this->table_parameters = 'class="newInfoboxContents"'; else $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true, $skin_this, $contentbox_header_text, false, $slice_set); } } ?> Thank you!
ABCommerce! Posted July 5, 2009 Posted July 5, 2009 Error Line 148, Column 151: Attribute "BACKGROUND" is not a valid attribute. Did you mean "background"? …1/top_left.jpg"></td><td background="/images/slice_sets/1/top_background.jpg" Why not just move the background to a class such as; …1/top_left.jpg"></td><td class="background" and then add it to the stylesheet; .background { background-image: url(images/slice_sets/1/top_background.jpg); } There are also contributions that validate osC, the work was already done.
spooks Posted July 5, 2009 Posted July 5, 2009 why not follow the tips given by w3c? all Attributes must be in lower case all self closing tags must end with /> go over html_output.php, most validation errors are there Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Guest Posted July 5, 2009 Posted July 5, 2009 Ok, thank you. I think I'm tired because I can't seem to be able to think right now... :D The problem about background - last error to solve for index is that each infobox has a different slice set for the background. And in boxes.php I see they are generated by code. So, that's why I don't know what to do. I'll look over it after a goooood nights sleep, maybe Ill "see" this better.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.