J.C.S. Posted August 7, 2006 Share Posted August 7, 2006 Just a small thing, I know, but it's bugging me that I can't fix it. I have placed a new Infobox in the right hand column and based it on the 'What's New?' box. All I wnt to do with it is to place an image inside it displaying 'payment methods' via PayPal. The problem is that I can't get the image to display 'inside' the box! At the moment it appears between the box heading and a small bordered box underneath. I have tried several things, but just get syntax errors. It occurred to me that the image was just too big, but at a Width of 130px X Depth 160px it should be okay. The coding at the moment is as shown below. <!-- payment //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_PAYMENT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); echo tep_image (DIR_WS_IMAGES . 'payment.jpg'); new infoBox($info_box_contents); ?> </td> </tr> <!-- payment_eof //--> As it is at the moment is not a problem and I really don't mind it - but it's not what I intended and I can't find an answer to it anywhere else, so perhaps someone else is having the same. Cheers, John. Link to comment Share on other sites More sharing options...
boxtel Posted August 7, 2006 Share Posted August 7, 2006 Just a small thing, I know, but it's bugging me that I can't fix it. I have placed a new Infobox in the right hand column and based it on the 'What's New?' box. All I wnt to do with it is to place an image inside it displaying 'payment methods' via PayPal. The problem is that I can't get the image to display 'inside' the box! At the moment it appears between the box heading and a small bordered box underneath. I have tried several things, but just get syntax errors. It occurred to me that the image was just too big, but at a Width of 130px X Depth 160px it should be okay. The coding at the moment is as shown below. <!-- payment //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_PAYMENT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); echo tep_image (DIR_WS_IMAGES . 'payment.jpg'); new infoBox($info_box_contents); ?> </td> </tr> <!-- payment_eof //--> As it is at the moment is not a problem and I really don't mind it - but it's not what I intended and I can't find an answer to it anywhere else, so perhaps someone else is having the same. Cheers, John. new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => tep_image (DIR_WS_IMAGES . 'payment.jpg')); new infoBox($info_box_contents); Treasurer MFC Link to comment Share on other sites More sharing options...
J.C.S. Posted August 10, 2006 Author Share Posted August 10, 2006 new infoBoxHeading($info_box_contents, false, false);$info_box_contents = array(); $info_box_contents[] = array('text' => tep_image (DIR_WS_IMAGES . 'payment.jpg')); new infoBox($info_box_contents); Yes, That's done it! Thank you. John. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.