Version Description
- Tested on WordPress 3.3.
- Put mfunc code block on one line.
Download this release
Release Info
Developer | reviewmylife |
Plugin | Ad Injection |
Version | 1.2.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.2.0.6 to 1.2.0.7
- ad-injection-admin.php +2 -2
- ad-injection.php +2 -5
- readme.txt +10 -2
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 "
|
346 |
echo '</strong></p></div>';
|
347 |
}
|
348 |
}
|
@@ -369,7 +369,7 @@ function adinj_side_donate_box(){
|
|
369 |
<select id="currency_code" name="currency_code">
|
370 |
<option value="USD">U.S. Dollars</option>
|
371 |
<?php
|
372 |
-
if (strpos(home_url(), '.co.uk') !== false){
|
373 |
echo '<option value="GBP" selected="selected">Pounds Sterling</option>';
|
374 |
} else {
|
375 |
echo '<option value="GBP">Pounds Sterling</option>';
|
342 |
|
343 |
} else if (!isset($_GET['tab'])){
|
344 |
echo '<div id="message" class="updated below-h2"><p style="line-height:140%"><strong>';
|
345 |
+
echo "4th December 2011: Tested on WordPress 3.3. 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 |
}
|
369 |
<select id="currency_code" name="currency_code">
|
370 |
<option value="USD">U.S. Dollars</option>
|
371 |
<?php
|
372 |
+
if (1==2 && strpos(home_url(), '.co.uk') !== false){
|
373 |
echo '<option value="GBP" selected="selected">Pounds Sterling</option>';
|
374 |
} else {
|
375 |
echo '<option value="GBP">Pounds Sterling</option>';
|
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
|
@@ -319,10 +319,7 @@ function adinj_ad_code_include(){
|
|
319 |
// files from within ABSPATH. To remove this limitation we do the include
|
320 |
// using mfunc instead.
|
321 |
return adinj_ad_code_eval("\n
|
322 |
-
<!--Ad Injection mfunc mode ad include code-->
|
323 |
-
<!--mfunc include_once('$plugin_dir/adshow.php') -->
|
324 |
-
<?php include_once('$plugin_dir/adshow.php'); ?>
|
325 |
-
<!--/mfunc-->
|
326 |
");
|
327 |
}
|
328 |
return "";
|
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
|
7 |
Author: reviewmylife
|
8 |
Author URI: http://www.reviewmylife.co.uk/
|
9 |
License: GPLv2
|
319 |
// files from within ABSPATH. To remove this limitation we do the include
|
320 |
// using mfunc instead.
|
321 |
return adinj_ad_code_eval("\n
|
322 |
+
<!--Ad Injection mfunc mode ad include code--><!--mfunc include_once('$plugin_dir/adshow.php') --><?php include_once('$plugin_dir/adshow.php'); ?><!--/mfunc-->
|
|
|
|
|
|
|
323 |
");
|
324 |
}
|
325 |
return "";
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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: 3.
|
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 |
|
@@ -607,6 +607,10 @@ If you do get any errors please use the 'Report a bug or give feedback' link on
|
|
607 |
|
608 |
== Changelog ==
|
609 |
|
|
|
|
|
|
|
|
|
610 |
= 1.2.0.6 =
|
611 |
* Fix problem with debug output.
|
612 |
* Reduce memory on admin side for blogs with large numbers of tags.
|
@@ -834,6 +838,10 @@ Fix 'Something badly wrong in num_rand_ads_to_insert' message that occurs on pag
|
|
834 |
|
835 |
== Upgrade Notice ==
|
836 |
|
|
|
|
|
|
|
|
|
837 |
= 1.2.0.6 =
|
838 |
* Fix problem with debug output.
|
839 |
* Reduce memory on admin side for blogs with large numbers of tags.
|
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: 3.3.0
|
7 |
+
Stable tag: 1.2.0.7
|
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 |
|
607 |
|
608 |
== Changelog ==
|
609 |
|
610 |
+
= 1.2.0.7 =
|
611 |
+
* Tested on WordPress 3.3.
|
612 |
+
* Put mfunc code block on one line.
|
613 |
+
|
614 |
= 1.2.0.6 =
|
615 |
* Fix problem with debug output.
|
616 |
* Reduce memory on admin side for blogs with large numbers of tags.
|
838 |
|
839 |
== Upgrade Notice ==
|
840 |
|
841 |
+
= 1.2.0.7 =
|
842 |
+
* Tested on WordPress 3.3.
|
843 |
+
* Put mfunc code block on one line.
|
844 |
+
|
845 |
= 1.2.0.6 =
|
846 |
* Fix problem with debug output.
|
847 |
* Reduce memory on admin side for blogs with large numbers of tags.
|