Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a few conten types without body. So the adsense won't display...
Comments
Comment #1
Dabitch CreditAttribution: Dabitch commentedIn /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.
Comment #2
Dabitch CreditAttribution: Dabitch commentedSorry, 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
Comment #3
mcurry CreditAttribution: mcurry commentedMoving 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.
Comment #4
Stomper CreditAttribution: Stomper commented+1 as instructed
Comment #5
mcurry CreditAttribution: mcurry commented@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...
Comment #6
HFlame7 CreditAttribution: HFlame7 commented+1
Comment #7
Stomper CreditAttribution: Stomper commentedI'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.
Comment #8
Stomper CreditAttribution: Stomper commentedIs 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?
Comment #9
wiremuse CreditAttribution: wiremuse commented+1
Comment #10
js_kiran CreditAttribution: js_kiran commented+1
Comment #11
cj-a-min CreditAttribution: cj-a-min commented+1
Comment #12
drein CreditAttribution: drein commented+1
Comment #13
schildi CreditAttribution: schildi commented+1 for biblio fields
Comment #14
uno CreditAttribution: uno commentedoffcourse +1
Comment #15
Summit CreditAttribution: Summit commented+1, greetings, Martijn
Comment #16
ricksher CreditAttribution: ricksher commented+1 : created an online drupal account for that purpose as it's such an issue . . .
Comment #17
mcurry CreditAttribution: mcurry commentedWell, 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:
But this would become pretty unwieldy in the admin settings interface, so that's going to be a pretty big change.
Comment #18
diego.pasc CreditAttribution: diego.pasc commented+1
Comment #19
marinex CreditAttribution: marinex commented+1
Comment #20
karlre1 CreditAttribution: karlre1 commented+1
Comment #21
Greg BoggsBumping the priority due to the large response.
Comment #22
likewhoa CreditAttribution: likewhoa commented