osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Replying to Adding different colors for each box

This is a discussion on Replying to Adding different colors for each box within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; hello! just trying to change the look of search box regarding the instruction on http://guide.oscdox.com/ (Adding different colors for each ...


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 03-21-2004, 01:26 PM
New Member
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
roman
Default Replying to Adding different colors for each box

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-21-2004, 02:43 PM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
Default

I installed a contrib that uses the stylesheet.css to change boxes, each one can be different. Here's the link to it:
http://www.oscommerce.com/community/contributions,1261
It's very easy and VERY handy!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-21-2004, 11:28 PM
New Member
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
roman
Default

thanx Kristine! will try...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-22-2004, 04:17 AM
Active Member
 
Join Date: Feb 2004
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Kristine is an unknown quantity at this point
Default

you're welcome, good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Pull down menu for colors? -- is it possible? markymrk22 osCommerce 2.2 Modification Help 3 05-26-2005 02:13 PM
Link Colors? beernut osCMax v1.7 Discussion 1 12-17-2004 04:41 PM
Need different link colors doggerwatson osCommerce 2.2 Modification Help 1 11-02-2004 05:36 AM
Old Question - Box Colors simmonm osCommerce 2.2 Modification Help 1 09-22-2003 06:02 PM
css link colors AtroxAngel osCommerce 2.2 Modification Help 12 01-22-2003 10:31 AM


All times are GMT -8. The time now is 10:12 PM.


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