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

Comments

mcurry’s picture

Category: bug » support
Status: Active » Postponed

No known workaround at this time.

mcurry’s picture

Category: support » feature
eljustino’s picture

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

mcurry’s picture

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

eljustino’s picture

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

JConnell’s picture

Link in #3 is dead.

Has anyone got any further with this?

eljustino’s picture

mcurry’s picture

Version: 5.x-2.5 » 6.x-2.x-dev
Status: Postponed » Closed (duplicate)

Duplicate of #257406: Support content type without body field..
Moving to 6.x since 5.x is no longer supported.

ricksher’s picture

Hi eljustino, what was the modification you did? -Rick