Version Description
Fix dynamic checking for widgets. Fix potential PHP error message with widgets.
Download this release
Release Info
Developer | reviewmylife |
Plugin | Ad Injection |
Version | 0.9.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.0 to 0.9.1
- ad-injection-widget.php +7 -1
- ad-injection.php +1 -1
- readme.txt +10 -3
ad-injection-widget.php
CHANGED
@@ -21,6 +21,12 @@ class Ad_Injection_Widget extends WP_Widget {
|
|
21 |
(is_archive() && adinj_ticked('widget_exclude_archive'))){
|
22 |
return;
|
23 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
extract( $args );
|
26 |
|
@@ -94,7 +100,7 @@ class Ad_Injection_Widget extends WP_Widget {
|
|
94 |
}
|
95 |
|
96 |
function get_ad_file_path(){
|
97 |
-
return ADINJ_AD_PATH.'/'
|
98 |
}
|
99 |
|
100 |
function get_ad_file_name(){
|
21 |
(is_archive() && adinj_ticked('widget_exclude_archive'))){
|
22 |
return;
|
23 |
}
|
24 |
+
|
25 |
+
if ($options['ad_insertion_mode'] == 'direct_dynamic'){
|
26 |
+
if (adinj_show_adverts() !== true){
|
27 |
+
return;
|
28 |
+
}
|
29 |
+
}
|
30 |
|
31 |
extract( $args );
|
32 |
|
100 |
}
|
101 |
|
102 |
function get_ad_file_path(){
|
103 |
+
return ADINJ_AD_PATH.'/'.$this->get_ad_file_name();
|
104 |
}
|
105 |
|
106 |
function get_ad_file_name(){
|
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: Inserts any advert into your blog. Options to exclude by post age, visitor IP, and visitor referrer. Works with WP Super Cache.
|
6 |
-
Version: 0.9.
|
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: Inserts any advert into your blog. Options to exclude by post age, visitor IP, and visitor referrer. Works with WP Super Cache.
|
6 |
+
Version: 0.9.1
|
7 |
Author: reviewmylife
|
8 |
Author URI: http://www.reviewmylife.co.uk/
|
9 |
License: GPLv2
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Ad Injection ===
|
2 |
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, 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.
|
8 |
|
9 |
Injects any kind of advert into existing WordPress posts. Can restrict who sees the ads by post age, visitor referrer, IP address. Cache compatible.
|
10 |
|
@@ -14,7 +14,7 @@ It injects any kind of advert (e.g. Google AdSense, Amazon Associates, ClickBank
|
|
14 |
|
15 |
= Automatic advert injection =
|
16 |
|
17 |
-
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 after the first paragraph. Two separate adverts can be defined for the top and bottom of the content.
|
18 |
|
19 |
= Widget support [new] =
|
20 |
|
@@ -170,6 +170,10 @@ For more information visit [reviewmylife](http://www.reviewmylife.co.uk/blog/201
|
|
170 |
|
171 |
== Changelog ==
|
172 |
|
|
|
|
|
|
|
|
|
173 |
= 0.9.0 =
|
174 |
Widget support.
|
175 |
Only write to the ad files if necessary.
|
@@ -204,6 +208,9 @@ Fix 'Something badly wrong in num_rand_ads_to_insert' message that occurs on pag
|
|
204 |
|
205 |
== Upgrade Notice ==
|
206 |
|
|
|
|
|
|
|
207 |
= 0.9.0 =
|
208 |
Widget support and other fixes.
|
209 |
|
1 |
=== Ad Injection ===
|
2 |
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, 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.1
|
8 |
|
9 |
Injects any kind of advert into existing WordPress posts. Can restrict who sees the ads by post age, visitor referrer, IP address. Cache compatible.
|
10 |
|
14 |
|
15 |
= Automatic advert injection =
|
16 |
|
17 |
+
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 after the first paragraph. Randomly positioning the adverts helps to reduce 'ad blindness'. Two separate adverts can be defined for the top and bottom of the content. Widget adverts can be defined as well.
|
18 |
|
19 |
= Widget support [new] =
|
20 |
|
170 |
|
171 |
== Changelog ==
|
172 |
|
173 |
+
= 0.9.1 =
|
174 |
+
Fix dynamic checking for widgets.
|
175 |
+
Fix potential PHP error message with widgets.
|
176 |
+
|
177 |
= 0.9.0 =
|
178 |
Widget support.
|
179 |
Only write to the ad files if necessary.
|
208 |
|
209 |
== Upgrade Notice ==
|
210 |
|
211 |
+
= 0.9.1 =
|
212 |
+
Fix dynamic checking for widgets. Fix potential PHP error message with widgets.
|
213 |
+
|
214 |
= 0.9.0 =
|
215 |
Widget support and other fixes.
|
216 |
|