Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Google AdSense

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
degt
Posts:5



06/26/2007 9:58 AM  

Anybody got Google AdSense working on DNN 4.5? I added a Text/HTML module and in there I pasted the Google AdSense code in the Header part of the module. No matter what I do the module does not display the ads.

I see there is a JavaScript error that happens only when the Google code is included. The GCode is correct because it is exactly as it is being used in my regular pages (yes I triple checked). I was told that happened if I had an older AJAX Extensions DLL that caused that problem. However, when I checked the DLL version on the webhost's DNN bin directory, it showed it was the correct AJAX version.

Any other ideas?

John Mitchell
Posts:3241



07/04/2007 5:32 PM  

There's a post on the ASP.Net forums that has a work-around.

Put this JS in the Module along with the Adsense JS:

<scripttype="text/javascript"><!--Date.__cyril_parse = Date.parse; 
Date.parse = function(s){
    try {
        return Date.__cyril_parse(s);
    } catch (e){
        var d = Date._jsParse(s);
        if (d) {
            return d; 
        } else {
            throw e;
        } 
    }
}// --></script>
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.




ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information