A. injector don't show ads if CCK without body field is used

igorik - June 13, 2007 - 21:13
Project:Adsense Injector
Version:5.x-2.5
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

Hi

Adsense injcector insert ads into body field, but there is option that user use his/her own CCK content type without body field.
So - there will be to add option write name of own CCK field instead body

e.g. instead %body
[adsense:468x60:1:1]
>>>> %name_of_my_own_field_in_my_cck_content_type
[adsense:468x60:1:1]

Thanks for your great module
Igor
somvprahe.sk

#1

grateful_drupal_user - August 7, 2007 - 00:58
Category:bug report» support request
Status:active» postponed

No known workaround at this time.

#2

grateful_drupal_user - August 7, 2007 - 00:58
Category:support request» feature request

#3

eljustino - August 8, 2007 - 17:22

Igor,

Depending on your needs and situation, you might be able to get that working with just some small modifications to the adsense_injector.module file. I had the same issue and got it working. Take a look here:

http://www.nerdliness.com/article/using-adsense-injector-cck

Justin

#4

grateful_drupal_user - August 9, 2007 - 00:26

Beautiful, thanks for that. I'll look into a generic fix for this as soon as I can. Meantime, patches are always welcome.

Nice site, by the way.

:D

#5

eljustino - August 9, 2007 - 02:59

My pleasure. Hope it helps others out there.

If you don't get to it first, I might play around with making it recognize different fields in different custom content types... For instance, my article type has four fields: a title, subtitle, body, and references. Don't think it would be too hard to modify the code you already have in place to pull a list of the fields associated with a specific custom content type and let you use them to inject the ads, even using the same %body type notation you've got for simplicities sake...

And thanks for the props on our site. It's still coming together, but we're getting there.

Justin

#6

JConnell - March 4, 2008 - 00:37

Link in #3 is dead.

Has anyone got any further with this?

#7

eljustino - November 27, 2008 - 19:21
 
 

Drupal is a registered trademark of Dries Buytaert.