Has anyone came up with a google adsense infobox? I was checking out the osc contibutions and could not find anything.
UPDATE
I found an Amazon infobox in the osc contributions that, after looking at the code, I think it can be changed to work with google adsense. Perhaps someone that is better at the code can look at it and reply.
The only issue I would have would be porting it & getting the infobox to show up in the helius template.
http://www.oscommerce.com/community/contributions,1499
Thanks!
OK KIDS!
I tried out a few things and was able to get the box working with both Helius and E-Vector. The code still uses the amazon.com affiliate link to amazon, but that can be changed with adsense links. I was not able to do that as I am still waiting on google to approve my site. Here is the code I used:
Quote:
<?php
/*
$Id: google.php,v 1.1.1.1 2003/09/18 19:05:50 wilt Exp $
Contribution based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com Copyright (c) 2002 - 2003 osCommerce
Released under the GNU General Public License
*/
?>
<!-- google //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => '<font color="' . $font_color . '">' . BOX_HEADING_GOOGLE . '</font>');
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => 'Google Adsense');
$info_box_contents = array();
$info_box_contents[] = array('text' => '<center><AREA COORDS="0,0,10000,10000" A HREF="http://www.amazon.com/exec/obidos/redirect-home/********" target=main></MAP><img src="http://rcm-images.amazon.com/images/G/01/rcm/12x24.gif" width="120" height="240" border="0" usemap="#boxmap-p8" alt="PUT YOUR ADSENSE ADS HERE!"></iframe></a></center>');
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- google_eof //-->
Please let me know if anyone gets the adsense ads to show up! You should just need to change the code between "<center>" & "</center>" - Also, in the Helius templates, the image at the bottom of the infobox did not appear, if anyone can figure that out.