Mark1 Posted May 7, 2003 Share Posted May 7, 2003 I want to replace the Boxes in my cart with a .gif I have. Can someone tell me how to do this? Thanks!! Mark Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2003 Share Posted May 7, 2003 Remove the box or put .gif inside the box ? The_Bear Link to comment Share on other sites More sharing options...
Mark1 Posted May 7, 2003 Author Share Posted May 7, 2003 I want to replace all the boxes with a .gif picture. Mark Link to comment Share on other sites More sharing options...
zlack Posted May 7, 2003 Share Posted May 7, 2003 this might be what you are looking for: http://www.oscommerce.com/community/contributions,867 Good luck! Zlack It's easier to remember, then to forget Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2003 Share Posted May 8, 2003 I used the wiki site for helpHowoAddBoxHeaderImages not too bad so far, but I have red x boxes on every one. Can anyone tell me how to get rid of those? http://ezhandsfree.com Link to comment Share on other sites More sharing options...
zlack Posted May 8, 2003 Share Posted May 8, 2003 you mean you don't have images at all, instead red crosses or? It's easier to remember, then to forget Link to comment Share on other sites More sharing options...
OnePhatWebyCat Posted May 8, 2003 Share Posted May 8, 2003 :!: 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 More sharing options...
Guest Posted May 8, 2003 Share Posted May 8, 2003 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 More sharing options...
josheli Posted May 8, 2003 Share Posted May 8, 2003 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 More sharing options...
Guest Posted May 8, 2003 Share Posted May 8, 2003 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 More sharing options...
Guest Posted May 8, 2003 Share Posted May 8, 2003 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 More sharing options...
josheli Posted May 8, 2003 Share Posted May 8, 2003 what does your infoBoxHeadingInfo() function in /classes/boxes.php look like? can you post it here? Link to comment Share on other sites More sharing options...
josheli Posted May 8, 2003 Share Posted May 8, 2003 oh, thanks. Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2003 Share Posted May 9, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.