Ad Injection - Version 1.2.0.19

Version Description

  • One more undefined variable fix.
  • Migrate widget contructor to PHP5 format.
Download this release

Release Info

Developer reviewmylife
Plugin Icon wp plugin Ad Injection
Version 1.2.0.19
Comparing to
See all releases

Code changes from version 1.2.0.18 to 1.2.0.19

Files changed (3) hide show
  1. ad-injection-widget.php +1 -1
  2. ad-injection.php +3 -1
  3. readme.txt +7 -10
ad-injection-widget.php CHANGED
@@ -15,7 +15,7 @@ http://www.reviewmylife.co.uk/
15
  define('ADINJ_WIDGET_DB_VERSION', 8);
16
 
17
  class Ad_Injection_Widget extends WP_Widget {
18
- function Ad_Injection_Widget() {
19
  $widget_ops = array( 'classname' => 'adinjwidget', 'description' => 'Insert Ad Injection adverts into your sidebars/widget areas.' );
20
  $control_ops = array( 'width' => 500, 'height' => 300, 'id_base' => 'adinj' );
21
  $this->WP_Widget( 'adinj', 'Ad Injection', $widget_ops, $control_ops );
15
  define('ADINJ_WIDGET_DB_VERSION', 8);
16
 
17
  class Ad_Injection_Widget extends WP_Widget {
18
+ function __construct() {
19
  $widget_ops = array( 'classname' => 'adinjwidget', 'description' => 'Insert Ad Injection adverts into your sidebars/widget areas.' );
20
  $control_ops = array( 'width' => 500, 'height' => 300, 'id_base' => 'adinj' );
21
  $this->WP_Widget( 'adinj', 'Ad Injection', $widget_ops, $control_ops );
ad-injection.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ad Injection
4
  Plugin URI: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/
5
  Description: Injects any advert (e.g. AdSense) into your WordPress posts or widget area. Restrict who sees the ads by post length, age, referrer or IP. Cache compatible.
6
- Version: 1.2.0.18
7
  Author: reviewmylife
8
  Author URI: http://www.reviewmylife.co.uk/
9
  License: GPLv2
@@ -1072,6 +1072,8 @@ function adinj_get_random_ad_start_end_paragraph($content, $original_paragraph_p
1072
  // Returns -1 if paragraph can't be located
1073
  function adinj_get_random_ad_paragraph($content, $original_paragraph_positions, $opname, $default, &$debug){
1074
  $ops = adinj_options();
 
 
1075
  $mode = $ops['random_ads_'.$opname.'_mode'];
1076
  $paracount = count($original_paragraph_positions);
1077
  $rawlength = strlen($content);
3
  Plugin Name: Ad Injection
4
  Plugin URI: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/
5
  Description: Injects any advert (e.g. AdSense) into your WordPress posts or widget area. Restrict who sees the ads by post length, age, referrer or IP. Cache compatible.
6
+ Version: 1.2.0.19
7
  Author: reviewmylife
8
  Author URI: http://www.reviewmylife.co.uk/
9
  License: GPLv2
1072
  // Returns -1 if paragraph can't be located
1073
  function adinj_get_random_ad_paragraph($content, $original_paragraph_positions, $opname, $default, &$debug){
1074
  $ops = adinj_options();
1075
+ $debug_on = adinj_debug_on();
1076
+
1077
  $mode = $ops['random_ads_'.$opname.'_mode'];
1078
  $paracount = count($original_paragraph_positions);
1079
  $rawlength = strlen($content);
readme.txt CHANGED
@@ -3,8 +3,9 @@ Contributors: reviewmylife
3
  Donate link: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/
4
  Tags: ad injection, adsense, advert injection, advert, ad, injection, advertising, affiliate, inject, injection, insert, widget, widgets, sidebar, monetize, monetise, banner, Amazon, ClickBank, TradeDoubler, Google, adBrite, post, WordPress, automatically, plugin, Adsense Injection, free, blog, ad rotation, A:B testing, split testing, WP Super Cache, W3 Total Cache, WP Cache
5
  Requires at least: 2.8.6
6
- Tested up to: 4.1
7
- Stable tag: 1.2.0.18
 
8
 
9
  Injects any adverts (e.g. AdSense) into the WordPress posts or widget area. Restrict who sees ads by post length/age/referrer or IP.
10
 
@@ -117,14 +118,6 @@ Although this plugin is usually used for injecting adverts it can in fact be use
117
 
118
  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.
119
 
120
- = Works with WP Super Cache, W3 Total Cache and WP Cache =
121
-
122
- The dynamic features that require code to be executed for each page view (i.e. ad rotation, search engine visitors only, and ad blocking based on IP address) work with WP Super Cache, W3 Total Cache and WP Cache.
123
-
124
- This plugin will automatically use the dynamic mfunc tag to ensure that the dynamic ad features still work when caching is on.
125
-
126
- If you use WP Super Cache in mod_rewrite mode displaying the adverts (even with the dynamic restrictions) whilst caching requires no MySQL database access. For W3 Total Cache and WP Cache Ad Injection will not require any extra MySQL database access for cached pages other than what these plugin already use.
127
-
128
  = Inject PHP and JavaScript =
129
 
130
  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.
@@ -630,6 +623,10 @@ If you do get any errors please use the 'Report a bug or give feedback' link on
630
 
631
  == Changelog ==
632
 
 
 
 
 
633
  = 1.2.0.18 =
634
  * Fix some undeclared variable warnings.
635
 
3
  Donate link: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/
4
  Tags: ad injection, adsense, advert injection, advert, ad, injection, advertising, affiliate, inject, injection, insert, widget, widgets, sidebar, monetize, monetise, banner, Amazon, ClickBank, TradeDoubler, Google, adBrite, post, WordPress, automatically, plugin, Adsense Injection, free, blog, ad rotation, A:B testing, split testing, WP Super Cache, W3 Total Cache, WP Cache
5
  Requires at least: 2.8.6
6
+ Tested up to: 4.3
7
+ Stable tag: 1.2.0.19
8
+ License: GPLv2
9
 
10
  Injects any adverts (e.g. AdSense) into the WordPress posts or widget area. Restrict who sees ads by post length/age/referrer or IP.
11
 
118
 
119
  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.
120
 
 
 
 
 
 
 
 
 
121
  = Inject PHP and JavaScript =
122
 
123
  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.
623
 
624
  == Changelog ==
625
 
626
+ = 1.2.0.19 =
627
+ * One more undefined variable fix.
628
+ * Migrate widget contructor to PHP5 format.
629
+
630
  = 1.2.0.18 =
631
  * Fix some undeclared variable warnings.
632