Hello,
is it possible to integrate a function letting ads shown between the teaser and the bodytext? Ads should be included in nodes automatically.
Another way: The Admin can decide after how many words ads should be displayed in a node.
I hope you understand my issue.
Greets.
Comments
Comment #1
kbahey commentedI understand your question.
My initial thinking was to change node.module to put the add between the teaser and the body.
However, it is somewhat complicated in reality. It is sometimes created from
. If that does not exist, then it is by number of characters, which is configurable by the admin.
So, adding an ad can be done, but requires changes to node.module in a way similar to how teasers are created.
Perhaps writing a filter that scans the body for a certain tag (for example:
) and replace it with the output from adsense_display() would be the best way for this?
I am leaving this issue open in case someone can provide a patch for it.
Comment #2
kbahey commentedI addressed this by introducing a filter that allows ads to be displayed anywhere in the content using special tags.
The tags can call adsense_display() directly, or use flexiblock for doing that.
Comment #3
In Extremo commentedGood News! Thank you
Comment #4
(not verified) commented