osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

BG color only in categorie box

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-10-2005, 10:57 AM
New Member
 
Join Date: Nov 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjelle11
Default BG color only in categorie box

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-13-2005, 11:01 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default RE: BG color only in categorie box

all boxes use the same class, so just create a new one and use that in the catergory box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-13-2005, 01:25 PM
New Member
 
Join Date: Nov 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjelle11
Default BG color only in categorie 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-14-2005, 11:50 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

ok hope your ready for this,

files that need to editing but before we begin, plz backup your files:

Quote:
catalog/stylesheet.css
catalog/includes/boxes/categories.php
catalog/includes/classes/boxes.php
in catalog/stylesheet.css
add your new class

Code:
.kjell{
background: #668FBB;
  font-family: Verdana, Arial, sans-serif;
  font-size: 20px;

}
in catalog/includes/boxes/categories.php
change
Code:
new infoBox($info_box_contents);
to
Code:
new infoBoxCat($info_box_contents);
in catalog/includes/classes/boxes.php
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);
   	 	}
  }
hope you have made backups and now upload the files, you show be all set [/code]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-14-2005, 11:53 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

and remember, these changes to the core code will inhibit you from going to new releases in the future
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-15-2005, 03:57 AM
New Member
 
Join Date: Nov 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjelle11
Default BG color only in categorie box

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-15-2005, 11:04 AM
New Member
 
Join Date: Nov 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjelle11
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-17-2005, 08:02 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

comment out the line,
Quote:
new infoBoxHeading($info_box_contents, true, false);
for the boxes you want to remove the heading, and for the border, its in the classes/boxes.php
Quote:
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);
}
where it says class="infoBox", you want to change that class to have no borders
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 01-17-2005, 03:40 PM
New Member
 
Join Date: Nov 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjelle11
Default BG color only in categorie box

Arpit,

What can i say.

Thousends of thanks, you hav great day

warm regards Kimberley
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 04:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax