googifts Posted September 3, 2005 Share Posted September 3, 2005 Hi, I dont know where i need to put the google adsense js code... to make it appear in a BOX on my side bar. Someone please help thank you Link to comment Share on other sites More sharing options...
Guest Posted September 3, 2005 Share Posted September 3, 2005 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 More sharing options...
googifts Posted September 3, 2005 Author Share Posted September 3, 2005 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) <{POST_SNAPBACK}> 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 More sharing options...
Guest Posted September 3, 2005 Share Posted September 3, 2005 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 More sharing options...
googifts Posted September 3, 2005 Author Share Posted September 3, 2005 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"; <{POST_SNAPBACK}> 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 More sharing options...
Guest Posted September 3, 2005 Share Posted September 3, 2005 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 More sharing options...
LStellar Posted September 6, 2005 Share Posted September 6, 2005 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. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.