[200] Posted June 27, 2007 Share Posted June 27, 2007 Hey, I am trying to add an image to an infobox. So far I have downloaded graphical boarders and the define main page addons. Now I am trying to put an image within the mainpage so it will display within the infobox... Here is the code I have thus far, <table width="100%" cellpadding="5" cellspacing="0" border=0> <tr> <td class="main" width=100% valign="top" align="right"> <?php $mainpage_title = "Domestic Auto Head Gaskets Are Now Available!"; $mainpage_info = "Type Text In Here"; $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_info); new infoBox($info_box_contents); ?> </td> <td width=30% valign="top" align="center"> <p> Can someone please help me? Basically I want the picture to be displayed on the right hand side with the text on the left... Link to comment Share on other sites More sharing options...
bill110 Posted June 27, 2007 Share Posted June 27, 2007 Hey, I am trying to add an image to an infobox. So far I have downloaded graphical boarders and the define main page addons. Now I am trying to put an image within the mainpage so it will display within the infobox... Here is the code I have thus far, <table width="100%" cellpadding="5" cellspacing="0" border=0> <tr> <td class="main" width=100% valign="top" align="right"> <?php $mainpage_title = "Domestic Auto Head Gaskets Are Now Available!"; $mainpage_info = "Type Text In Here"; $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_info); new infoBox($info_box_contents); ?> </td> <td width=30% valign="top" align="center"> <p> Can someone please help me? Basically I want the picture to be displayed on the right hand side with the text on the left... I have no tried this so back up first <table width="100%" cellpadding="5" cellspacing="0" border=0> <tr> <td class="main" width=100% valign="top" align="right"> <?php $mainpage_title = "Domestic Auto Head Gaskets Are Now Available!"; $mainpage_info = "<table><tr><td>First line of info<br>second line of info etc..</td><td>" . tep_image(DIR_WS_IMAGES . "YOUR_IMAGE.GIF") . "</td></tr></table>"; $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $mainpage_info); new infoBox($info_box_contents); ?> </td> <td width=30% valign="top" align="center"> <p> all the code for the box will need to be in a file in includes/boxes/your_box.php then called for in you code where you want to display it like this: require(DIR_WS_BOXES . 'your_box.php'); My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.