Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

corner_right


Babysweet

Recommended Posts

Posted

the corner_right_left image is were corner_right should be,

this is happening at the "new products for..." heading, I have tried to chase this source but am coming up short.

please let me know where I can alter this part of the code.

if what I have writen makes no sence check out my website and scroll down to the bottom of the catalog

Sincerely,

Joseph Seabert

Posted

I don't see where the error is in this, its from box.php, are you sure this is for the center box, and not the left and right columns of boxes?

 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');
     }
     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 = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
     } else {
       $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
     }

     $info_box_contents = array();
     $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
                                        'text' => $left_corner),
                                  array('params' => 'width="100%" height="14" class="infoBoxHeading"',
                                        'text' => $contents[0]['text']),
                                  array('params' => 'height="14" class="infoBoxHeading" nowrap',
                                        'text' => $right_corner));

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

 class contentBox extends tableBox {
   function contentBox($contents) {
     $info_box_contents = array();
     $info_box_contents[] = array('text' => $this->contentBoxContents($contents));
     $this->table_cellpadding = '1';
     $this->table_parameters = 'class="infoBox"';
     $this->tableBox($info_box_contents, true);
   }

   function contentBoxContents($contents) {
     $this->table_cellpadding = '4';
     $this->table_parameters = 'class="infoBoxContents"';
     return $this->tableBox($contents);
   }
 }

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

Sincerely,

Joseph Seabert

Posted

In this section of code:

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

Replace the image in the last line with:

infobox/corner_right.gif

Posted

Forget corner_right I am having a nightmare with corner_left, all I keep getting is the pixel_trans.gif.

 

I have gone in to all the Info Boxes PHP files inculding boxes.php, so am I missing something? Oh yeah I have also gone on to the wiki page about the Info Box corners but still can not seem to change the pixel_trans.gif. Can anybody give me a hand?

 

Oh, I am trying to round off the corners of the info boxes, I have done the right corners and both ends of the Shopping Cart header and the New Products header.

 

Also while I am at it how do I remove the frames of the Info Boxes? The CSS is set on '0' but that seems to have no effect!

 

Thanks,

Pompeylad.

PHP?!? Long live HTML!!!! But then again we never stop learning.

Posted

Backup...Backup...Backup

For Pompeylad,

The code is located around line 114 in /includes/classes/boxes.php

 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');
    }
    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 = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
    } else {
      $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

Also while I am at it how do I remove the frames of the Info Boxes? The CSS is set on '0' but that seems to have no effect!

In styltesheet.css change the color to match the background color.

Posted

Well, below is line 100 to 118.

 

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_left.gif');

      }

      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 = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

      } else {

        $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

      }

 

I have changed the 'pixel_trans.gif' to 'corner_right.gif' but nothing seems to happen, maybe it's the stylesheet thats needs to be changed?

 

Pompeylad. :(

PHP?!? Long live HTML!!!! But then again we never stop learning.

Posted

Can anybody help out in this one? I have got all my corner_lefts to apper, but still having trouble with corner_right.

 

Pompeylad.

PHP?!? Long live HTML!!!! But then again we never stop learning.

Posted
Can anybody help out in this one? I have got all my corner_lefts to apper, but still having trouble with corner_right.

 

Pompeylad.

is it corner_right or corner_right_left ?

Your online success is Paramount.

Posted

Yes and Ray,

 

Thanks for the help but I gotta go to every PHP file in inculdes/boxes and change it to true, true.

 

You know what guys, I just may be lreaning PHP at last.

 

Pompeylad.

PHP?!? Long live HTML!!!! But then again we never stop learning.

Posted

Ray,

 

All is well now, I sorted it out. I had to go in to each PHP script in the boxes file and tell the header not to use corner_right_left but to use corner_right. Well what ever I did it seemed to work.

 

Thanks again,

Pompeylad.

PHP?!? Long live HTML!!!! But then again we never stop learning.

Archived

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

×
×
  • Create New...