17
May
2007
Google AdSense 1.7 is released
This is the new version of my Google AdSense extension for mediawiki. This version has fixed all the issues and bugs that have been reported.
The most important feature added is that it comes with a settings file which is one place for configuration of your AdSense. Go to my Wiki, and it’s under Projects.
Hope you enjoy this great extension.


I tried to use your adsense extension but the change to the localsettings.php file causes errors. I just upgraded to 1.10 specifically to try to integrate adsense. I’m not a php person, so I put it in just as you have in on your website. I’d appreciate an email back with how to resolve.
Thanks,
Phil
Hi Phil,
Try “include()” instead of “include_once()”, let me know the result.
Paul
Same result. warning division by zero…..and
failed to open stream…
It works great for my Wiki, are you using different php version?
mediawiki 1.10
php 5.1.2
MySQL 4.1.21
I had the same issue changed the double quotes to single and all works fine.
The code i used is;
include_once(‘extensions/GoogleAdSense/GoogleAdSense.php’);
Hope that helps.
That did it, THANKS!
Phil
Thank Tim for the trick
.
Sorry for the lame question, can someone explain how to integrate this into a skin? where shold I plug the WIKI tag inside monobook?
thanks,
Udi
The ads don’t appear, regardless of where I put the tag..
doesnt work man!!! what can i do ??? (same as above)
I’m getting the error:
Warning: include(extensions/GoogleAdSense/GoogleAdSense.php) [function.include]: failed to open stream: No such file or directory in /home/shadal/public_html/joovilihacks/LocalSettings.php on line 128
Warning: include() [function.include]: Failed opening ‘extensions/GoogleAdSense/GoogleAdSense.php’ for inclusion (include_path=’/home/shadal/public_html/joovilihacks:/home/shadal/public_html/joovilihacks/includes:/home/shadal/public_html/joovilihacks/languages:.:/usr/lib/php:/usr/local/lib/php’) in /home/shadal/public_html/joovilihacks/LocalSettings.php on line 128
Warning: Cannot modify header information – headers already sent by (output started at /home/shadal/public_html/joovilihacks/LocalSettings.php:128) in /home/shadal/public_html/joovilihacks/includes/WebResponse.php on line 10
Warning: Cannot modify header information – headers already sent by (output started at /home/shadal/public_html/joovilihacks/LocalSettings.php:128) in /home/shadal/public_html/joovilihacks/includes/WebResponse.php on line 10
Please Disregard Previous Comment, I Got It To Work.
Hi Paul,
your extension looks great and I’m thinking of using it but I have a couple of (easy) questions first!
I can see that you can add the keyword in the wikitext area, but I’d like to show the ads elsewhere (eg the right hand sidebar), can I do that?
If so do I need to add something to the skin, eg monobook.php or can I do this across all skins simultaneously?
Thanks,
ShadyCraig
Just to say this is great! I am a beginner with MediaWiki.
The extension worked after the first try.
Maybe a small suggestion on the explanation: that one should make a
channel on adsense with the name “WIKI” first.
Thank you!
Elly