Paul Gu | Blog

sharing is caring

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.

Next Post

Previous Post

15 Comments

  1. Phil June 20, 2007

    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

  2. Paul Gu June 20, 2007 — Post Author

    Hi Phil,

    Try “include()” instead of “include_once()”, let me know the result.

    Paul

  3. Phil June 21, 2007

    Same result. warning division by zero…..and
    failed to open stream…

  4. Paul Gu June 21, 2007 — Post Author

    It works great for my Wiki, are you using different php version?

  5. Phil June 21, 2007

    mediawiki 1.10
    php 5.1.2
    MySQL 4.1.21

  6. Tim July 8, 2007

    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.

  7. Phil July 9, 2007

    That did it, THANKS!

    Phil

  8. Paul Gu July 9, 2007 — Post Author

    Thank Tim for the trick :D.

  9. udi July 13, 2007

    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

  10. Sparky July 22, 2007

    The ads don’t appear, regardless of where I put the tag..

  11. enrique silva August 31, 2007

    doesnt work man!!! what can i do ??? (same as above)

  12. Shadal October 28, 2007

    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

  13. Shadal October 28, 2007

    Please Disregard Previous Comment, I Got It To Work. 🙂

  14. ShadyCraig December 13, 2007

    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

  15. Elly January 26, 2008

    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

Leave a Reply

© 2024 Paul Gu | Blog

Theme by Anders Norén