adsense_injector 7.x-3.1-alpha2
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-7.x-3.1-alpha2.tar.gz | 16.16 KB | 8bc5baaab6e55f1156190e60077a4a16 |
| adsense_injector-7.x-3.1-alpha2.zip | 18.3 KB | 4b3c6d329661e31e0c1cc368dec363bc |
Release notes
#1341094: Port inline content insertion to 7.x branch. - Porting 6.x-3.x branch features to the 7.x branch.
This release is the second alpha release of the 6.x-3.x branch features (true in line content insertion using xPath expressions.)
First-time users
If you are using this module for the first time, you can install the module and start using it. Otherwise, please read on...
Upgrading from 7.x-1.x (or 6.x-1.x) versions
Before upgrading from 7.x-1.x (or 6.x-1.x) to this version, please make a copy of your node body insertion template and other settings. The module's configuration settings schema has changed, and your old settings will not be migrated automatically. You must edit and re-enter your node body insertion template.
Read moreadsense_injector 7.x-3.x-dev
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-7.x-3.x-dev.tar.gz | 15.48 KB | 3679fe2d6ba65c7f5b5b6c62244e7fcd |
| adsense_injector-7.x-3.x-dev.zip | 17.52 KB | 00bfa52246b33f713b3639de25394b8b |
Release notes
#1341094: Port inline content insertion to 7.x branch. - Porting 6.x-3.x branch features to the 7.x branch.
Upgrading from a prior version
Before upgrading this version, please make a copy of your node body insertion template and other settings. The module's configuration settings storage has changed, and your old settings will not be migrated automatically. You will have to edit and re-enter your node body insertion template.
If you encounter any difficulties after upgrading to the 7.x-3.x branch (see #1342142: Cannot configure node body insertion template settings after upgrade to 6.x-3.0 for the typical scenario), disable and uninstall this module (I've added an uninstaller that removes all the old module settings variables, which should correct any configuration problems. As noted above, you'll have to re-create your body insertion templates. Normally, I'd advise you to use the "reset to defaults" button in the module setting form, but in order to make the world a safer place for careless admins, Drupal 7 core no longer has this necessary feature. As is the usual Drupal Way, you can correct this omission by installing the settings reset button contributed module.
adsense_injector 6.x-3.1
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-3.1.tar.gz | 17.52 KB | 4b7272860678500726682754c22c2b01 |
| adsense_injector-6.x-3.1.zip | 19.95 KB | 893841df280d3c4ba40a687fa455364f |
Release notes
Fixes for #1383494: Node enable/disable and minimum word count settings non-functional and workaround for #1342142: Cannot configure node body insertion template settings after upgrade to 6.x-3.0.
#1383494: Node enable/disable and minimum word count settings non-functional by mcurry: Node enable/disable and minimum word count settings
non-functional. Variable names were mangled during the 3.x modifications.
#1342142: Cannot configure node body insertion template settings after upgrade to 6.x-3.0 by mcurry: Add hook_uninstall() implementation to .install file.
adsense_injector_uinstall() deletes all variables starting with
'adsense_injector'.
adsense_injector 6.x-3.0
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-3.0.tar.gz | 16.96 KB | 2e018a38bc46187f708564ff846064e2 |
| adsense_injector-6.x-3.0.zip | 19.32 KB | fe1d66e922c4add2421d689d7fc9d608 |
Release notes
OVERVIEW
This version integrates a number of features I've been working on over the last year or so. It is intended to address issue #141096: Inject adsense into content and #1301610: Remove AdSense module dependency, and provide a platform for ongoing new feature development.
If you are upgrading from 6.x-2.x versions, please read the known issues/installation notes, below!
MAJOR NEW FEATURES as of October 6, 2011
- Now supports XPath-based insertion for inline ad insertion.
The default XPath expression is /html/body/p[3] which will insert the inline ad insertion template *after* the third paragraph of the node body, at the root level. This avoids insertion inside nested (descendant) elements.
At present, insertion is always done using ->appendChild() method of the element returned as a result of the XPath expression. This means that it's impossible to insert _before_ the found element. This limitation may be lifted in a future release.
- "Top" and "bottom" insertion.
You can now specify "TOP" and "BOTTOM" insertion templates, which will be inserted at the top or bottom of the node body, respectively. This method uses the body's 'content' fields with weights (top = -6, and bottom = 10).
There is no way to alter these weights via the adsense_injector admin settings page, but you can set the variables 'adsense_injector_front_weight' and 'adsense_injector_back_weight' manually if you like. (Note: These variable names are likely to change in the future if and when these weights are exposed via the admin settings page.)
- Manual (per-node) insertion point control.
Now supports manual insertion point selection (using a new [ai:insertion:inline] tag). The 'inline' template will be inserted at the point where this tag appears.
- Manual blocking of injection on a per-node basis:
Now supports manual "no inject" (using the comment or other occurance of 'ai:noinject' within first 512 characters of node body.)Note that HTML comments are filtered out by the HTML filter and other filters, so you might need to use something like
or any other HTML tag allowed by the node's input filter. (Oh, it would be so nice if Drupal's core HTML filter and HTML Corrector filter allowed HTML comments to pass through...)
See: #222926: HTML Corrector filter escapes HTML comments
and #103563: HTML filter escaping html comments - Removed AdSense module dependency.
That's right, you don't need the AdSense module to use AdSense Content Injector. If you don't have the AdSense module enabled, you won't be able to use the [adsense:xxx] tags in your templates. You can use raw JavaScript to inject Google AdSense ads. Your choice.
See: #1301610: Remove AdSense module dependency
adsense_injector 6.x-3.x-dev
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-3.x-dev.tar.gz | 15.77 KB | b87ca56cd13b53b99488aee1834b896f |
| adsense_injector-6.x-3.x-dev.zip | 17.87 KB | 70eddfb92b7b6df7fe450badae7ec7ed |
Release notes
OVERVIEW
This version integrates a number of features I've been working on over the last year or so. It is intended to address issue #141096: Inject adsense into content and #1301610: Remove AdSense module dependency, and provide a platform for ongoing new feature development.
If you are upgrading from 6.x-2.x versions, please read the known issues/installation notes, below!
MAJOR NEW FEATURES as of October 6, 2011
- Now supports XPath-based insertion for inline ad insertion.
The default XPath expression is /html/body/p[3] which will insert the inline ad insertion template *after* the third paragraph of the node body, at the root level. This avoids insertion inside nested (descendant) elements.
At present, insertion is always done using ->appendChild() method of the element returned as a result of the XPath expression. This means that it's impossible to insert _before_ the found element. This limitation may be lifted in a future release.
- "Top" and "bottom" insertion.
You can now specify "TOP" and "BOTTOM" insertion templates, which will be inserted at the top or bottom of the node body, respectively. This method uses the body's 'content' fields with weights (top = -6, and bottom = 10).
There is no way to alter these weights via the adsense_injector admin settings page, but you can set the variables 'adsense_injector_front_weight' and 'adsense_injector_back_weight' manually if you like. (Note: These variable names are likely to change in the future if and when these weights are exposed via the admin settings page.)
- Manual (per-node) insertion point control.
Now supports manual insertion point selection (using a new [ai:insertion:inline] tag). The 'inline' template will be inserted at the point where this tag appears.
- Manual blocking of injection on a per-node basis:
Now supports manual "no inject" (using the comment or other occurance of 'ai:noinject' within first 512 characters of node body.)Note that HTML comments are filtered out by the HTML filter and other filters, so you might need to use something like
or any other HTML tag allowed by the node's input filter. (Oh, it would be so nice if Drupal's core HTML filter and HTML Corrector filter allowed HTML comments to pass through...)
See: #222926: HTML Corrector filter escapes HTML comments
and #103563: HTML filter escaping html comments - Removed AdSense module dependency.
That's right, you don't need the AdSense module to use AdSense Content Injector. If you don't have the AdSense module enabled, you won't be able to use the [adsense:xxx] tags in your templates. You can use raw JavaScript to inject Google AdSense ads. Your choice.
See: #1301610: Remove AdSense module dependency
adsense_injector 7.x-1.x-dev
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-7.x-1.x-dev.tar.gz | 11.66 KB | 0b4a8cf6b353df0f787ecb418035d5b6 |
| adsense_injector-7.x-1.x-dev.zip | 13.69 KB | 955e83790cce407962875ccf93045b9c |
Release notes
Initial Drupal 7 version. Not well tested (I've only tested it on one Drupal 7 installation).
adsense_injector 5.x-2.8
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.8.tar.gz | 9.43 KB | 3b143e5d6626cdc0a35399b420a4aac4 |
| adsense_injector-5.x-2.8.zip | 10.78 KB | daf3653ec98f24ce20c68d106fcc79ea |
Release notes
Fixes for issue #354985: Front page (and view) body/teasers are shown twice..
There may have been other changes to the 5.x branch prior to my resuming module ownership; please review the 5.x-2.x changelog for more information.
adsense_injector 6.x-2.7
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-2.7.tar.gz | 9.99 KB | 5eea0a0f94281b52c76859a2bcbf1d94 |
| adsense_injector-6.x-2.7.zip | 12.2 KB | c0d4db658b25b1242ab30e08c5193386 |
Release notes
- we skip 6.x-2.6 final release as sync with that of 5.x.
- reset system weight. (#123972: Adsense Injector and paging)
- simplify legacy _adsense_injector_count_words().
- simplify legacy _adsense_injector_minwords_cfg().
- bugfix ultra long variable name (admin setting need reset). (#174705: Modify node type configuration storage to use a serialized collection stored in one variable rather than long variable names)
- remove fancy notice if no node type selected.
- bugfix list view based on previous code cleanup.
- cleanup variable names (admin setting need reset).
- default templates with new AdSense tag style.
- remove redundancy adsense module checking.
- adsense_injector_nodeapi() revamp for simpler programming logic.
- completely upgrade and port to D6.
- version number starting with 2.6 (sync with D5).
- tested with adsense 6.x-1.0-beta3.
- renew hook_menu(). D6 coming with new implementation.
- watchdog() no longer require for t().
- hook_nodeapi() coming with new implementation for D6.
- split admin related hook_settings() to adsense_injector.admin.inc.
- retouch adsense_injector.info so group this module with Adsense.
- coding style cleanup.
- validate code with coder module.
- add more documentation.
- clean up license and developer information.
- document project owner and co-maintainer.
- remove legacy admin setting paypal banner.
- remove legacy _dbg().
adsense_injector 5.x-2.7
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.7.tar.gz | 9.47 KB | 94819d4b5a23d8a88a91caee6631b7a6 |
| adsense_injector-5.x-2.7.zip | 11.02 KB | eb501ea41efb33de311dde772b20bb03 |
Release notes
- sync with 6.x-2.7.
adsense_injector 6.x-2.6-rc2
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-2.6-rc2.tar.gz | 9.18 KB | eca6dd6ae994d218dea395bbb3b50689 |
| adsense_injector-6.x-2.6-rc2.zip | 10.99 KB | db7fdee73daf331e71cf37acf582c3cb |
Release notes
- simplify legacy _adsense_injector_count_words().
- simplify legacy _adsense_injector_minwords_cfg().
- #174705: bugfix ultra long variable name (admin setting need reset).
- remove fancy notice if no node type selected.
- bugfix list view based on previous code cleanup.
- cleanup variable names (admin setting need reset).
- default templates with new AdSense tag style.
- remove redundancy adsense module checking.
- adsense_injector_nodeapi() revamp for simpler programming logic.
adsense_injector 6.x-2.x-dev
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-2.x-dev.tar.gz | 9.96 KB | a6c883dc66803d9ef55de617a2a8cd20 |
| adsense_injector-6.x-2.x-dev.zip | 11.91 KB | 13bb32106bd86e39c90fd9d404b3c2da |
Release notes
6.x-2.x-dev snapshot.
adsense_injector 5.x-2.x-dev
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.x-dev.tar.gz | 9.42 KB | 0c0c24a1799a0a9a21d81e7846ad6e75 |
| adsense_injector-5.x-2.x-dev.zip | 10.78 KB | e8109d4cc9ab528bae1e9a60c610ba34 |
Release notes
5.x-2.x-dev snapshot.
adsense_injector 6.x-2.6-rc1
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-2.6-rc1.tar.gz | 9.43 KB | c13f4bae5ac694d923df8274b6d11aee |
| adsense_injector-6.x-2.6-rc1.zip | 11.19 KB | 12f77cd414824edaf07c6948cdcebbf7 |
Release notes
- completely upgrade and port to D6.
- version number starting with 2.6 (sync with D5).
- tested with adsense 6.x-1.0-beta3.
- renew hook_menu(). D6 coming with new implementation.
- watchdog() no longer require for t().
- hook_nodeapi() coming with new implementation for D6.
- split admin related hook_settings() to adsense_injector.admin.inc, as D6 style.
- retouch adsense_injector.info so group this module with Adsense.
- coding style cleanup.
- validate code with coder module.
- add more documentation.
- clean up license and developer information.
- document project owner and co-maintainer.
- remove legacy admin setting paypal banner.
- remove legacy _dbg().
adsense_injector 5.x-2.6
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.6.tar.gz | 9.1 KB | d75e0b70732f14927fbad2c4a15a1561 |
| adsense_injector-5.x-2.6.zip | 10.25 KB | 8a3bf26858a276feebe84ab08a565561 |
Release notes
- sync with 6.x-2.x-dev.
adsense_injector 6.x-1.x-dev
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-6.x-1.x-dev.tar.gz | 9.38 KB | 99e4df57eacab72411d47f5744ee95cc |
| adsense_injector-6.x-1.x-dev.zip | 10.88 KB | 27f05be14bbf225723bf9e4966b33aa0 |
Release notes
- development branch for Drupal 6 core port effort. NOT READY FOR USE.
- legacy. it is now skipped.
adsense_injector 4.7.x-2.5-1
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-4.7.x-2.5-1.tar.gz | 9.15 KB | b16cdbf5ff06b6dca3e173e129c1a8a4 |
| adsense_injector-4.7.x-2.5-1.zip | 9.63 KB | eb2209f1b9805e55e1c4860236caaa9a |
Release notes
Minor tweaks. Adding donor button in admin settings form. Donations support ongoing development :D
adsense_injector 5.x-2.5-1
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.5-1.tar.gz | 9.54 KB | 4577faac89e8c7a7b69dc4cf14cf97d6 |
| adsense_injector-5.x-2.5-1.zip | 10.24 KB | c9b435caf1a462e750f43a8cf5fea58b |
Release notes
Minor tweaks. Adding donor button in admin settings form. Donations support ongoing development :D
adsense_injector 5.x-2.5
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.5.tar.gz | 9.24 KB | 886cbd44b87967ac64bb1e1c7ae2df3e |
| adsense_injector-5.x-2.5.zip | 9.99 KB | ff92ea2228ee31c1d69730cdb8582b56 |
Release notes
New template scheme allows insertion of ads before and/or after node body/teaser.
NOTE: if you've used a previous version of adsense_injector on your site, you will need to reset configuration values to the defaults and re-configure new template values. You should make a note of all your current configuration values before you install this version in order to assist in this process.
In particular, the teaser/list view template default is now:
%teaser<div class="adsense-injector-list-ad">[adsense:468x60:1:1]</div>
The previous version values will not work with this and future versions.
adsense_injector 4.7.x-2.5
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-4.7.x-2.5.tar.gz | 8.82 KB | baba91f04f89f496a87de5674698288f |
| adsense_injector-4.7.x-2.5.zip | 9.29 KB | 08bbec800c217c27f3f021994de7cf68 |
Release notes
New template scheme allows insertion of ads before and/or after node body/teaser.
NOTE: if you've used a previous version of adsense_injector on your site, you will need to reset configuration values to the defaults and re-configure new template values. You should make a note of all your current configuration values before you install this version in order to assist in this process.
In particular, the teaser/list view template default is now:
%teaser<div class="adsense-injector-list-ad">[adsense:468x60:1:1]</div>
The previous version values will not work with this and future versions.
adsense_injector 5.x-2.2
| Download | Size | md5 hash |
|---|---|---|
| adsense_injector-5.x-2.2.tar.gz | 9.43 KB | d6ce7bfa3e9f847633a2ea69fd295c24 |
| adsense_injector-5.x-2.2.zip | 10.16 KB | c39392fa643039d2774f5d3cdc801c5e |
Release notes
Fix issue http://drupal.org/node/121034
CVS log:
Revision : 1.1.2.4
Date : 2007/3/17 21:32:3
Author : 'inactivist'
State : 'Exp'
Lines : +31 -29
CommitID : '438145fc5e4e4567'
Description :
Fix issue http://drupal.org/node/121034
(inserts two ads per node)
- Was not respecting $op='view' mode.