Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adsense


hornetnz

Recommended Posts

Posted

I recently installed the adsense addon (http://addons.oscommerce.com/info/8143) and had to turn it off because it was messing with the layout of my details page. I have no columns on my details page, and the addons only options are left or right. Does adsense HAVE to be in a box? Can I just paste the adsense code into the footer file?

Posted

the add-on also includes some logic so it only shows on non ssl pages

yes, you can put it whereever you want like in the footer

if you put it in a div, like in the add-on, you can asign a certain width if you wanted to

 

there is also a contribution to add header and footer content blocks, if you llike that mechanism for this and other content blockx

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted

This is how I added the adsense code to my footer. I stopped showing code at the end of the adsense part:

<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
require(DIR_WS_INCLUDES . 'counter.php');
?>
<div class="grid_24 footer">
<p align="center"><?php echo FOOTER_TEXT_BODY; ?></p>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><center>
<?php if ($request_type == NONSSL) { /* only show adsense in NON SSL else it causes warning */ ?>
Google code		

<?php } ?>
</center>
</td></tr>

 

It could probably be dressed up with css classes, but it works for me.

 

Tim

Archived

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

×
×
  • Create New...