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.

15 Responses

  1. Phil says:

    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 says:

    Hi Phil,

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

    Paul

  3. Phil says:

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

  4. Paul Gu says:

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

  5. Phil says:

    mediawiki 1.10
    php 5.1.2
    MySQL 4.1.21

  6. Tim says:

    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 says:

    That did it, THANKS!

    Phil

  8. Paul Gu says:

    Thank Tim for the trick :D.

  9. udi says:

    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 says:

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

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

  12. Shadal says:

    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 says:

    Please Disregard Previous Comment, I Got It To Work. :)

  14. ShadyCraig says:

    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 says:

    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