Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Eliminate ALL corner graphics


dogpaw

Recommended Posts

I've managed to eliminate all the corner graphics in the info boxes by modifying classes/boxes.php EXCEPT for the two on the What's new for blank month.

 

Here's my current code:

 

/* Eliminate the corner graphic images */

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 = '';

} else {

$left_corner = '';

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = '';

} else {

$right_corner = '';

}

 

I'm not sure if this is the most efficient way to just get rid of those pesky corners. How do you get rid of the remaining two on the what's new section? Thanks.

 

Chijo

Link to comment
Share on other sites

class contentBoxHeading is in the same file as class infoBoxHeading. Which is boxes.php

 

You are looking for this in boxes.php

  class contentBoxHeading extends tableBox {
   function contentBoxHeading($contents) {
     $this->table_width = '100%';
     $this->table_cellpadding = '0';

     $info_box_contents = array();
     $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
                                        'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
                                  array('params' => 'height="14" class="infoBoxHeading" width="100%"',
                                        'text' => $contents[0]['text']),
                                  array('params' => 'height="14" class="infoBoxHeading"',
                                        'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

     $this->tableBox($info_box_contents, true);
   }
 }

Link to comment
Share on other sites

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => ''),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => ''));

 

$this->tableBox($info_box_contents, true);

}

}

 

I just took out the graphics. I think this works now.

 

thanks for your help.

Link to comment
Share on other sites

Commenting out the images worked for me, but now I have a number "1" in the left corner of my catagories box, and a "1" in the right corner of the shopping cart box.  Bizarre.

Any ideas?

 

 

I used the front door aproach for includes/classes/boxes.php and just errased the reference 'infobox/corner_right_left.gif' for the images, leaving it looking like this:

 

                                         'text' => tep_image(DIR_WS_IMAGES . '')),
                                  array('params' => 'height="14" class="infoBoxHeading" width="100%"',
                                        'text' => $contents[0]['text']),
                                  array('params' => 'height="14" class="infoBoxHeading"',
                                        'text' => tep_image(DIR_WS_IMAGES . '')));

     $this->tableBox($info_box_contents, true);
   }

We help each other, to help ourselves!

Aloha Allison!

 

Liken to wrinkles, the many paths of my life not only altered my destiny, but my appearance.

 

Poetry, the artistry of plying ones soul to the empty canvases of life. A vision without sight. A verse without darkness. Lighting each day with a prose of beauty and love.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...