[200] Posted June 2, 2008 Posted June 2, 2008 Hey, I just came across this contribution and would like to get it working. The install txt file attached seemed to be quite straight forward but for some reason I cannot get the ad to load... Here is the txt file, Google Adsence Ad in product info page. Hi I'm Jenny. I'm a newbie in osCommerce. This is my first contribution. **************************************** This contribution will intergrate Google Adsense Adv into your product info page. It will appear right after your product and before the line " The product has been add to our catolog ... " It work for Google Banner with size = 468 x 60 Hopefully this will help you to increase the Google Adsense Ad exposure **************************************** Step 1 :Open catalog/product_info.php -------------------------------------------------------- Find: -------------------------------------------------------- <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> <?php } else { ?> -------------------------------------------------------- Add Below : -------------------------------------------------------- <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_BREAKER, tep_date_long($product_info['products_date_added'])); ?></td> </tr> <tr> <td align="center" class="smallText"></div><br><br><br><?php echo sprintf(TEXT_GOOGLE_ADSENSE, tep_date_long($product_info['products_date_added'])); ?></td> </tr> -------------------------------------------------------- The above statement must be above the following lines: -------------------------------------------------------- <tr> <td align="center" class="smallText"></div><br><br><br><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> <?php } ?> **************************************** Step 2 :Open catalog/includes/languages/english/product_info.php -------------------------------------------------------- Find: -------------------------------------------------------- define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); -------------------------------------------------------- Add above : -------------------------------------------------------- define('TEXT_BREAKER', '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'); define('TEXT_GOOGLE_ADSENSE', '<script type="text/javascript"> ........ //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'); Whenever I do the above I only get a message saying, BREAKER and GOOGLE ADSENSE I am also unsure what to do with this, -------------------------------------------------------- The above statement must be above the following lines: -------------------------------------------------------- <tr> <td align="center" class="smallText"></div><br><br><br><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> <?php } ?> IF anyone has installed this contribution and would like to assit me please let me know. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.