Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Added box but can't change title.


JMann2380

Recommended Posts

Posted

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

Posted

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

Posted
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

 

 

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.

Posted
Change:

  $info_box_contents[] = array('text' => 'Content');

To:

  $info_box_contents[] = array('text' => '<img src="images/myimage.jpg"');

 

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

Posted
One other thing, how would I center this in the box?

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...