Navigation | Google AdSense 1.7 is released

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.

Filed by Paul Gu at May 17th, 2007 under MediaWiki

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

Comment by Phil — June 20, 2007 @ 4:07 pm

#1

Hi Phil,

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

Paul

Comment by Paul Gu — June 20, 2007 @ 10:07 pm

#2

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

Comment by Phil — June 21, 2007 @ 12:13 am

#3

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

Comment by Paul Gu — June 21, 2007 @ 5:08 am

#4

mediawiki 1.10
php 5.1.2
MySQL 4.1.21

Comment by Phil — June 21, 2007 @ 8:58 am

#5

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.

Comment by Tim — July 8, 2007 @ 10:40 pm

#6

That did it, THANKS!

Phil

Comment by Phil — July 9, 2007 @ 10:44 am

#7

Thank Tim for the trick :D .

Comment by Paul Gu — July 9, 2007 @ 5:33 pm

#8

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

Comment by udi — July 13, 2007 @ 3:39 pm

#9

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

Comment by Sparky — July 22, 2007 @ 3:46 pm

#10

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

Comment by enrique silva — August 31, 2007 @ 12:48 pm

#11

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

Comment by Shadal — October 28, 2007 @ 6:03 pm

#12

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

Comment by Shadal — October 28, 2007 @ 6:27 pm

#13

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

Comment by ShadyCraig — December 13, 2007 @ 7:49 am

#14

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

Comment by Elly — January 26, 2008 @ 7:28 pm

#15