Google AdSense On SSL Pages
Google Adsense is an excellent advertising program that allows you to get paid when people click ads on your site. Integrating Google Adsense into your 68 Classifieds site is very simple and just requires you to get their javascript code and paste it into a template file.
Although it is easy to integrate you should keep in mind that it currently does not support SSL invocation. Meaning if you place it on a page that is accessed by SSL you will get a security warning saying the page may not be secure.
Although you may place the AdSense ad code on a page using Secure Socket Layers, we do not currently offer an https version of the AdSense ad code at this time. Therefore, you may see a message asking for confirmation to load all items on the page when placing the AdSense ad code on secure https pages.
The only way to get around this is to add a Smarty if statement around the javascript code like this:
{if $smarty.server.SERVER_PORT != '443'}
//place ad code here
{/if}
What this does is check what port your website is currently on (port 443 is generally SSL) and if it is not an ssl page then display the ads. If you are not using an SSL then you do not need to make any changes and can run the ads as normal.









