Extension:Google AdSense

Description
Enables easy addition of Google AdSense advertisements to a MediaWiki instance. See screenshot and Installation for details. This extension requires an account with Google's AdSense.

Installation
Example settings
 * Download the extension
 * Add the following lines to your LocalSettings.php (replace the text where directed), putting any  globals after the   statement:


 * Add any of the optional settings below, if your settings deviate from the defaults


 * Add the following CSS code to MediaWiki:Common.css (also in file GoogleAdSense.css)
 * Found pBody not working but .body does
 * If you want to add a "Text/image, 200x200" into the vector skin you will need to shift the left panel over slightly. Add the following to the MediaWiki:Vector.css page
 * The description (label) of the portlet can be changed in [[MediaWiki:Googleadsense ]] . Defaults to "Google AdSense".

How to install on Mediawiki prior to 1.14
'''Note: This is not official code and it was tested on 1.13 mediawiki only. Use it at your own risk!'''

Open ./include/Skin.php file and find buildSidebar function at the end.

Insert next code // Port from 1.15 wfRunHooks('SkinBuildSidebar', array($this, &$bar));

prior to if ( $wgEnableSidebarCache ) $parserMemc->set( $key, $bar, $wgSidebarCacheExpiry );

And ads should work.