Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the "boxes"


Mark1

Recommended Posts

:!: Perhaps

 

:arrow: catalog/images

:!: you will find the image you seek :lol:

 

:idea: name your image/s the same :!:

 

 

:shock: Depening on the situation there is only one right answer.

:oops: Mine my not allways be best :!:

:!: first rule: Allways make a backup of a file before you change it. & All code is CASE Sensitive

:!: second rule: Never copy and paist code unless you know it works.

:!: third rule: If you do not know ask.

:!: final rule: Have patience.

Link to comment
Share on other sites

I have my new images AND the little red x's, please check it out:

http://ezhandsfree.com

I am making a guess that it might have something to do with the round corner.gifs that are on the initial oscommerce. I used the wiki docs for changing the images but those x's are still there.

So it wouldn't be an image issue, because even if I deleted the corner box gifs, those x's would be there. I could use some help with making the proper alterations in the code.

 

Somebody please help!

Jenn

Link to comment
Share on other sites

yeah, i think you need to turn the left corner off, although the problem seems to be it's not finding ANY image. this is what i see in your source:

<img src="images/" border="0" alt="">

 

in your /catalog/includes/boxes/<boxfile>.php files

did you try changing:

 

new infoBoxHeading($info_box_contents, true, false);

to

new infoBoxHeading($info_box_contents, false, false);

 

if you commented out $left_corner in classes/boxes.php, you need to change it to

$left_corner = ''; instead.

 
Link to comment
Share on other sites

I still can't get it to work properly. I can see when you click on the column and choose view source,

<img src="images/" border="0" alt="">

but I am not sure how to find that file to change it. I tried column_left.php and the corresponding files such as

/catalog/includes/boxes/<boxfile>.php files
but that did not contain what is showing in view source either.

 

those boxes/<file>.php files have all been changed to

new infoBoxHeadingInfo($info_box_contents, false, false);

 

Additionally, I went into classes/boxes.php to $left_corner = '';

and that didn't work either

 

Going crazy now! :cry:

Link to comment
Share on other sites

Just thought I would post the code that has been added to classes/boxes.php from the Wiki Documentation for

helpHowtoAddBoxHeaderImages

this particular piece is for an image for the Reviews.php

class infoBoxHeadingReviews extends tableBox {

function infoBoxHeadingReviews($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

if ($left_corner == false) {

$left_corner = tep_image(DIR_WS_IMAGES . '');

} else {

$left_corner = tep_draw_separator('');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeadingReviews"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="infoBoxHeadingReviews"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeadingReviews" nowrap',

'text' => $right_corner));

 

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

}

}

I am going to keep playing with this, but if anyone can catch what I am doing wrong I would appreciate it. Should the Wiki Doc be amended, too?

Thanks,

Jenn

Link to comment
Share on other sites

It's working now! For whatever reason, maybe I didn't have them all correct the first time,

in your /catalog/includes/boxes/<boxfile>.php files

did you try changing:

 

new infoBoxHeading($info_box_contents, true, false);

but they should stay "true, false" in order to work. And this is the way it was in wiki doc, so no idea what I did the first time.

 

Thanks for checking it out for me. :wink:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...