Jump to content

Topic on Extension talk:Google AdSense/Archive 2

Extension does not work on MediaWiki 1.37.

4
Costas Athan (talkcontribs)

I have a Mediawiki website, version 1.37, with the Timeless skin. I installed the Google Adsense extension yesterday and it appears listed as it should in Special:Version.


In the LocalSettings.php file I have added the following lines of code:

wfLoadExtension( 'GoogleAdSense' );

$wgGoogleAdSenseClient = 'ca-pub-xxxxxxxxxxxxxxxx';

$wgGoogleAdSenseSlot = 'xxxxxxxxxx';

$wgGoogleAdSenseSrc = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxxx';


When I check the code of different Mediawiki's pages I don't see any Adsense code added, so obviously the extension does not work. Have I done something wrong or does the extension have an issue?

WikiForMen (talkcontribs)
Costas Athan (talkcontribs)

Thanks for the info. I will give it a try.

WikiForMen (talkcontribs)

Good luck. I haven't explicitly tested it with the Timeless skin. So I would be happy about a report. But using Hook SkinAfterPortlet, it should do the job.

After a test, I came to the conclusion that skin Timeless may not support hook SkinAfterPortlet.

Reply to "Extension does not work on MediaWiki 1.37."