Download & Extend

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

Project:Content Injector (formerly AdSense Injector)
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

Category:bug report» support request
Status:active» postponed

No known workaround at this time.

#2

Category:support request» feature request

#3

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

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

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

Link in #3 is dead.

Has anyone got any further with this?

#7

#8

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.

#9

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