hello!
just trying to change the look of search box regarding the instruction on
http://guide.oscdox.com/ (Adding different colors for each box):
Quote:
1. Open /catalog/includes/classes/boxes.php
Find the function infoBoxContents
Replace:
function infoBoxContents($contents) {
$this->table_cellpadding = '3';
$this->table_parameters = 'class="infoBoxContents"';
$info_box_contents = array();
with:
function infoBoxContents($contents) {
global $css_class;
$this->table_cellpadding = '3';
$this->table_parameters = 'class="'.$css_class.'"';
$info_box_contents = array();
2. Now Open one of the boxes, lets use /catalog/includes/boxes/information.php
Replace:
<!-- information //-->
<tr>
<td>
<?php
$info_box_contents = array();
with:
<!-- information //-->
<tr>
<td>
<?php
global $css_class;
$css_class = "infoBoxContents5";
$info_box_contents_info = array();
3. infoBoxContents5 will have to be added to /catalog/stylesheet.css and could look something like this:
TABLE.infoBoxContents5 {
background-color: #FFFFF1;
}
|
but this changes
properties of all sideboxes. Where is my mistake?
thanx!