This is a discussion on BG color only in categorie box within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, Does any one out there now how to change background color ONLY in the categorie box. Iknow how to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Does any one out there now how to change background color ONLY in the categorie box. Iknow how to do it in styles but when i change there it changes all the boxes. warm regards kjelle |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| all boxes use the same class, so just create a new one and use that in the catergory box |
|
#3
| |||
| |||
| Thx Arpit for your answer, sounds so easy but where do i change the class for the categorie box. i tried to change this tag in the categories.php in boxes folder. new infoBoxHeading($info_box_contents, true, false); i changed the infoBoxHeading to a new one i had made in the styles but did not work. If you can help me with this you are a star, i have tried for days but no luck. warm regards kjell |
|
#4
| |||
| |||
| ok hope your ready for this, files that need to editing but before we begin, plz backup your files: Quote:
add your new class Code: .kjell{
background: #668FBB;
font-family: Verdana, Arial, sans-serif;
font-size: 20px;
}
change Code: new infoBox($info_box_contents); Code: new infoBoxCat($info_box_contents); add Code: class infoBoxCat extends tableBox
{
function infoBoxCat($contents)
{
$info_box_contents = array();
$info_box_contents[] = array('text' => $this->infoBoxContentsCat($contents));
$this->table_cellpadding = '1';
$this->table_parameters = 'class="infoBox"';
$this->tableBox($info_box_contents, true);
}
function infoBoxContentsCat($contents)
{
$this->table_cellpadding = '3';
$this->table_parameters = 'class="kjell"';
$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);
}
}
|
|
#5
| |||
| |||
| and remember, these changes to the core code will inhibit you from going to new releases in the future |
|
#6
| |||
| |||
| Hello Arpit, You are fantastic i will send the link of the page soon so you can see how u helped me. i just have to do .htaccess on the admin page. Thanks again Lots of warm regards from Kimberley & Kjell |
|
#7
| |||
| |||
| Hello Arpit, I am sorry but i wonder if you can help me again, i think i am going crazy i cant understand the styles. here you can see the site is not ready but soon.. http://www.surfthemambo.com/surf-shop/ i just wonder where i can find the borders on the specials and new products boxes on the front page. i actully want to remove the border and the heading on this boxes. but i can't find it anywhere, i have looked at every table and css style but nothing. warm regards kjell Ps. maybe somebody else know about this also |
|
#8
| |||
| |||
| comment out the line, Quote:
Quote:
|
|
#9
| |||
| |||
| Arpit, What can i say. Thousends of thanks, you hav great day warm regards Kimberley |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please Help Change Color of Box | joanstead | osCMax v1.7 General Mods Discussion | 2 | 12-01-2005 08:22 AM |
| Link color | cewncew | osCommerce 2.2 Modification Help | 3 | 01-12-2005 01:57 PM |
| Different bgcolor in categorie box | kjelle11 | osCMax v1.7 General Mods Discussion | 0 | 01-11-2005 02:55 AM |
| how do i change Bgcolor only in categorie box | kjelle11 | osCommerce 2.2 Modification Help | 0 | 01-10-2005 03:41 AM |
| Categorie Question how to show... | Anonymous | osCommerce 2.2 Modification Help | 1 | 10-14-2002 04:13 AM |