Version Description
- Add additional values to numeric pull down boxes. 6000-8000 for paragraph positions. And 7500 for post length boxes.
Download this release
Release Info
Developer | reviewmylife |
Plugin | Ad Injection |
Version | 1.2.0.14 |
Comparing to | |
See all releases |
Code changes from version 1.2.0.13 to 1.2.0.14
- ad-injection-admin.php +2 -1
- ad-injection.php +1 -1
- readme.txt +8 -2
- themefuse.jpg +0 -0
- ui-tab-main.php +30 -4
ad-injection-admin.php
CHANGED
@@ -280,6 +280,7 @@ function adinj_options_page(){
|
|
280 |
case "main":
|
281 |
default:
|
282 |
require_once(ADINJ_PATH . '/ui-tab-main.php');
|
|
|
283 |
adinj_side_status_box();
|
284 |
adinj_side_donate_box();
|
285 |
adinj_side_info_box();
|
@@ -342,7 +343,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 |
}
|
280 |
case "main":
|
281 |
default:
|
282 |
require_once(ADINJ_PATH . '/ui-tab-main.php');
|
283 |
+
adinj_side_advert_box();
|
284 |
adinj_side_status_box();
|
285 |
adinj_side_donate_box();
|
286 |
adinj_side_info_box();
|
343 |
|
344 |
} else if (!isset($_GET['tab'])){
|
345 |
echo '<div id="message" class="updated below-h2"><p style="line-height:140%"><strong>';
|
346 |
+
echo "17th May 2012: New numeric values in some of the pull down boxes for post length and ad start/end positions. Please contact me ASAP if you spot any bugs, or odd behaviour via the <a href='http://wordpress.org/tags/ad-injection?forum_id=10'target='_new'>Ad Injection WordPress forum</a> or my ".'<a href="'.adinj_feedback_url().'" target="_new">quick feedback form</a>. If you like the plugin please consider making a donation using the PayPal box below :)'."<br/>And finally I've just released my first iPhone game called <a href='http://itunes.apple.com/us/app/solar-balls/id521551813?ls=1&mt=8' target='_new'>Solar Balls</a> - please have a look and consider playing it :)";
|
347 |
echo '</strong></p></div>';
|
348 |
}
|
349 |
}
|
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.14
|
7 |
Author: reviewmylife
|
8 |
Author URI: http://www.reviewmylife.co.uk/
|
9 |
License: GPLv2
|
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.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 |
|
@@ -616,6 +616,9 @@ If you do get any errors please use the 'Report a bug or give feedback' link on
|
|
616 |
|
617 |
== Changelog ==
|
618 |
|
|
|
|
|
|
|
619 |
= 1.2.0.13 =
|
620 |
* New option to exclude ads from blockquote and pre tags.
|
621 |
* New tag to exclude ads from specific parts of posts.
|
@@ -863,6 +866,9 @@ Fix 'Something badly wrong in num_rand_ads_to_insert' message that occurs on pag
|
|
863 |
|
864 |
== Upgrade Notice ==
|
865 |
|
|
|
|
|
|
|
866 |
= 1.2.0.13 =
|
867 |
* New option to exclude ads from blockquote and pre tags.
|
868 |
* New tag to exclude ads from specific parts of posts.
|
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.2
|
7 |
+
Stable tag: 1.2.0.14
|
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 |
|
616 |
|
617 |
== Changelog ==
|
618 |
|
619 |
+
= 1.2.0.14 =
|
620 |
+
* Add additional values to numeric pull down boxes. 6000-8000 for paragraph positions. And 7500 for post length boxes.
|
621 |
+
|
622 |
= 1.2.0.13 =
|
623 |
* New option to exclude ads from blockquote and pre tags.
|
624 |
* New tag to exclude ads from specific parts of posts.
|
866 |
|
867 |
== Upgrade Notice ==
|
868 |
|
869 |
+
= 1.2.0.14 =
|
870 |
+
* Add additional values to numeric pull down boxes. 6000-8000 for paragraph positions. And 7500 for post length boxes.
|
871 |
+
|
872 |
= 1.2.0.13 =
|
873 |
* New option to exclude ads from blockquote and pre tags.
|
874 |
* New tag to exclude ads from specific parts of posts.
|
themefuse.jpg
ADDED
Binary file
|
ui-tab-main.php
CHANGED
@@ -52,7 +52,7 @@ function adinj_placement_settings_box($ops){
|
|
52 |
<tr><td>Only show on posts longer than:</td><td>
|
53 |
<?php
|
54 |
$unit = adinj_counting_unit_description();
|
55 |
-
$ad_if_longer_settings = array('d',100,200,300,400,500,750,1000,1500,2000,2500,3000,5000,10000,15000,20000);
|
56 |
adinj_selection_box("top_ad_if_longer_than", $ad_if_longer_settings, $unit);
|
57 |
echo '</td><td><div class="adinj_home">';
|
58 |
adinj_selection_box("home_top_ad_if_longer_than", $ad_if_longer_settings, $unit);
|
@@ -197,7 +197,7 @@ JQUERYOPACITY;
|
|
197 |
</td><td>
|
198 |
<div class="random_ads_start_unit">
|
199 |
<?php
|
200 |
-
adinj_selection_box("random_ads_start_at", array(1,2,3,4,5,100,200,300,400,500,750,1000,1500,2000,3000,4000,5000,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), " ");
|
201 |
?>
|
202 |
</div>
|
203 |
</td>
|
@@ -244,7 +244,7 @@ JQUERYOPACITY;
|
|
244 |
</td><td>
|
245 |
<div class="random_ads_end_unit">
|
246 |
<?php
|
247 |
-
adinj_selection_box("random_ads_end_at", array(1,2,3,4,5,100,200,300,400,500,750,1000,1500,2000,3000,4000,5000,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), " ");
|
248 |
?>
|
249 |
</div>
|
250 |
</td>
|
@@ -708,7 +708,7 @@ function adinj_random_ad_limit_table(){
|
|
708 |
<?php
|
709 |
$prefixes = array("", "home", "archive");
|
710 |
$unit = adinj_counting_unit_description();
|
711 |
-
$ad_limit_settings = array('d',100,200,300,400,500,750,1000,1500,2000,2500,3000,5000,10000,15000,20000);
|
712 |
|
713 |
foreach ($prefixes as $prefix){
|
714 |
echo '<td><div class="adinj_'.$prefix.'">';
|
@@ -808,6 +808,32 @@ function adinj_unknown_cache_msg(){
|
|
808 |
<?php
|
809 |
}
|
810 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
function adinj_side_status_box(){
|
812 |
$ops = adinj_options();
|
813 |
?>
|
52 |
<tr><td>Only show on posts longer than:</td><td>
|
53 |
<?php
|
54 |
$unit = adinj_counting_unit_description();
|
55 |
+
$ad_if_longer_settings = array('d',100,200,300,400,500,750,1000,1500,2000,2500,3000,5000,7500,10000,15000,20000);
|
56 |
adinj_selection_box("top_ad_if_longer_than", $ad_if_longer_settings, $unit);
|
57 |
echo '</td><td><div class="adinj_home">';
|
58 |
adinj_selection_box("home_top_ad_if_longer_than", $ad_if_longer_settings, $unit);
|
197 |
</td><td>
|
198 |
<div class="random_ads_start_unit">
|
199 |
<?php
|
200 |
+
adinj_selection_box("random_ads_start_at", array(1,2,3,4,5,100,200,300,400,500,750,1000,1500,2000,3000,4000,5000,6000,7000,8000,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), " ");
|
201 |
?>
|
202 |
</div>
|
203 |
</td>
|
244 |
</td><td>
|
245 |
<div class="random_ads_end_unit">
|
246 |
<?php
|
247 |
+
adinj_selection_box("random_ads_end_at", array(1,2,3,4,5,100,200,300,400,500,750,1000,1500,2000,3000,4000,5000,6000,7000,8000,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20), " ");
|
248 |
?>
|
249 |
</div>
|
250 |
</td>
|
708 |
<?php
|
709 |
$prefixes = array("", "home", "archive");
|
710 |
$unit = adinj_counting_unit_description();
|
711 |
+
$ad_limit_settings = array('d',100,200,300,400,500,750,1000,1500,2000,2500,3000,5000,7500,10000,15000,20000);
|
712 |
|
713 |
foreach ($prefixes as $prefix){
|
714 |
echo '<td><div class="adinj_'.$prefix.'">';
|
808 |
<?php
|
809 |
}
|
810 |
|
811 |
+
function adinj_side_advert_box(){
|
812 |
+
$ops = adinj_options();
|
813 |
+
?>
|
814 |
+
<div class="postbox-container" style="width:258px;">
|
815 |
+
<div class="metabox-holder">
|
816 |
+
<div class="meta-box-sortables" style="min-height:50px;">
|
817 |
+
<div class="postbox">
|
818 |
+
<h3 class="hndle"><span><?php echo adinj_get_logo(); ?> Sponsors</span></h3>
|
819 |
+
<div class="inside" style="margin:5px;">
|
820 |
+
|
821 |
+
<?php
|
822 |
+
echo adinj_get_advert_1();
|
823 |
+
?>
|
824 |
+
|
825 |
+
</div>
|
826 |
+
</div>
|
827 |
+
</div>
|
828 |
+
</div>
|
829 |
+
</div>
|
830 |
+
<?php
|
831 |
+
}
|
832 |
+
|
833 |
+
function adinj_get_advert_1(){
|
834 |
+
return '<a href="http://themefuse.com/wp-themes-shop/?plugin=ad-injection" target="_blank"><img src="'. WP_PLUGIN_URL . '/ad-injection/themefuse.jpg" width="220" height="220" border="0" alt="themefuse" /></a>';
|
835 |
+
}
|
836 |
+
|
837 |
function adinj_side_status_box(){
|
838 |
$ops = adinj_options();
|
839 |
?>
|