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
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 ...
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
all boxes use the same class, so just create a new one and use that in the catergory box
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
ok hope your ready for this,
files that need to editing but before we begin, plz backup your files:
in catalog/stylesheet.csscatalog/stylesheet.css
catalog/includes/boxes/categories.php
catalog/includes/classes/boxes.php
add your new class
in catalog/includes/boxes/categories.phpCode:.kjell{ background: #668FBB; font-family: Verdana, Arial, sans-serif; font-size: 20px; }
change
toCode:new infoBox($info_box_contents);
in catalog/includes/classes/boxes.phpCode:new infoBoxCat($info_box_contents);
add
hope you have made backupsCode: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); } }and now upload the files, you show be all set
[/code]
and remember, these changes to the core code will inhibit you from going to new releases in the future![]()
Hello Arpit,
You are fantastic![]()
![]()
![]()
Thanks,
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
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![]()
comment out the line,for the boxes you want to remove the heading, and for the border, its in the classes/boxes.phpnew infoBoxHeading($info_box_contents, true, false);
where it says class="infoBox", you want to change that class to have no bordersfunction 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);
}![]()
Arpit,
What can i say.
Thousends of thanks, you hav great day![]()
![]()
warm regards Kimberley
Bookmarks