Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Image and pass IP addr to an Infobox?


renb

Recommended Posts

Posted

Hi All. I know just enough php and html to get myself into trouble and not out..

I've been able to create an infobox and have it "show" some basic text but can't

seem to get it to show an image.

 

Basically I just want to display the SSL logo and also pass a visitors's IP addr

to it as well.

 

Here is what I have so far:

---------------------------------------------------------------

<?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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- sslbox //-->

<tr>

<td>

<?php

$info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<strong>128 BIT SSL: Enabled</strong>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- sslbox_eof //-->

 

---------------------------------------------------------------

 

Hopefully it's an easy thing to do.

 

Thanks for any help.

 

Ren

Posted

You can show the IP address like this.

 

echo tep_get_ip_address();

 

Usually the ssl provider will have a logo script for you to put on your site.

 

I think there is some in contribs.

Archived

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

×
×
  • Create New...