chrometweaks.org

Dreamweaver site with iPage and DimeReseller?

Click Here To View All Answers...


Got a question... Dreamweaver site with iPage and DimeReseller? Hoping for any answer or 2. Another question on my mind: Http://colemachines.com/catalog/.

How do I remove the 1 pixel border on all of the infoboxes? I changed the inlcudes/classes/boxes.php file to be 0 the border, but it's still there. Thanks..

This post has been edited by.

CraniumDesigns.

: 31 March 2004, 23:44..

Comments (148)

Good question... I dunno what is the answer to your question. I'll do some investigation and get back to you if I discover an anything. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

Catalog/includes/classes/boxes.php line #79.

$this->table_cellpadding = '1';.

Change to.

$this->table_cellpadding = '0';.

And line #136 for the new products box.

$this->table_cellpadding = '1';.

Change to.

$this->table_cellpadding = '0';.

This post has been edited by.

241.

: 31 March 2004, 23:55..

Comment #2

Now how do I remove the headings, so that just my images are shown and not the stock ones?.

This post has been edited by.

CraniumDesigns.

: 31 March 2004, 23:58..

Comment #3

Catalog/includes/boxes/ each box that you wish to remove the heading from find this code.

$info_box_contents = array();.

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);.

New infoBoxHeading($info_box_contents, false, false);.

Change to this.

// $info_box_contents = array();.

// $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);.

// new infoBoxHeading($info_box_contents, false, false);.

This post has been edited by.

241.

: 01 April 2004, 00:03..

Comment #4

Awesome. thanks. do you get paid to reply that fast?..

Comment #5

Yes.

The new products box is located at.

Catalog/includes/modules/new_products.php..

Comment #6

Ok, i'm almost there. I modified the boxes to have a cellpadding of 10, but there is a huge amount of space on top and bottom of the boxes' text content. how do I fix that?..

Comment #7

Is that not due to the cellpadding 10.

If you look at the classes boxes there are some cellpaddings allready in place.

This post has been edited by.

241.

: 01 April 2004, 00:19..

Comment #8

I want the content of the box to be spaced 10 pixels from both of the sides and the header images above and below the content...

Comment #9

This would probably entail removing some cellpadding from my cell and I dont think that the warder would like that.

This would probably entail removing some cellpadding from the classes boxes..

Comment #10

Ok, i'll messs it and come back if I don't get it...

Comment #11

Ok, i've been messing with the value in boxes.php on line 85 and it seems to set the top and bottom spacing to be double or more of the value I set, so if I want 10 padding on the sides, the top is somewhere between 20-30. i'm not sure what i'm doing, here's my code. please help me fix..

<?php.

/*.

$Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class tableBox {.

Var $table_border = '0';.

Var $table_width = '100%';.

Var $table_cellspacing = '0';.

Var $table_cellpadding = '0';.

Var $table_parameters = '';.

Var $table_row_parameters = '';.

Var $table_data_parameters = '';.

// class constructor.

Function tableBox($contents, $direct_output = false) {.

$tableBox_string = '<table border="'tep_output_string($this->table_border)'" width="'tep_output_string($this->table_width)'" cellspacing="'tep_output_string($this->table_cellspacing)'" cellpadding="'tep_output_string($this->table_cellpadding)'"';.

If (tep_not_null($this->table_parameters)) $tableBox_string .= ' '$this->table_parameters;.

$tableBox_string .= '>'"\n";.

For ($i=0, $n=sizeof($contents); $i<$n; $i++) {.

If (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form']"\n";.

$tableBox_string .= ' <tr';.

If (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' '$this->table_row_parameters;.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' '$contents[$i]['params'];.

$tableBox_string .= '>'"\n";.

If (isset($contents[$i][0]) && is_array($contents[$i][0])) {.

For ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {.

If (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {.

$tableBox_string .= ' <td';.

If (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="'tep_output_string($contents[$i][$x]['align'])'"';.

If (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {.

$tableBox_string .= ' '$contents[$i][$x]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>';.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];.

$tableBox_string .= $contents[$i][$x]['text'];.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';.

$tableBox_string .= '</td>'"\n";.

}.

}.

} else {.

$tableBox_string .= ' <td';.

If (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="'tep_output_string($contents[$i]['align'])'"';.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {.

$tableBox_string .= ' '$contents[$i]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>'$contents[$i]['text']'</td>'"\n";.

}.

$tableBox_string .= ' </tr>'"\n";.

If (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>'"\n";.

}.

$tableBox_string .= '</table>'"\n";.

If ($direct_output == true) echo $tableBox_string;.

Return $tableBox_string;.

}.

}.

Class infoBox extends tableBox {.

Function infoBox($contents) {.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $this->infoBoxContents($contents));.

$this->table_cellpadding = '0';.

$this->table_parameters = 'class="infoBox"';.

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

}.

Function infoBoxContents($contents) {.

$this->table_cellpadding = '0';.

$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);.

}.

}.

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_arrowtep_image(DIR_WS_IMAGES'infobox/corner_right.gif');.

} else {.

$right_corner = $right_arrowtep_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 = '0';.

$this->table_parameters = 'class="infoBox"';.

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

}.

Function contentBoxContents($contents) {.

$this->table_cellpadding = '10';.

$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);.

}.

}.

Class errorBox extends tableBox {.

Function errorBox($contents) {.

$this->table_data_parameters = 'class="errorBox"';.

$this->tableBox($contents, true);.

}.

}.

Class productListingBox extends tableBox {.

Function productListingBox($contents) {.

$this->table_parameters = 'class="productListing"';.

$this->tableBox($contents, true);.

}.

}.

?>.

This post has been edited by.

CraniumDesigns.

: 01 April 2004, 00:31..

Comment #12

Nevermind, I just put the whole thing in a table with cellpadding of 10. thanks...

Comment #13

I was having a time out.

The grey bar at the top is in the catalog/includes/header.php and I have allready mentioned the new products bar..

Comment #14

Http://colemachines.com/catalog/.

How do I remove the 1 pixel border on all of the infoboxes? I changed the inlcudes/classes/boxes.php file to be 0 the border, but it's still there. Thanks..

This post has been edited by.

CraniumDesigns.

: 31 March 2004, 23:44..

Comment #15

This post has been edited by.

241.

: 31 March 2004, 23:46..

Comment #16


This question was taken from a support group/message board and re-posted here so others can learn from it.