Version Description
Download this release
Release Info
Developer | reviewmylife |
Plugin | Ad Injection |
Version | 1.2.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.2.0.8 to 1.2.0.9
- ad-injection-admin.php +1 -1
- ad-injection.php +1 -1
- adshow.php +2 -2
- readme.txt +1 -1
ad-injection-admin.php
CHANGED
@@ -342,7 +342,7 @@ function adinj_top_message_box(){
|
|
342 |
|
343 |
} else if (!isset($_GET['tab'])){
|
344 |
echo '<div id="message" class="updated below-h2"><p style="line-height:140%"><strong>';
|
345 |
-
echo "1st February 2012: Cookie management for search engine only mode now done in PHP instead of JavaScript which should be more robust. The JavaScript file is no longer needed saving a HTTP request. If you are already using this feature you may need to clear your cache to get it to work immediately (if not it will start working again when the cached pages expire). Full filter support for template ads. Fix for category/tag filters with spaces them. With support for my new <a href='http://wordpress.org/extend/plugins/ad-logger/' target='_new'>Ad Logger</a> plugin's AdSense click blocking feature. Please contact me ASAP if you spot any bugs, or odd behaviour via the ".'<a href="'.adinj_feedback_url().'" target="_new">quick feedback form</a>.';
|
346 |
echo '</strong></p></div>';
|
347 |
}
|
348 |
}
|
342 |
|
343 |
} else if (!isset($_GET['tab'])){
|
344 |
echo '<div id="message" class="updated below-h2"><p style="line-height:140%"><strong>';
|
345 |
+
echo "1st February 2012: <font color=red>Update 10:00 UK Time: Have had to temporarily disable the cookie setting due to a bug... looking into it now!</font> Cookie management for search engine only mode now done in PHP instead of JavaScript which should be more robust. The JavaScript file is no longer needed saving a HTTP request. If you are already using this feature you may need to clear your cache to get it to work immediately (if not it will start working again when the cached pages expire). Full filter support for template ads. Fix for category/tag filters with spaces them. With support for my new <a href='http://wordpress.org/extend/plugins/ad-logger/' target='_new'>Ad Logger</a> plugin's AdSense click blocking feature. Please contact me ASAP if you spot any bugs, or odd behaviour via the ".'<a href="'.adinj_feedback_url().'" target="_new">quick feedback form</a>.';
|
346 |
echo '</strong></p></div>';
|
347 |
}
|
348 |
}
|
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.
|
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: 1.2.0.9
|
7 |
Author: reviewmylife
|
8 |
Author URI: http://www.reviewmylife.co.uk/
|
9 |
License: GPLv2
|
adshow.php
CHANGED
@@ -260,14 +260,14 @@ function adshow_show_adverts(){
|
|
260 |
|
261 |
if (adinj_config_block_referrers() && adshow_blocked_referrer()) return "blocked_referrer";
|
262 |
if (adinj_config_block_referrers() && adshow_blocked_referrer()){
|
263 |
-
setcookie('adinjblocked', '1', time()+adinj_config_block_hours()*3600, '/');
|
264 |
return "blocked_referrer";
|
265 |
}
|
266 |
|
267 |
if (adinj_config_allow_referrers() && !adshow_allowed_referrer()) return "not_an_allowed_referrer";
|
268 |
|
269 |
//Set cookie
|
270 |
-
setcookie('adinj', '1', time()+3600, '/');
|
271 |
return true;
|
272 |
}
|
273 |
}
|
260 |
|
261 |
if (adinj_config_block_referrers() && adshow_blocked_referrer()) return "blocked_referrer";
|
262 |
if (adinj_config_block_referrers() && adshow_blocked_referrer()){
|
263 |
+
//setcookie('adinjblocked', '1', time()+adinj_config_block_hours()*3600, '/');
|
264 |
return "blocked_referrer";
|
265 |
}
|
266 |
|
267 |
if (adinj_config_allow_referrers() && !adshow_allowed_referrer()) return "not_an_allowed_referrer";
|
268 |
|
269 |
//Set cookie
|
270 |
+
//setcookie('adinj', '1', time()+3600, '/');
|
271 |
return true;
|
272 |
}
|
273 |
}
|
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, 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: 3.3.1
|
7 |
-
Stable tag: 1.2.0.
|
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 |
|
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: 3.3.1
|
7 |
+
Stable tag: 1.2.0.9
|
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 |
|