Closed (fixed)
Project:
Content Injector (formerly AdSense Injector)
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Feb 2007 at 20:03 UTC
Updated:
31 Mar 2007 at 22:45 UTC
This is a great module, thanks! One thing I would like to see is the ability to inject a block at the end of an article, either right before or right after the links.
Comments
Comment #1
Oceria commentedYou can quite easily put the advertisement at the end of the text yourself.
First edit adsense_injector.module:
Go to line 95 and move that to line 87. The code becomes:
In other words: ". $oldBody" moves from the last line (inserting it after the ad) to the first line (inserting it in front of the ad).
Then edit your settings a bit. You might wanna remove the floating declaration. It works for me:
http://test.hetziekenhuis.net/extreme_makeover
Comment #2
mcurry commentedPlease don't change issue titles.
I will be committing a change to the drupal-5 version soon, that will allow injection at end as well as front. It's already committed to the Drupal-4-7 branch. Stay tuned.
Comment #3
mcurry commentedI've committed modifications to CVS that provide this capability. Please try the 5.x-2.5 or later release, and please read the documentation for examples.
General: http://drupal.org/node/121883
Configuration: http://drupal.org/node/128759
Template tricks: http://drupal.org/node/128767
Comment #4
(not verified) commented