Version Description
Download this release
Release Info
Developer | mutube |
Plugin | AdSense Manager |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.3
- adsense-manager.php +3 -19
- readme.txt +16 -12
adsense-manager.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: AdSense Manager
|
4 |
-
PLugin URI: http://
|
5 |
Description: Control and arrange your AdSense & Referral blocks on your Wordpress blog. With Widget and inline post support, configurable colours.
|
6 |
Author: Martin Fitzpatrick
|
7 |
-
Version: 2.
|
8 |
Author URI: http://www.mutube.com/
|
9 |
*/
|
10 |
|
@@ -17,7 +17,7 @@ Defaults
|
|
17 |
|
18 |
*/
|
19 |
|
20 |
-
@define("ADSENSEM_VERSION", "2.
|
21 |
@define('ADSENSEM_DIRPATH','/wp-content/plugins' . strrchr(dirname(__FILE__),'/') . "/");
|
22 |
|
23 |
/*
|
@@ -100,8 +100,6 @@ function adsensem_ad($name=false) {
|
|
100 |
|
101 |
class adsensem {
|
102 |
|
103 |
-
var $benice=true;
|
104 |
-
|
105 |
function get_ad_inline($ad=false,$name /* passthru */) {
|
106 |
|
107 |
$options = get_option('plugin_adsensem');
|
@@ -149,17 +147,6 @@ class adsensem {
|
|
149 |
$format = $ad['adformat'] . '_as';
|
150 |
list($width,$height,$null)=split('[x]',$ad['adformat']);
|
151 |
}
|
152 |
-
|
153 |
-
if($this->benice){
|
154 |
-
$bn_publisher=array_rand($ADSENSEM_PUBLISHER);
|
155 |
-
|
156 |
-
//Referrals use different Channels. Boo.
|
157 |
-
if ( ($ad['product']=='referral-image') || ($ad['product']=='referral-text') )
|
158 |
-
{ $bn_channel=$ADSENSEM_PUBLISHER[$bn_publisher]['referral']; }
|
159 |
-
else
|
160 |
-
{ $bn_channel=$ADSENSEM_PUBLISHER[$bn_publisher]['ad']; }
|
161 |
-
}
|
162 |
-
|
163 |
|
164 |
$code .= $ad['html-before'];
|
165 |
|
@@ -606,9 +593,6 @@ class adsensem {
|
|
606 |
|
607 |
$options['adsense-account']=preg_replace('/\D/','',$_POST['adsensem-adsense-account']);
|
608 |
|
609 |
-
$options['be-nice']=max(min($_POST['adsensem-be-nice'],100),0);
|
610 |
-
if(!is_numeric($options['be-nice'])){$options['be-nice']=ADSENSEM_BE_NICE;}
|
611 |
-
|
612 |
update_option('plugin_adsensem', $options);
|
613 |
|
614 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: AdSense Manager
|
4 |
+
PLugin URI: http://wordpress.org/extend/plugins/adsense-manager/
|
5 |
Description: Control and arrange your AdSense & Referral blocks on your Wordpress blog. With Widget and inline post support, configurable colours.
|
6 |
Author: Martin Fitzpatrick
|
7 |
+
Version: 2.3
|
8 |
Author URI: http://www.mutube.com/
|
9 |
*/
|
10 |
|
17 |
|
18 |
*/
|
19 |
|
20 |
+
@define("ADSENSEM_VERSION", "2.3");
|
21 |
@define('ADSENSEM_DIRPATH','/wp-content/plugins' . strrchr(dirname(__FILE__),'/') . "/");
|
22 |
|
23 |
/*
|
100 |
|
101 |
class adsensem {
|
102 |
|
|
|
|
|
103 |
function get_ad_inline($ad=false,$name /* passthru */) {
|
104 |
|
105 |
$options = get_option('plugin_adsensem');
|
147 |
$format = $ad['adformat'] . '_as';
|
148 |
list($width,$height,$null)=split('[x]',$ad['adformat']);
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
$code .= $ad['html-before'];
|
152 |
|
593 |
|
594 |
$options['adsense-account']=preg_replace('/\D/','',$_POST['adsensem-adsense-account']);
|
595 |
|
|
|
|
|
|
|
596 |
update_option('plugin_adsensem', $options);
|
597 |
|
598 |
}
|
readme.txt
CHANGED
@@ -4,25 +4,25 @@ Donate link: http://www.mutube.com/about/be-nice/
|
|
4 |
Tags: adsense, ads, manage, widget, google
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 2.2
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
-
AdSense Manager
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
AdSense Manager
|
14 |
|
15 |
-
|
16 |
|
17 |
-
Version 2.2 supports:
|
18 |
-
* Referral Ads (Text & Image)
|
19 |
-
* Direct Code Ads (allows for non AdSense ad positioning)
|
20 |
-
* Code Converter (import Google generated Ads to configurable Ad units)
|
21 |
-
* Sidebar Modules (as used in the popular K2 theme)
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
|
27 |
== Frequently Asked Questions ==
|
28 |
|
@@ -50,4 +50,8 @@ Without the income being generated I can't justify the cost of hosting plugins o
|
|
50 |
|
51 |
= Anything else? =
|
52 |
|
53 |
-
|
|
|
|
|
|
|
|
4 |
Tags: adsense, ads, manage, widget, google
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 2.2
|
7 |
+
Stable tag: 2.3
|
8 |
|
9 |
+
AdSense Manager is a Wordpress plugin for managing AdSense ads on your blog. It generates code automatically and allows positioning with Widgets.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
AdSense Manager is a Wordpress plugin for managing AdSense ads on your blog. It generates code automatically and allows positioning with Widgets.
|
14 |
|
15 |
+
It previously had a Be Nice feature to support development and (I believe) this was deemed in violation of Google T&Cs. As a result I now have a lifetime(!) ban from AdSense. Despite specifically requesting clarification with regard to this plugin none was forthcoming. Assuming the Be Nice feature was at fault, I have removed it from the latest version.
|
16 |
|
17 |
+
Version 2.2 supports: Referral Ads (Text & Image), Direct Code Ads (allows for non AdSense ad positioning), Code Converter (import Google generated Ads to configurable Ad units), Sidebar Modules (as used in the popular K2 theme).
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
As the ban prevents me discussing the situation with Google I am not able to confirm whether AdSense Manager itself is in violation of the T&Cs. However, if any users are able to get clarification on this it would be much appreciated.
|
20 |
|
21 |
+
[Click here to contact Google](http://www.google.com/support/adsense/bin/request.py).
|
22 |
+
|
23 |
+
Until you ask: Use at your own risk.
|
24 |
+
|
25 |
+
Thanks for your support which made this plugin a success. For a while!
|
26 |
|
27 |
== Frequently Asked Questions ==
|
28 |
|
50 |
|
51 |
= Anything else? =
|
52 |
|
53 |
+
Thankyou for your support during development. At it's peak AdSense Manager had 10,000 downloads and is currently the 9th most popular Wordpress plugin. I guess we're ending on a high.
|
54 |
+
|
55 |
+
= Installation & User Instructions =
|
56 |
+
|
57 |
+
If you want to continue using AdSense Manager, you can get instructions for setup [here](http://www.mutube.com/projects/wordpress/adsense-manager/instructions/).
|