I have a few conten types without body. So the adsense won't display...

Comments

Dabitch’s picture

In /admin/settings/adsense_injector at the Node body ad insertion option set "Minimum node body word count:" to be 0 and you're all set.

Cheerio.

Dabitch’s picture

Sorry, that is assuming that you have a Body field" in the content type that you are talking about. Otherwise your post is likely a double of this one where there is some interesting discussion: "A. injector don't show ads if CCK without body field is used" http://drupal.org/node/151604

mcurry’s picture

Title: Content type without body » Support content type without body field.
Version: 5.x-2.5-1 » 6.x-2.x-dev
Component: User interface » Code
Category: support » feature

Moving to 6.x dev, since 5.x is no longer supported.
This is a feature request, since the module is known not to work without a node body.

Stomper’s picture

+1 as instructed

mcurry’s picture

@Stomper:

Thanks for the +1 vote.

@All:
If anyone is interested, I've added a poll to my project homepage. What SINGLE new Adsense Injector feature is most important? Feel free to visit and register your opinion...

HFlame7’s picture

+1

Stomper’s picture

I've tried pasting in the PHP AdSense code from the Adsense module into the tpl.php of the content types I want the ads to show in, it still does not work. The content types do not have a body field, only custom CCK fields.

Stomper’s picture

Is it possible that there is a conflict between the core Adsense module and Adsense Injector? If I go with the inserted PHP code as suggested by Adsense core, does that mean I still need Adsense Injector enabled too?

wiremuse’s picture

+1

js_kiran’s picture

+1

cj-a-min’s picture

+1

drein’s picture

+1

schildi’s picture

+1 for biblio fields

uno’s picture

offcourse +1

Summit’s picture

+1, greetings, Martijn

ricksher’s picture

+1 : created an online drupal account for that purpose as it's such an issue . . .

mcurry’s picture

Well, seems to be the most popular feature request. Before I try to tackle this, we should work up some kind of mini-spec.

I think at a minimum, the module should allow admins to specify the CCK field name to be used instead of the standard node body.

Is it truly necessary to allow specifying this on a per content type basis, or can it be global? It's starting to look like it would be useful (though complicated) to be able to specify everything per content type:

  • Minimum word count
  • Insertion templates
  • Field to use for insertion (if not node->body)
  • XPath expression

But this would become pretty unwieldy in the admin settings interface, so that's going to be a pretty big change.

diego.pasc’s picture

+1

marinex’s picture

+1

karlre1’s picture

+1

Greg Boggs’s picture

Priority: Normal » Major

Bumping the priority due to the large response.

likewhoa’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Issue summary: View changes