Dear William and others involved with this module,

I installed this module a week ago. I was looking for a way to monetize my non-profit web site to pay for server costs. A lot of people complained about the AdSense banner at the top of the page, so it seems like the Adsense Injector module would be the best bet for my web site (a lot less intrusive).

OK, here's the thing. I have experimented with both this Adsense Injector module and also the AuctionAds module (which displays ads from auctionads.com). I really love Google Adsense, I'd prefer to use Google Adsense on my web site. The problem though is the placement of the ads with the AuctionAds module is correct for my web site, while I can't seem to get the ads from the Google Adsense Injector module where I need them to go.

I attached a screen shot to this issue to show you what I mean. At the top of the screen shot it shows the ideal positioning of the ad with the AuctionAds module, while the bottom of the screen shot shows the incorrect positioning of the ad with the Google Adsense Injector module.

I think the difference may be that the AuctionAds module gives the option of setting the weight for the ads, so I set the weight to be "-20" in the node body. I have tried looking at the code in several files, including: node.module, adsense_injector.module, auctionads.module, and others. I'm not coder, and I feel disappointed in myself that I'm unable to find a way to get the Google ads to position like the AuctionAds ads. :( Because my web site is poetry web site, I don't want to disrupt the flow of the poem, so that's why I need the ad to be at the very top of the page. I even tried supplementing the Google Adsense code into the AuctionAd module, but that just caused a parse error.

Can you please give any suggestion on how I can make the Google ads from Google Adsense Injector go to the top of the node please? Is there anyway to set a "weight" for the Google Ads like with the AuctionAds module?

Please note, I'm not by any means trying to say that the AuctionAds module is a better module than this one, I simply am just concerned with how to get the Google ads to appear at the top of the node. I'll be so happy if I can get this to work somehow.

CommentFileSizeAuthor
auctionads-googleadsenseinjector.png89.34 KBenthusaroo

Comments

mcurry’s picture

Category: feature » support
Priority: Critical » Normal
Status: Active » Closed (works as designed)

Well, I've used this module to inject ads at the top of each node's content without any trouble. If all one wants to do is place an ad just above the node body, a template like this should do the trick:

[adsense:468x60:1:1]<br/>%body

With regards to placing an ad next to the user avatar, this is a theme-specific issue and I can't really offer much help -- and I can't see how this is a feature request because: AdSense Injector's sole purpose is to allow you to inject AdSense ads (or any other text/html) somewhere before or after the node's body or teaser (and, perhaps soon, inject into the middle of the node's body or teaser) -- but not anywhere else. The location of the author's avatar is completely dependent on the theme implementation and has nothing to do with the node body or teaser.

If you are skilled in the use of CSS and HTML, you *may* be able to do what you want via AdSense InJector - it's all a matter of how the node content is constructed - a look at your theme's node.tpl.php may be helpful. And, if AdSense Injector cannot be made to do what you want quickly and easily, it may be much simpler to modify node.tpl.php directly rather than rely on AdSense Injector.

In conclusion, as a 'feature request' this is completely outside the limited scope of the AdSense Injector module as presently designed and implemented. If you are looking for custom theming or template assistance, you might want to ask around on the support forums.

Good luck!

mcurry’s picture

Status: Closed (works as designed) » Closed (fixed)