Guest Posted March 28, 2006 Posted March 28, 2006 Hi everyone, I'll try to make this brief as possible.. But i've reached a block here and I've come here in hopes for help with this issue.. .. So thank you in advance.. This is regarding the use of my banners via osCommerce.. I am currently working with and using Google's Adsense.. And for some reason.. On the banners at the footer.. It is causing a Security Pop Up warning saying, "This page contains both secure and non-secure items" "Do you want to display the non-secure items?" Now this only happens naturally when you click on pages that are SSL.. Like create an account etc.. I've actually tried putting in an if ( !$HTTPS=='on' ) { etc. etc.... in the banner code via banners in admin/tools. But in all my trials.. It's not making the banners disappear on SSL pages.. I was wondering if there is a quick fix for this to put on i guess the banner page it's self in events such as these? If so.. I would greatly appreciate any help.. Thank you again in advance, Christine
petercascio Posted March 28, 2006 Posted March 28, 2006 Are the banners on a secure server? If not then you're going to have that problem. Peter
Guest Posted March 28, 2006 Posted March 28, 2006 Are the banners on a secure server? If not then you're going to have that problem. Peter No.. I imagine not.. Due to the script is coming directly from Google's Adsense servers.. So they would see no need to put them in SSL.. lol But my hopes are to find a way to have the banners disappear when entering into SSL pages when certain banners and scripts apply to this issue.. Such as in this case, Google Adsense.. Thank you :) Christine
HSMagic Posted March 28, 2006 Posted March 28, 2006 There is an Adsense InfoBox contribution that limits Adsense ads to only non-SSL pages. You might try it or look at the code for tips.
Rob123 Posted March 28, 2006 Posted March 28, 2006 Here's an old post of mine from a while back.... http://www.oscommerce.com/forums/index.php?showtopic=129931&hl= Hope it helps, Robert
Guest Posted March 28, 2006 Posted March 28, 2006 Hi Rob, Okay.. I found your post in which you put 2 types of code.. one being php and one to go in with code.. Either way.. I'm still a bit stomped.. Because at this point.. I would like to know what file if any that I should apply this code to.. Keep in mind, I am working with the on board banner manager.. And I even went as far as to place the code in with the GOOGLE html already in place and hit update.. Didn't work.. Naturally.. But at this point.. I'll try anything.. LOL HTML Tag Code that you Provided: <?php if ($request_type != 'SSL') { ?> Your Google provided javascript goes here... <?php } ?> PHP Code that you provided: if ($request_type != 'SSL') { ?> Your Google provided javascript goes here... <?php } I think we may be on to something here.. But I just need to know where this should be placed.. I'm assuming banner_manager.php.. But not sure where to put without hours of trial and error and more frustration.. lol Thanks so much for all of your help also btw.. It's much appreciated! :) Christine
Recommended Posts
Archived
This topic is now archived and is closed to further replies.