Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

the number 1 in the category and shopping cart box


Guest

Recommended Posts

i recently removed the pictures on the category and shopping cart boxes so that I had square corners on the boxes.

 

but now i have "1" on both of them where the corners where.

 

i've checked the english and index files but i can't seem to find it in them.

 

any ideas anyone?

 

check it out on my site: www.deviltronics.com

 

 

thanks

Link to comment
Share on other sites

i recently removed the pictures on the category and shopping cart boxes so that I had square corners on the boxes.

 

but now i have "1" on both of them where the corners where.

 

i've checked the english and index files but i can't seem to find it in them.

 

any ideas anyone?

 

check it out on my site:  www.deviltronics.com

thanks

 

well, depends on how you removed them

Treasurer MFC

Link to comment
Share on other sites

i just put // before the relevant lines.

 

well, then it depends on which lines you consider relevant.

 

normally you call the headers like:

 

new infoBoxHeading($info_box_contents, false, false);

 

the "false" means no rounded corner, "true" would make it a rounded one.

So no need to change the class if that is where you changed it.

Treasurer MFC

Link to comment
Share on other sites

this is what i did, shown in orange! this is from includes/classes/boxes.php, from lines 102 to 168.

 

which file are you on about?

 

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false, $direct_output = true) { //edit - noJS coolmenu

$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, $direct_output); //edit - noJS coolmenu

}

}

 

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

)

);

 

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

}

}

Link to comment
Share on other sites

this is what i did, shown in orange! this is from includes/classes/boxes.php, from lines 102 to 168.

 

which file are you on about?

class infoBoxHeading extends tableBox {

    function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false, $direct_output = true) { //edit - noJS coolmenu

      $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, $direct_output); //edit - noJS coolmenu

    }

  }

 

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

          )

          );

 

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

    }

  }

 

you call your headers in you infobox files.

 

if you do it this way, and you can you have to do it like :

 

if ($left_corner == true) {

$left_corner = '';

}

 

otherwise $left_corner retains the value "true" which translates into "1" and is

put on the screen instead of the image.

Treasurer MFC

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...