JMann2380 Posted January 21, 2005 Posted January 21, 2005 Hello, I added a box to column_left.php using these instructions based on the information box: http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/66 I named my new box secure.php and want to add my secure site seal .gif image. This is my code for my new box. <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- secure //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SECURE); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => 'Content'); new infoBox($info_box_contents); ?> </td> </tr> <!-- secure_eof //--> The first problem is I am getting BOX_HEADING_SECURE as my title for the box. How do I change this? If I change it in the code above I get an error. The second thing I can't figure out is how to add an image to the center of this box? Thanks, Josh
JMann2380 Posted January 21, 2005 Author Posted January 21, 2005 Ok figured out the first problem, had to add: // categories box text in includes/boxes/secure.php define('BOX_HEADING_SECURE', 'Secured with'); to english.php Any ideas on adding an image to this box? -Josh
RyanSmith Posted January 21, 2005 Posted January 21, 2005 Ok figured out the first problem, had to add: // categories box text in includes/boxes/secure.php define('BOX_HEADING_SECURE', 'Secured with'); to english.php Any ideas on adding an image to this box? -Josh <{POST_SNAPBACK}> Change: $info_box_contents[] = array('text' => 'Content'); To: $info_box_contents[] = array('text' => '<img src="images/myimage.jpg"'); osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
JMann2380 Posted January 21, 2005 Author Posted January 21, 2005 Change: $info_box_contents[] = array('text' => 'Content'); To: $info_box_contents[] = array('text' => '<img src="images/myimage.jpg"'); <{POST_SNAPBACK}> Thanks, it worked. As you can probably tell I am just getting my feet wet with php and oscommerce. One other thing, how would I center this in the box? Josh
JMann2380 Posted January 21, 2005 Author Posted January 21, 2005 One other thing, how would I center this in the box? <{POST_SNAPBACK}> Well I added this and it seems to work, does this seem ok? $info_box_contents[] = array('text' => '<center><img src="images/comodossltrustlogo.gif"</center>'); -Josh
Recommended Posts
Archived
This topic is now archived and is closed to further replies.