Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with changing color of tables


Qbfinest83

Recommended Posts

It's an image...

:blush:

 

Read this post:

 

How do I ...?

 

Tip 8

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

It's an image...

:blush:

 

Read this post:

 

How do I ...?

 

Tip 8

 

I tired that but if I pick the rounded ones its still the same gray color when I need it red. since its a gif I will probaly just change the color of it but is there a way to remove the image on that corner

Link to comment
Share on other sites

The only code change I'm prepared to offer would remove the image from that corner from that box and ALL the similar boxes on your site.

 

Would that be acceptable?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

The only code change I'm prepared to offer would remove the image from that corner from that box and ALL the similar boxes on your site.

 

Would that be acceptable?

:unsure:

 

 

Yes that would if it will be alright with you.

Link to comment
Share on other sites

BACKUP THIS FILE BEFORE MAKING ANY EDITS.

 

In /catalaog/includes/classes/boxes.php find this code:

 

  class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  $this->table_cellpadding = '0';

  if ($left_corner == true) {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
  } else {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
  }

In that code change this one line:

 

		$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');

To

 

		$left_corner = '';

Be sure you get the right line!

:lol:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 2 weeks later...

you could always do what I did......just make graphics the same size as the existing ones in the correct color and over wright the default ones...

took 10 min

 

 

I am having trouble with the color for the Information box. I am able to change the background color where it says information but there is a small chuck that the color is staying the same

Untitled-1.jpg

Link to comment
Share on other sites

I am having trouble with the color for the Information box. I am able to change the background color where it says information but there is a small chuck that the color is staying the same

Untitled-1.jpg

 

 

how did u do this? i can change the little bits u havent but i cant seem to do what u have?

Link to comment
Share on other sites

1. Inside catalog/images/ folder, copy pixel_trans.gif to another folder or directory.

 

2. Rename it to corner_right_left.gif

 

3. Place corner_right_left.gif inside catalog/images/infobox folder

 

You may be prompted if you want to overwrite the files, click yes.

You can always retrieve default osc images from your oscommerce download.

Link to comment
Share on other sites

1. Inside catalog/images/ folder, copy pixel_trans.gif to another folder or directory.

 

Where? seems a bit pointless if its just moved somewhere else cant it be deleted?

 

2. Rename it to corner_right_left.gif

 

 

3. Place corner_right_left.gif inside catalog/images/infobox folder

 

 

what should i do with the one that is already there? ?

 

 

Confused.COM help anyone?

Link to comment
Share on other sites

Another approach :::

 

1. Inside catalog/images/ folder, copy pixel_trans.gif to ---> catalog/images/infobox folder

 

2. Delete corner_right_left.gif inside catalog/images/infobox folder OR rename corner_right_left.gif inside catalog/images/infobox to my.gif

 

3. Rename pixel_trans.gif that is now inside catalog/images/infobox folder to corner_right_left.gif

Link to comment
Share on other sites

This probably won't be a good color match but here's what you need to chnage to get a red box.

 

It's all in the stylesheet.

 

TD.infoBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 background: #ff0000;
 color: #ffffff;
}

In that code this line:

 

  background: #ff0000;

Is the background color of the heading.

 

This code:

 

.infoBox {
 background: #ff0000;
}

Sets the line color around the box,

 

Both of the color values I posted are "red", but maybe not a good match for your red.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Other places in the stylesheet you may need to alter to get the "red look":

 

TD.headerNavigation {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #ff0000; /* this too */
 color: #ffffff;
 font-weight : bold;
}

TD.footer {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #ff0000; /* this too */
 color: #ffffff;
 font-weight: bold;
}

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...