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

Issue Summary

This module is based on Adsense Injector. We don't use Adsense becuase
Google doesn't approve of our business. Instead we use openads (phpadsnew,
openx, whatever their marketing team calls it now). We wanted to be able to
do the same thing, inject an ad into page content with openads or any other
ad content. There's a few additional modifications. You can choose how far
down, in words, in the content you want the ad. The module will look for
the first '\n' after the word count you specify, and put the ad there.

The node body ad content we inject looks like this:

<div style="float: right">
<?php
print openads_invoke(3);
?>

<div style="text-align: center;font-size: 80%; font-weight: normal;"><a
href="/advertise">Advertisement</a></div>
</div>

and the input format is set to php code. We're using the openads module,
but you could just as easily use some javascript invocation code, or
whatever your ad server requires.

Although the options for teaser lists are there, this part isn't presently working.

Hopefully someone finds this useful . . . .

AttachmentSize
ad_injector.tar_.gz10.14 KB

Comments

#1

Wow, this is exactly what I would need. Does anyone know if it works for (or can be ported to) Drupal 6?

#2

Version:5.x-2.7» 6.x-2.x-dev

Moving to 6.x dev, since 5.x is no longer supported.

#3

Status:active» closed (won't fix)

Nice fork. Superseded by recent development efforts, though.

nobody click here