Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a image with link into an infobox


Guest

Recommended Posts

Posted

Ok

 

Basically i will add a box to the site and put it on one side.

 

what i need to do that i am not sure of is adding a safebuy logo to it.

 

Now i have the html code for the banner as it links to a certificate to show my site is secure.

 

How do i implement that code into the infobox , this is the code below just so you know what code i am referring to

 

<!-- SafeBuy Verification Seal -->

<a href="http://www.safebuy.org.uk/certificate/6a171ad2-efcc-4bbb-b7b6-0c0f8e3ee118.html"><img src="/safebuy.jpg" border="0" /></a>

<!-- / SafeBuy Verification Seal -->

 

any help appreciated

Posted
any help would be appreciated

 

I've added a box with a link in it a few times. Here's the code I used for one of them.

 

<?php
/*
 $Id: acrobat.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/
?>

<!-- acrobat //-->
         <tr>
           <td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Compatibility');

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center', 'text' => 'Our PDF products require the use of Adobe Acrobat Reader. <br><br><a href="http://www.adobe.com/products/acrobat/readstep2.html">
  <img border="0" src="images/Acrobat.gif" alt="Get Adobe Reader"></a><br><br>Download the latest version for best results.<br>');

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- acrobat_eof //-->

 

If you need instructions on how to make a new infobox, you can find them in the Knowledgebase.

 

Hope that helps

 

Simon

Posted

not quite sure how t integrate the code into the box code as i have simply copied one of the other boxes

Posted

WOULD THIS BE CORRECT TO ADD THE BOX WITH THIS LOGO CODE??

 

 

 

<?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

*/

?>

<!-- securepayment //-->

<tr>

<td>

<?php

$info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' =>

 

<!-- SafeBuy Verification Seal -->

<a href="http://www.safebuy.org.uk/certificate/6a171ad2-efcc-4bbb-b7b6-0c0f8e3ee118.html"><img src="/safebuy.jpg" border="0" /></a>

<!-- / SafeBuy Verification Seal -->

 

');

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

Posted

Looks like you are missing a ' after

$info_box_contents[] = array('text' =>

Even at a Mensa convention someone is the dumbest person in the room.

Posted

new infoBox($info_box_contents); ?>

 

appears above the box and bx size goes wrong, any ideas

Archived

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

×
×
  • Create New...