Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Rounded corner, top right main page


RickChase

Recommended Posts

Posted

I have found where to modify the system so that I have rounded corners on all the boxes in the left and right columns, but I cannot for the life of me find where to modify the one that shows in the center of the default page (featured products).

 

This is driving me nuts. Can anyone help?

 

Thanks,

Rick

Posted

main page is in /catalog/includes/languages/english/default.php

 

probobly there

 

care to share how to make corners rounded?

 

and are you using 2.1 or 2.2?

Posted

It's in the same file as the others were: includes/classes/boxes.php

 

Here a clip from line 150-161 (your line count may vary):

 

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="25" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'interface/corner_left.gif')),

                                  array('params' => 'height="25" class="infoBoxHeadingTitle" width="100%"', 'text' => $contents[0]['text']),

                                  array('params' => 'height="25" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'interface/corner_right.gif')));

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

   }

 }

 

You can see where I have corner_left.gif and corner_right.gif.

 

Hope this helps.

Posted
main page is in /catalog/includes/languages/english/default.php

 

probobly there

 

care to share how to make corners rounded?

 

and are you using 2.1 or 2.2?

 

2.2

 

To make the boxes in the left and right columns rounded, you have to go into the catalog/includes/boxes/ and open whatever box you want to modify. Then look for this...

 

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_CATEGORIES

                             );

 new infoBoxHeading($info_box_contents, true, true);

 

See the last line I show there? The "true, true"? The first true turns on the left round corner, and the second turns on the right. This is the same for all boxes.

 

But I still cannot find where to do it for the featured products...

 

Help?!

Rick

Posted

Anyone know how to tell the left_corner.gif to align to the top left corner. Mine seem to be aligned in the middle when looking at it through IE 5 Mac OS.

 

It is noticible when the arrow graphic is in the header box. The larger header causes the left corner gif to go down to the middle of the cell.

 

Thoughts?

 

Thanks,

 

Bobby

Jared Geesey

Archived

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

×
×
  • Create New...