Ad_injector

karlis - March 27, 2009 - 19:15
Project:Adsense Injector
Version:5.x-2.7
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

WildBill - October 11, 2009 - 06:17

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

 
 

Drupal is a registered trademark of Dries Buytaert.