bradybarrows Posted May 3, 2008 Posted May 3, 2008 I have been reading the osCommerce 2.2 Milestone 2 Update 051112 Documentation trying to figure out how to make a Google Ad appear in a right box and it baffles me how to do this. The best way to show you what I want is for you to click here. Over in the right forum you will see a box just above LANGUAGES called Ads by Google. In it I have a link to the script I want in the box rather than a link. I figured out how to put the script in the header but I want the script for the Google Ad to be placed in the box. Is there a way to do this?
Guest Posted May 3, 2008 Posted May 3, 2008 I have been reading the osCommerce 2.2 Milestone 2 Update 051112 Documentation trying to figure out how to make a Google Ad appear in a right box and it baffles me how to do this. The best way to show you what I want is for you to click here. Over in the right forum you will see a box just above LANGUAGES called Ads by Google. In it I have a link to the script I want in the box rather than a link. I figured out how to put the script in the header but I want the script for the Google Ad to be placed in the box. Is there a way to do this? Why are you looking at that documentation? It was to update osc itself. <?php /* Google Infobox, v 1.1 03/16/2005 by LisSyl Based on the original version (v 1.0) by Mike Bakker osCommerce http://www.oscommerce.com/ Copyright © 2000,2001 osCommerce Released under the GNU General Public License http://www.websolutionsbymike.com http://www.n2scents.com http://www.davesjerky.com */ ?> <!-- google ads Info Box //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_RESOURCES ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<script type="text/javascript"><!-- ' . ADSENSE_SETTINGS . '//--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'); new infoBox($info_box_contents); ?> </td></tr> <!-- google ads_eof //-->
bradybarrows Posted May 3, 2008 Author Posted May 3, 2008 Coopco, Thanks but I am still in the dark. How does this code work? Where does it go?
diy Posted May 3, 2008 Posted May 3, 2008 Are we talking about this contribution??? http://addons.oscommerce.com/info/3031 What i did actualy was to replace the google_ad_client = "pub-*************************" with mine and added google_ad_slot = "******" which I dont know what it is PS I used the original file noty the later ones
Guest Posted May 3, 2008 Posted May 3, 2008 Coopco, Thanks but I am still in the dark. How does this code work? Where does it go? It is the code for an info box that you put in column left or right. You call yours ads by google.
bradybarrows Posted May 3, 2008 Author Posted May 3, 2008 It is the code for an info box that you put in column left or right. You call yours ads by google. Thanks. I tried it there and it had some problems, but when I added the code to the adwords.php page I made it worked!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.