Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Trying to add graphic borders to infoboxes


Recommended Posts

I'm trying to modify the boxes.php to use gifs for borders around the infoboxcontents.


the code block looks like this

    function infoBoxContents($contents) {
     $this->table_cellpadding = '3';
     $this->table_parameters = 'class="infoBoxContents"';
     $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);



I've been trying to figure out where to add the img references into the array so it put a right.gif then contents then left.gif. I'm also want to add a infoboxbottom so that I can make so nice rounded boxes.


I managed to get some good looking boxes by modifying all the files in /boxes one at a time. I think this is a better way to do it though.


Pre-Thanks to everyone :D

Link to comment
Share on other sites


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

  • Create New...