Gonzogoose Posted October 12, 2005 Posted October 12, 2005 Hey all, The documentation tells how to add an image to the box headers, but not to the box itself, which is what I'm needing to do. But it's not a product image, but rather an image I uploaded. How would I go about doing that? Thanks!
Guest Posted October 16, 2005 Posted October 16, 2005 Let's use the information box as an example. After the last part of the coding before you see ?> You place your html coding to specify where your picture is located like this: <img src="yourpicture.gif"><br><img src="nextpicture.gif">
Gonzogoose Posted October 16, 2005 Author Posted October 16, 2005 Thanks, but I've tried that and this is what I get: Parse error: parse error, unexpected '<' in /home/content/b/r/a/bracy/html/catalog/includes/boxes/payment_methods.php on line 26
yodergraphics Posted February 27, 2006 Posted February 27, 2006 This is what worked for me to add a centered graphic that is not hot linked: <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => 'Box Heading Name'); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => tep_image(DIR_WS_IMAGES . 'image.gif')); new infoBox($info_box_contents); ?> </td> </tr>
fritzsperry Posted September 27, 2006 Posted September 27, 2006 How would you do this with and image from a website. Such as http://kitconet.com/images/quotes_special.gif
fritzsperry Posted September 27, 2006 Posted September 27, 2006 Nevermind I figured it out <!-- metals box //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => 'Current Metals'); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => tep_image( 'http://kitconet.com/images/quotes_special.gif')); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //-->
Recommended Posts
Archived
This topic is now archived and is closed to further replies.