Guest Posted March 2, 2007 Share Posted March 2, 2007 Hi Guys, We have just installed GOOGLE ADSENSE on our site an wish to display the ads in our left colum. Works great, except for that nasty popup on the SECURE pages. Is there a code I can install before or after the adsense code, that will only allow it to display on the 'unsecure' pages? Thus avoiding this secure/unsecure item popup when a customer goes to checkout etc.. Thanks in advance! Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2007 Share Posted March 4, 2007 Anyone got any ideas on this one? Any help would be great Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2007 Share Posted March 9, 2007 Anyone got any ideas on this one? Any help would be great A week later and still no help? Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 9, 2007 Share Posted March 9, 2007 Place this before the code you added <?php if ($request_type == NONSSL) { ?> and this after it } Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2007 Share Posted March 9, 2007 Place this before the code you added<?php if ($request_type == NONSSL) { ?> <script type="text/javascript"><!-- google_ad_client = "pub-1888471492383680"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text_image"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> } This breaks the store and it wont display. Im adding this to the header.php file. Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2007 Share Posted March 9, 2007 zzzzzzzzzzz, anyone out there? Link to comment Share on other sites More sharing options...
♥FWR Media Posted March 9, 2007 Share Posted March 9, 2007 zzzzzzzzzzz, anyone out there? Zzzzzzz == rude, we are not all here at your beck and call! Jack_mcs tried to help, I'm walking right on past this thread. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 10, 2007 Share Posted March 10, 2007 I put - <?php if ($request_type == NONSSL) { ?> <script type="text/javascript"><!-- google_ad_client = "pub-1888471492383680"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text_image"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> } This breaks the store and it wont display. Im adding this to the header.php file. The last change should be <?php } ?> Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.