Ad Injection

Wordpress Plugin
Download latest - 1.2.0.19

Developers

reviewmylife

Download Stats

Today 29
Yesterday 48
Last Week 393
All Time 448,704


Ad Injection from reviewmylife injects any kind of advert or other content (e.g. Google AdSense, Amazon Associates, ClickBank, TradeDoubler, etc) into the existing content of your WordPress posts and pages. You can control the number of adverts based on the post length, and it can restrict who sees adverts by post age, visitor referrer and IP address. Adverts can be configured in the post (random, top, and bottom positions) or in any widget/sidebar area. There's support for A:B split testing / ad rotation. And support for dynamic restrictions (by IP address and referrer). Note that this is an advanced plugin with loads of options. If you want a really simple plugin this might not be the one for you!

New Features 1.2.x.x

  • Set the position of the top and bottom advert by paragraph or character.
  • Position the random ads to start or stop in the middle of the post.
  • Stop the random ads 2/3 of the way down a post, or at a paragraph/character position from the beginning/end of the post.
  • New options to exlude ads from blockquote and pre sections. And custom ad exlude tags.
  • Fade unused Home/Archive options instead of making them dissapear.
  • Add page age settings to status.
  • Improve debug messages.

New Features 1.1.x.x

  • Template ads - you can now include ads anywhere in your theme template with some simple tags. You can load the top/random/bottom/footer ads, or you can load an ad from a text file on disk. Template ads inherit the same dynamic and global restrictions as for ads configured via the UI.
  • First ad can now be started at or after a paragraph or character position.
  • Override ad positions on individual posts using <!--topad--> <!--randomad--> <!--bottomad-->
  • Separate old post restriction for widget ads in case you want a different rule for the widget ads.

New Features 0.9.7.x

  • Archive and home page ads now fully supported with the same controls as ads for single posts/pages.
  • Category, tag and author restrictions for top, random and bottom ads.
  • Footer ads.
  • Restrict ads by page/post id

New Features 0.9.6.x

  • Ad rotation / A:B split testing support for random, top, bottom and widget/sidebar adverts.
  • Alternate content which can be defined for users who are dynamically blocked (by IP or referrer) from seeing adverts.
  • Choose which paragraph to start the random ads via the UI.
  • Dynamic features will work with W3 Total Cache and WP Cache as well as the previously suppoted WP Super Cache.
  • Widgets can be conditionally included on pages by category, tag, and author.

Automatic advert injection

The ads can be injected into existing posts without requiring any modification of the post. The injection can be done randomly between paragraphs, and there is an option to always inject the first advert at a specified paragraph (e.g. the first or second). Randomly positioning the adverts helps to reduce 'ad blindness'. Additional adverts can be defined for the top and bottom of the content, or the footer of the page. Widget adverts can be defined as well.

Widget support

Widgets can be added to your sidebars, or other widget areas on any pages. The same ad display restrictions that you setup for your other ads will also apply to the widgets.

Ad rotation / split testing

You can define multiple adverts for the same ad space which are rotated according to the ratios you define. Works with random, top, bottom and sidget/sidebar ads.

Ad quantity by post length

The number of adverts can be set based on the length of the post. It is a good idea for longer posts to have more adverts than shorter posts for example. Adverts can also be turned off for very short posts.

Search engines only mode (restrict by referrer)

You can specify that ads should only be shown to search engine visitors, or to visitors from defined referring websites - e.g. Facebook, Wikipedia, Twitter, etc. This will give your regular visitors (who are unlikely to click your ads) a better experience of your site. You can define which search engines or referring sites see your adverts. A visitor who enters the site by one of these referrers will see ads for the next hour.

Block by referrer

Block ads to people coming from certain referring URLs. e.g. you may wish to treat people who arrive at your site after searching for your name as direct visitors and disable the ads for them.

Ads on old posts only

Adverts can be restricted to posts that are more than a defined numbers of days old. This prevents your regular visitors from having to see your ads.

Category, tag, author, post ID, and post type filters

You can configure the adverts to only appear on specific categories, tags, authors, post IDs, or post types (or exclude them using these conditions).

Template ads

Ads can be included anywhere in your theme template with some simple tags. You can load the top/random/bottom/footer ads, or you can load an ad from a text file on disk. Template ads inherit the same dynamic and global restrictions as for ads configured via the UI.

Block ads from IP addresses

IP addresses of people who shouldn't see your ads can be defined. These could be the IP addresses of your friends, family, or even yourself.

Override ad positioning on individual posts

