Ad Injection - Version 0.9.4.3

Version Description

Only write to config file in mfunc mode.

Download this release

Release Info

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

Code changes from version 0.9.4.2 to 0.9.4.3

Files changed (3) hide show
  1. ad-injection-admin.php +4 -2
  2. ad-injection.php +1 -1
  3. readme.txt +7 -1
ad-injection-admin.php CHANGED
@@ -177,8 +177,10 @@ function adinj_options_page(){
177
  adinj_activate_hook();
178
  }
179
  $ops = adinj_options(1);
180
- if (!file_exists(ADINJ_CONFIG_FILE2)){
181
- adinj_write_config_file();
 
 
182
  }
183
 
184
  echo '<div class="wrap">';
177
  adinj_activate_hook();
178
  }
179
  $ops = adinj_options(1);
180
+ if ($ops['ad_insertion_mode'] == 'mfunc') {
181
+ if (!file_exists(ADINJ_CONFIG_FILE2)){
182
+ adinj_write_config_file();
183
+ }
184
  }
185
 
186
  echo '<div class="wrap">';
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: 0.9.4.2
7
  Author: reviewmylife
8
  Author URI: http://www.reviewmylife.co.uk/
9
  License: GPLv2
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: 0.9.4.3
7
  Author: reviewmylife
8
  Author URI: http://www.reviewmylife.co.uk/
9
  License: GPLv2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-w
4
  Tags: ad injection, adsense, advert injection, advert, ad, injection, advertising, affiliate, inject, injection, insert, widget, monetize, monetise, banner, Amazon, ClickBank, TradeDoubler, Google, adBrite, post, WordPress, automatically, plugin, Adsense Injection, free
5
  Requires at least: 3.0.0
6
  Tested up to: 3.0.3
7
- Stable tag: 0.9.4.2
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. Cache compatible.
10
 
@@ -197,6 +197,9 @@ If you do get any errors please use the 'Report a bug or give feedback' link on
197
 
198
  == Changelog ==
199
 
 
 
 
200
  = 0.9.4.2 =
201
  Allow plugin to work with PHP4.
202
  Increase allowed home page ads to 10.
@@ -266,6 +269,9 @@ Fix 'Something badly wrong in num_rand_ads_to_insert' message that occurs on pag
266
 
267
  == Upgrade Notice ==
268
 
 
 
 
269
  = 0.9.4.2 =
270
  If you are using mfunc mode and have added ad widgets with a version prior to 0.9.2 please re-save them to regenerate the ad files (fixed for upgrades from 0.9.2).
271
 
4
  Tags: ad injection, adsense, advert injection, advert, ad, injection, advertising, affiliate, inject, injection, insert, widget, monetize, monetise, banner, Amazon, ClickBank, TradeDoubler, Google, adBrite, post, WordPress, automatically, plugin, Adsense Injection, free
5
  Requires at least: 3.0.0
6
  Tested up to: 3.0.3
7
+ Stable tag: 0.9.4.3
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. Cache compatible.
10
 
197
 
198
  == Changelog ==
199
 
200
+ = 0.9.4.3 =
201
+ Only write to config file in mfunc mode.
202
+
203
  = 0.9.4.2 =
204
  Allow plugin to work with PHP4.
205
  Increase allowed home page ads to 10.
269
 
270
  == Upgrade Notice ==
271
 
272
+ = 0.9.4.3 =
273
+ If you are using mfunc mode and have added ad widgets with a version prior to 0.9.2 please re-save them to regenerate the ad files (fixed for upgrades from 0.9.2).
274
+
275
  = 0.9.4.2 =
276
  If you are using mfunc mode and have added ad widgets with a version prior to 0.9.2 please re-save them to regenerate the ad files (fixed for upgrades from 0.9.2).
277