Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

GOOGLE ADSENSE


googifts

Recommended Posts

All the boxes are in the catalog\includes\boxes directory. Create a new box (copy an existing one) modify it for your needs. Then place the filename in the includes\column_left.php or column_right.php (your navigation sides)

Link to comment
Share on other sites

All the boxes are in the catalog\includes\boxes directory. Create a new box (copy an existing one) modify it for your needs. Then place the filename in the includes\column_left.php or column_right.php (your navigation sides)

 

 

I made a box already... But i dont know how to put the Adsesne in the BOX please help with that thanks !

Link to comment
Share on other sites

so at the end of your box file you have something like this; that sets the content of your box:

 

 ? ?$info_box_contents = array();
? ?$info_box_contents[] = array('align' => 'left',
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => $boxtext);
? ?new infoBox($info_box_contents);

 

the $boxtext variable (you have some other name probably) should include your jscript code. So before you instantiate the box should have something like this

$boxtext = "Some static text or a table or whatever" . "\n";
$boxtext .= "<script type=\"text/javascript\"><!--" . "\n";
$boxtext .= "Your jscript code goes here" . "\n";
$boxtext .= "--></script>" . "\n";

Link to comment
Share on other sites

so at the end of your box file you have something like this; that sets the content of your box:

 

    $info_box_contents = array();
   $info_box_contents[] = array('align' => 'left',
                                'text' => $boxtext);
   new infoBox($info_box_contents);

 

the $boxtext variable (you have some other name probably) should include your jscript code. So before you instantiate the box should have something like this

$boxtext = "Some static text or a table or whatever" . "\n";
$boxtext .= "<script type=\"text/javascript\"><!--" . "\n";
$boxtext .= "Your jscript code goes here" . "\n";
$boxtext .= "--></script>" . "\n";

 

 

 

Hi, Thank you for the reply... But i stil dont know what to put n where.. i'm a real newbie at this.... help me...here is the Code for the Box that i want the adsense to be in

 

<?php

/*

$Id: information.php,v 1.4.2.1 2005/06/12 00:04:40 Michael Sasek Exp $

modified by paulm_nl 2003/12/23

osCMax Power E-Commerce

http://oscdox.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

$boxHeading = BOX_HEADING_COMPETITOR;

$corner_left = 'square';

$corner_right = 'square';

$box_base_name = 'Competitors'; // for easy unique box template setup (added BTSv1.2)

 

$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)

?>

<!-- information bof //-->

<?php

$boxtext = "Some static text or a table or whatever" . "\n";

$boxtext .= "<script type=\"text/javascript\"><!--" . "\n";

$boxtext .= "Your jscript code goes here" . "\n";

$boxtext .= "--></script>" . "\n";

 

 

 

 

 

 

include (bts_select('boxes', $box_base_name)); // BTS 1.5

 

?>

<!-- information eof //-->

Link to comment
Share on other sites

hello thang, I am not too familiar with the bts contrib. There is a variable $boxcontent that is global and appears it should contain the box content.

 

Perhaps someone who is more familiar with bts could help you on this.

Link to comment
Share on other sites

Is all this in the "Banner Manager" I don't see any of this:

catalog\includes\boxes directory

 

Thanks so much! I have just set my adsense up and it's not working - are there other setting besides "banner manager"?

 

Lori

 

hello thang, I am not too familiar with the bts contrib. There is a variable $boxcontent that is global and appears it should contain the box content.

 

Perhaps someone who is more familiar with bts could help you on this.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...