If you need to override the top, random, or bottom ad positions on a specific post you can use these in-content tags to manually set the ad positions: <!--topad--> <!--randomad--> <!--bottomad--> <!--adstart--> <!--adend--> <!--noads-->

You can manually exclude ads from specific sections of the post using the <!--adinj_exclude_start--><!--adinj_exclude_end--> tags.

Exclude ads from block tags

Ads can be excluded from <blockquote></blockquote> and <pre></pre> tags.

Alternate content

This is content that is displayed when ads are blocked for the user. You could use this alternate content to show other content, some kind of layout filler, or even a different type of ad. I've added support for rotation of alternate content as well.

Not tied to any ad provider

The advert code can be copied and pasted directly from your ad provider (Google AdSense, adBrite, ClickBank, etc) which will help you to comply with any terms of service (TOS) that state their ad code may not be modified.

Inject anything!

Although this plugin is usually used for injecting adverts it can in fact be used to inject anything. Here are some alternative uses for Ad Injection:

  • Inject an email opt-in form at the bottom of each post.
  • Insert a common header or footer block (e.g. copyright, disclaimers, website information).
  • Add tracking scripts (e.g. Google Analytics) into your site.
  • Use it to rotate random images or photos in your pages.
  • Put some time limited temporary content at the top or bottom of each post (e.g. sales offer, or web site announcement).
  • Inserting social networking buttons (e.g. Facebook, Twitter, Google +1) at the top or bottom of your posts.

Flexible ad alignment

Easy positioning options are provided for left, right, center, float left, and float right (or a random variant of these). Extra spacing can be set above and below the ad using the CSS margin and padding boxes. Or if that isn't flexible enough, you can write your own positioning code using HTML and CSS. And you can select which paragraph random ads should start from.

Inject PHP and JavaScript

As the plugin will inject whatever content you like into the page you can write your own ad rotation or a/b split testing code for the ads you inject. PHP code can be automatically executed, even when using WP Super Cache.

Hide UI panels that you don't need

If there are any panels on the admin screen that you don't need, you can click on the show/hide button to hide them until you need them.

For more information visit reviewmylife.


Releases (70 )

Version Release Date Change Log
1.2.0.19 2015-08-30
  • One more undefined variable fix.
  • Migrate widget contructor to PHP5 format.
1.2.0.18 2014-12-20
  • Fix some undeclared variable warnings.
1.2.0.17 2014-11-30
  • A few cleanups to make it clear that direct ad insertion mode is the recommended mode. mfunc mode is left in for people who know what they are doing.
1.2.0.16 2012-08-11
  • New options to exclude ads from table tags.
1.2.0.15 2012-06-25
  • New options to exclude ads from div, form, ol and ul tags.
  • Fix relating to post length restrictions.
1.2.0.14 2012-05-17
  • Add additional values to numeric pull down boxes. 6000-8000 for paragraph positions. And 7500 for post length boxes.
1.2.0.13 2012-05-08
  • New option to exclude ads from blockquote and pre tags.
  • New tag to exclude ads from specific parts of posts.
1.2.0.12 2012-04-14
  • Fix for ads with UTF-8 characters
1.2.0.11 2012-04-07
  • Preserve HTML entities when saving - i.e. preserve special character sequences.
  • Add '400' as an option to the numbered drop downs.
1.2.0.10 2012-02-01
  • Fix to allow categories/tags/author names which contain spaces.
  • Add category/tag/id/author filters for template ads.
  • Hopefully fixes the 'headers already sent message that some people got with 1.2.0.8
1.2.0.9 2012-02-01
1.2.0.8 2012-02-01
  • Manage cookies in PHP instead of JavaScript to improve reliability.
  • Fix to allow categories/tags/author names which contain spaces.
  • Add category/tag/id/author filters for template ads.
1.2.0.7 2011-12-04
  • Tested on WordPress 3.3.
  • Put mfunc code block on one line.
1.2.0.6 2011-10-25
  • Fix problem with debug output.
  • Reduce memory on admin side for blogs with large numbers of tags.
  • More detailed debug for PHP exec errors.
  • Colour debug table changes.
1.2.0.5 2011-09-28
  • Fix: Problem with adinjblocked cookie reading.
1.2.0.4 2011-09-28
  • New: Support for Ad Logger's AdSense click blocking feature (that is my new plugin!).
  • New: Make more parts of the ad placement settings UI fade away if they can't be used.
1.2.0.3 2011-09-26
  • New: Setting to allow priority of Ad Injection's the_content filter to be changed. This may help with some themes that are overriding the WordPress default 'wpautop' behaviour.
  • Fix: Start at paragraph setting may have been incorrectly upgraded if previously using an old version of this plugin.
