Thread:User talk:Siebrand/How to make GoogleAdsense 2 display ads on content pages only/reply (2)

Thanks for the tips. However, modifying robots.txt for this particular purpose alone sounds to me a less than an ideal solution. I'm not quire sure how to create a patch. However, adding the following in GoogleAdSense.class.php this seems to do the trick:

global $wgTitle; if ($wgTitle->getNamespace != 0) {

return $bar; }