August 4, 2006
WordPress Plugin - Adsense Inline
Need an Adsense plugin that just display Adsense ads only for the first post in your blog’s home page like you see here in this blog. Then use Adsense Inline. I discovered this plugin last week and is currently using it but not without an initial problem.
All this while before Adsense Inline, I had been using another Adsense plugin called Adsense Delux. This is a good plugin , however I also wanted just to display Adsense ads after my first post in my blog’s front page as I had sen in other people blogs. And I can’t do that with Adsense Delux as the plugin comes with a global setting where you either select ads to be shown or not shown in the home page. I then tried to fiddle around but in the end gave up unitl I read Joel Comm’s free ebook.
In Joel Comm’s free ebook “Getting Started With Blogging and Google Adsense ” he mentioned about Adsense Inline. Being curious I visited Phil Hord’s site and found that others had submmitted modify version of the plugin that does exactly what I had been wanting
.
The code that I used was provided by a Mike Hillyer but with some modification which I will mentioned below. However as I said earlier I did not get off to a smooth start.
What happened was that when using Adsense Inline, the plugin will insert “< ! --adsense-->” and this happens to be same as the default value inserted by Adsense Delux. So there’s a conflict. So when I use Adsense Inline, I found that Adsense ads will not show in the front page if I set “not to display ads in home page” in Adsense Delux.
After fiddling a while, this is resolved after making two simple changes to two values in the Adsense Inline file adsense.php. This is what I did.
- First look for the $tag value. It is almost at the top of the file before your Adsense ad code. Then change the $tag value to some other name other that adsense. I changed mine to adsenseInline.
- Next look for this value, edInsertContent(edCanvas, ‘< !-'+'-adsense-'+'->‘);. It is almost at the end of the file and change the value adsense to the same value as the $tag.
That’s all and now you can use Adsense Inline with Adsense Delux together without conflict
.
Adsense Inline plugin can be downloaded from Phil Hord’s site. The installation is provided in the same page. To use the modify code look for Mike Hillyer posted comments on the 21st March 2005 ( Wow that’s how long the plugin had been active and I knew nothing about it until now).
Technorati Tags: Adsense+Inline+plugin, Adsense, WordPress+plugin, Joel+Comm