1.2.0.2 2011-09-15
  • Fix: Problem with repeating bottom ads and ID filters not being properly applied to archives.
1.2.0.1 2011-09-14
  • Fix: Bottom ad moved can potentially move up a paragraph if theme doesn't put closing paragraph at end of post.
1.2.0.0 2011-09-13
  • Set the position of the top and bottom advert by paragraph or character.
  • Position the random ads to start or stop in the middle of the post.
  • Stop the random ads 2/3 of the way down a post, or at a paragraph/character position from the beginning/end of the post.
  • Fade unused Home/Archive options instead of making them dissapear.
  • Add page age settings to status.
  • Improve debug messages.
1.1.0.6 2011-09-05
  • New block ads by referring keyword/URL feature.
  • Load tags in batches to reduce memory used when displaying main settings screen. Will help people with lots of tags.
  • Fix for <!--randomad--> tag.
  • Move tags/categories/authors/ids filters to separate area of UI.
1.1.0.5 2011-09-05
  • New block ads by referring keyword/URL feature.
  • Load tags in batches to reduce memory used when displaying main settings screen. Will help people with lots of tags.
  • Fix for <!--randomad--> tag.
  • Move tags/categories/authors/ids filters to separate area of UI.
1.1.0.4 2011-08-29
  • First ad can now be started at or after a paragraph or character position.
  • Override ad positions on individual posts using <!--topad--> <!--randomad--> <!--bottomad-->
  • Separate old post restriction for widget ads.
  • Template ad examples in the 'Test ads' section.
  • Warning message improvements.
  • UI tweaks and other fixes.
1.1.0.3 2011-08-29
  • First ad can now be started at or after a paragraph or character position.
  • Override ad positions on individual posts using <!--topad--> <!--randomad--> <!--bottomad-->
  • Separate old post restriction for widget ads.
  • Template ad examples in the 'Test ads' section.
  • Warning message improvements.
  • UI tweaks and other fixes.
1.1.0.2 2011-08-22
  • Remove confusing Disabled/Enabled drop down options as all ads can be enabled/disabled from the tick boxes. Please check your ads after this update and report any problems!
  • Hide certain parts of the UI when the 'All' exclude boxes are ticked.
  • New configured/empty indicator on the category/tag/author/id settings.
1.1.0.1 2011-08-01
  • Template ads - you can now include ads anywhere in your theme template with some simple tags. You can load the top/random/bottom/footer ads, or you can load an ad from a text file on disk. Template ads inherit the same restrictions as for ads configured via the UI.
  • UI usability improvements.
0.9.7.11 2011-07-01
  • Filter ads by post/page ID
  • Other misc bug fixes
0.9.7.10 2011-06-17
  • UI fix for WordPress 3.2
  • fix for users who are running PHP with no UTF8 support
  • file error code message fix
0.9.7.9 2011-05-20
  • Add option to prevent random ad from appearing on last paragraph (to prevent it overlapping bottom ad).
  • New option to randomly pick again from pool for each random ad position.
  • Modify default list of search referrers to remove /search/. Could cause problem with Google Webmaster Tools.
  • Revert a change which unconditionally printed a debug message in hook after receiving report of a problem with it.
0.9.7.8 2011-05-06
  • Fix bug that prevents ads appearing on archive/home pages when certain plugins/themes are installed.
  • A PHP4 compatibility fix.
0.9.7.7 2011-03-18
  • Footer ad support (only for themes that correctly use the wp_footer hook).
  • Align and clear options for widgets.
  • Word counting code now works for non-Latin languages.
0.9.7.6 2011-03-05
  • Category, tag and author exclusions now apply to home page posts.
  • Fixes for widget category exclusions.
0.9.7.5 2011-03-03
  • Simplify the ad insertion modes. Replace the two previous direct modes with one.
  • Other minor bug fixes.
0.9.7.4 2011-03-01
  • UI fixes.
0.9.7.3 2011-03-01
  • Fix (hopefully) for the disappearing top/bottom adverts that affected some users. Special thanks to numaga.com for the debug access.
0.9.7.2 2011-03-01

Release with more debugging to try to track down top/bottom ads which have gone missing on some blogs.

0.9.7.1 2011-02-28

Fix for disappearing top / bottom ad.

0.9.7 2011-02-28
  • Archive and home page ads now fully supported with the same controls as ads for single posts/pages.
  • Category, tag and author restrictions for top, random and bottom ads.
0.9.6.6 2011-02-11
  • Widgets can be conditionally included on pages by category, tag, and author.
  • Widget ad pool size increased to 10.
  • Fix for using just bottom ad in mfunc mode.
  • Less JavaScript on admin pages.
  • Global author exclude option.
0.9.6.5 2011-02-04
  • Add 'words' to content length counting options.
  • Fixes for categories/tags and ads with UTF-8 characters.
  • Search/404 exclusion options for global and widget settngs.
  • Ad pool size for top/random/bottom ads increased to 10.
0.9.6.4 2011-01-25
  • Can choose between page lengths based on viewable characters or all characters (includes HTML markup).
  • Fixes for widget padding options.
  • Enable alt content for random ads.
0.9.6.3 2011-01-24
  • Option to enable/disable front page ads in case your front and home pages are different.
0.9.6.2 2011-01-22
  • Support for W3 Total Cache and WP Cache (as well as the already supported WP Super Cache).
0.9.6.1 2011-01-21
0.9.6 2011-01-21
  • Ad rotation / A:B split testing support for random, top, bottom and widget adverts.
  • Alternate content which can be defined for users who are dynamically blocked (by IP or referrer) from seeing adverts.
  • Choose which paragraph to start the random ads via the UI.
0.9.5.2 2011-01-10

New CSS padding options for widgets. Fixes for CSS margin options. Update docs for due to new mfunc support in WP Super Cache. If you are using mfunc mode and upgrade to the latest version of WP Super Cache (0.9.9.8) you can now use the faster mod_rewrite mode or PHP mode instead of legacy mode.

0.9.5.1 2011-01-10

New CSS padding options for widgets. Fixes for CSS margin options. Update docs for due to new mfunc support in WP Super Cache. If you are using mfunc mode and upgrade to the latest version of WP Super Cache (0.9.9.8) you can now use the faster mod_rewrite mode or PHP mode instead of legacy mode.

0.9.5 2011-01-06

New option to add spacing above and below widgets. New options for randomly aligning random/top/bottom ads. Fixes for several bugs reported over Christmas.

0.9.4.6 2010-12-30

Save options in admin_menu hook so that WordPress is correctly initialised when saving. Allows 'pluggable' include to be removed, which should fix 'Cannot redeclare get_userdatabylogin' conflict with vbbridge.

0.9.4.5 2010-12-25

Fix problem with mfunc mode widgets on archive pages.

0.9.4.4 2010-12-24

New display option for defining CSS clear as left, right or both. Suppress file system warnings. Tested on WordPress 2.8.6 - it works!

0.9.4.3 2010-12-23

Only write to config file in mfunc mode.

0.9.4.2 2010-12-23

Allow plugin to work with PHP4. Increase allowed home page ads to 10. Must always save widget ads to disk in case mode is changed to mfunc later on.

0.9.4.1 2010-12-22

Fix: Remove file contents if ad is 0 length.

0.9.4 2010-12-22

Global tag and category restrictions. Smoother JQuery show/hide blocks (especially on IE)

0.9.3.4 2010-12-20

Clean up old settings restore block.

0.9.3.3 2010-12-19

Add a status box to make it easy to see what the main settings are.

0.9.3.2 2010-12-17

Add test mode, and further reduce unnecessary file access.

0.9.3.1 2010-12-17

Fix chmod comparison problem.

0.9.3 2010-12-16

Invalidate the options cache after saving.

0.9.2 2010-12-16

If you are using mfunc mode and have added ad widgets please re-save them to regenerate the ad files. Save ad files to a new directory so they don't need to be re-created after upgrade.

0.9.1 2010-12-14

Fix dynamic checking for widgets. Fix potential PHP error message with widgets.

0.9.0 2010-12-13

Widget support. Only write to the ad files if necessary. Chrome display fixes. More informative save messages. Other fixes.

0.8.9 2010-12-09

Prevent config file being lost by bulk automatic update. Error messages from adshow.php are hidden in HTML now rather than being visible to everyone.

0.8.8 2010-12-08

Try to make sure ads don't appear on archive pages, 404s or search results, in case theme is working in a non-standard way. Reduce dependency on files.

0.8.7 2010-12-08

More fault tolerant mfunc support.

0.8.6 2010-12-08

Fix problems relating to over strict chmod usage. Add save message. More informative warnings. Update links to reviewmylife.

0.8.5 2010-12-07

Fix 'Something badly wrong in num_rand_ads_to_insert' message that occurs on page types that I haven't taken account of.

0.8.4 2010-12-07
  • Fix deletion of ad code and config file that happens during automatic update.
0.8.3 2010-12-07
  • First public release

=