Easy Plugin for AdSense - Version 5.15

Version Description

Minor changes to the admin page.

=

Download this release

Release Info

Developer manojtd
Plugin Icon 128x128 Easy Plugin for AdSense
Version 5.15
Comparing to
See all releases

Code changes from version 5.14 to 5.15

Files changed (5) hide show
  1. admin.php +3 -2
  2. easy-adsense-lite.php +1 -1
  3. myPlugins.php +53 -33
  4. readme.txt +6 -5
  5. tail-text.php +2 -1
admin.php CHANGED
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19
  */
20
 
21
  @include(dirname (__FILE__).'/myPlugins.php');
22
- $plgName = 'easy-adsense' ;
23
  $ezIsPro = false;
24
 
25
  echo '<script type="text/javascript" src="'. get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) . '/wz_tooltip.js"></script>' ;
@@ -38,7 +37,9 @@ else {
38
 
39
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
40
  <?php
41
- if (!$ezAdOptions['kill_rating']) renderRating($myPlugins[$plgName], $plgName) ;
 
 
42
  if (!$ezAdOptions['kill_invites']) renderInvite($myPlugins[$plgName], $plgName) ;
43
  ?>
44
  <table class="form-table">
19
  */
20
 
21
  @include(dirname (__FILE__).'/myPlugins.php');
 
22
  $ezIsPro = false;
23
 
24
  echo '<script type="text/javascript" src="'. get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) . '/wz_tooltip.js"></script>' ;
37
 
38
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
39
  <?php
40
+ $plgDir = dirname(__FILE__) ;
41
+ $plgName = 'easy-adsense' ;
42
+ if (!$ezAdOptions['kill_rating']) renderRating($myPlugins[$plgName], $plgDir) ;
43
  if (!$ezAdOptions['kill_invites']) renderInvite($myPlugins[$plgName], $plgName) ;
44
  ?>
45
  <table class="form-table">
easy-adsense-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easy AdSense
4
  Plugin URI: http://www.thulasidas.com/adsense
5
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
6
- Version: 5.14
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
3
  Plugin Name: Easy AdSense
4
  Plugin URI: http://www.thulasidas.com/adsense
5
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
6
+ Version: 5.15
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
myPlugins.php CHANGED
@@ -2,7 +2,52 @@
2
 
3
  $myPlugins = array() ;
4
 
5
- $needPHP53 = ' <p> <font color="#c00">Note that this plugin requires PHPv5.0+. Please use the Lite version first to ensure that it works before buying the Pro version. If it does not work on your web host, consider the amazing <a href="http://buy.thulasidas.com/easy-adsense/" title="The most popular plugin to insert AdSense on your blog"><em><strong>Easy AdSense Pro</strong></em></a> for all your advertising needs. It can insert non-AdSense blocks as well.</font></p>' ;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  $myPlugins['easy-adsense'] =
8
  array('value' => 'Easy AdSense',
@@ -35,27 +80,6 @@ $myPlugins['adsense-now'] =
35
  <li>Ability to suppress your ads on some IPs to prevent accidental clicks on your own ads -- one of the main reasons for getting your AdSense account banned. It will also help prevent intentional clicks (by your jealous competitor, for instance).</li>
36
  <li>A compatibility mode, if the ad insertion messes up the page layout. Some poorly coded themes may get your pages messed up by ad insertion. The compatibility mode will help prevent it.</li>') ;
37
 
38
- $myPlugins['easy-ads'] =
39
- array('value' => 'Easy Ads',
40
- 'support' => 'YBB5HXSJ97C7E',
41
- 'price' => '8.95',
42
- 'share' => true,
43
- 'long' => false,
44
- 'blurb' => '<em><strong>Easy Ads</strong></em> is a multi-provider advertising plugin. This streamlined plugin ',
45
- 'desc' => 'showcases AdSense and its alternatives on your blog',
46
- 'title' => '<em><strong>Easy Ads</strong></em> provides a unified and intuitive interface to manage multiple ad providers on your blog. It lets you insert ads provided by <a href="http://www.clicksor.com/pub/index.php?ref=105268" title="Careful, do not double-date with AdSense and Clicksor, they get very jealous of each other!">Clicksor</a>, <a href="http://www.bidvertiser.com/bdv/bidvertiser/bdv_ref_publisher.dbm?Ref_Option=pub&amp;Ref_PID=229404" title="Another fine ad provider">BidVertiser</a> or <a href="http://chitika.com/publishers.php?refid=manojt" title="Compatible with AdSense">Chitika</a> into your existing and future blog posts and pages.',
47
- 'pro' => 'The Lite version of <em><strong>Easy Ads</strong></em> is fully functional. In the Pro version, you get a filter to minimize the chance of your AdSense and other accounts getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google and others. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm (for each provider). The Pro version also gives you control over other global options like activating and deactivating various ad providers, resetting all options etc. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons the ad providers may ban you.' . $needPHP53) ;
48
- $myPlugins['easy-google'] =
49
- array('value' => 'Easy Google',
50
- 'support' => '6M4A94KQMA9UL',
51
- 'price' => '4.95',
52
- 'share' => true,
53
- 'long' => false,
54
- 'blurb' => '<em><strong>Easy Google</strong></em> is a single-provider version of <em><strong>Easy Ads</strong></em> specialized for Google AdSense serving. If you are planning to use more than two providers, it may be easier and more economical to use <em><strong>Easy Ads</strong></em>. <em><strong>Easy Google</strong></em> ',
55
- 'desc' => 'provides you with a fully streamlined interface to manage Google AdSense on your blog.',
56
- 'title' => '<a href="http://buy.thulasidas.com/plugins/easy-google/" title="A new plugin to handle Google"><em><strong>Easy Google</strong></em></a> gives you a specialized and intuitive interface to manage AdSense ads on your blog, with size selectors, widget options, color-picker to customize your colors, etc. It is a new generation plugin with a fancy, tabbed interface.',
57
- 'pro' => 'The Lite version of <em><strong>Easy Google</strong></em> is fully functional. But the Pro version gives you more features and control. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.' . $needPHP53) ;
58
-
59
  $myPlugins['theme-tweaker'] =
60
  array('value' => 'Theme Tweaker',
61
  'support' => 'UKPDMR89Z22DN',
@@ -180,8 +204,7 @@ ENDINVITE;
180
  }
181
  }
182
  if (!function_exists('renderRating')) {
183
- function renderRating($plg, $plgName) {
184
- $plgDir = dirname(__FILE__) ;
185
  $plgCTime = filemtime($plgDir) ;
186
  $days = ( $plgCTime - time() )/ 60/60/24 ;
187
  $plgLongName = $plg['value'] ;
@@ -190,14 +213,15 @@ if (!function_exists('renderRating')) {
190
  $msg = "You've installed this plugin over a month ago." ;
191
  else
192
  $msg = "You will find it feature-rich and robust." ;
193
- $plg = basename($plgDir) ;
 
194
  echo <<<ENDRATING
195
  <div class='updated' id='rating'>
196
  <p>Thanks for using <i><b>$plgLongName</b></i>! $msg<br />
197
- If it works and your are satisfied, why not <a href='http://wordpress.org/extend/plugins/$plg/'>rate it</a>
198
- and <a href='http://wordpress.org/extend/plugins/$plg/'>recommend it</a> to others? :-)
199
- <a id='hideRating' href='#' style='float:right; display:block; border:none;' onmouseover="Tip('$hideTip', WIDTH, 200, CLICKCLOSE, true, TITLE, 'Hide this Box')" onmouseout="UnTip()" onclick = "hideme()">
200
- <small style='font-weight:normal;'>Don't show this anymore</small></a></p></div>
201
  <input type="hidden" id="killRating" name="killRating" value="" />
202
  <script type = "text/javascript">
203
  function hideRating() {
@@ -212,7 +236,3 @@ function hideme() {
212
  ENDRATING;
213
  }
214
  }
215
- ?>
216
-
217
-
218
-
2
 
3
  $myPlugins = array() ;
4
 
5
+ $needPHP5 = ' <p> <font color="#c00">Note that this plugin requires PHPv5.0+. Please use the Lite version first to ensure that it works before buying the Pro version. If it does not work on your web host, consider the amazing <a href="http://buy.thulasidas.com/easy-adsense/" title="The most popular plugin to insert AdSense on your blog"><em><strong>Easy AdSense Pro</strong></em></a> for all your advertising needs. It can insert non-AdSense blocks as well.</font></p>' ;
6
+
7
+ $myPlugins['ezpaypal-pro'] =
8
+ array('value' => 'ezPayPal',
9
+ 'support' => 'YBB5HXSJ97C7E',
10
+ 'price' => '9.95',
11
+ 'share' => false,
12
+ 'long' => false,
13
+ 'blurb' => '<em><strong>ezPayPal Pro</strong></em> is the simplest possible way to sell your digital goods online. This standalone PHP package ',
14
+ 'desc' => 'helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link',
15
+ 'title' => 'Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you.',
16
+ 'pro' => 'The Pro version adds a whole slew of features: Data Security, Sandbox Mode, Template Editors, Automatic Handling of returns, refunds, e-chques etc, Sales Editor, Email Tools, Product Version support, Batch Product File Uploads, Data backup/restore/migration tools and so on. It can also be enhanced with optional modules like Affiliate Package, Reporting Tools etc. This powerful and professional package provides you with a complete and robust solution for your online business. <em><strong>ezPayPal Pro</strong></em> provides the most robust and feature-complete solution to sell your digital goods online. It helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow runs fully automated and designed to run unattended. <em><strong>ezPayPal</strong></em> manages all aspects of selling your digital goods.') ;
17
+
18
+ $myPlugins['easy-ads'] =
19
+ array('value' => 'Easy Ads',
20
+ 'support' => 'YBB5HXSJ97C7E',
21
+ 'price' => '8.95',
22
+ 'share' => true,
23
+ 'long' => false,
24
+ 'blurb' => '<em><strong>Easy Ads</strong></em> is a multi-provider advertising plugin. This streamlined plugin ',
25
+ 'desc' => 'showcases AdSense and its alternatives on your blog',
26
+ 'title' => '<em><strong>Easy Ads</strong></em> provides a unified and intuitive interface to manage multiple ad providers on your blog. It lets you insert ads provided by <a href="http://www.clicksor.com/pub/index.php?ref=105268" title="Careful, do not double-date with AdSense and Clicksor, they get very jealous of each other!">Clicksor</a>, <a href="http://www.bidvertiser.com/bdv/bidvertiser/bdv_ref_publisher.dbm?Ref_Option=pub&amp;Ref_PID=229404" title="Another fine ad provider">BidVertiser</a> or <a href="http://chitika.com/publishers.php?refid=manojt" title="Compatible with AdSense">Chitika</a> into your existing and future blog posts and pages.',
27
+ 'pro' => 'The Lite version of <em><strong>Easy Ads</strong></em> is fully functional. In the Pro version, you get a filter to minimize the chance of your AdSense and other accounts getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google and others. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm (for each provider). The Pro version also gives you control over other global options like activating and deactivating various ad providers, resetting all options etc. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons the ad providers may ban you.' . $needPHP5) ;
28
+
29
+ $myPlugins['easy-paypal'] =
30
+ array('value' => 'Easy PayPal',
31
+ 'support' => 'YBB5HXSJ97C7E',
32
+ 'price' => '6.95',
33
+ 'share' => false,
34
+ 'long' => false,
35
+ 'blurb' => '<em><strong>Easy PayPal</strong></em> is the plugin version of ezPayPal, the simplest possible way to sell your digital goods online. This premium plugin ',
36
+ 'desc' => 'helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link',
37
+ 'title' => 'Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell from your blog? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you.',
38
+ 'pro' => 'The Pro version adds a whole slew of features: Data Security, Sandbox Mode, Template Editors, Automatic Handling of returns, refunds, e-chques etc, Sales Editor, Email Tools, Product Version support, Batch Product File Uploads, Data backup/restore/migration tools and so on. It can also be enhanced with optional modules like Affiliate Package, Reporting Tools etc. This powerful and professional package provides you with a complete and robust solution for your online business. <em><strong>ezPayPal Pro</strong></em> provides the most robust and feature-complete solution to sell your digital goods online. It helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow runs fully automated and designed to run unattended. <em><strong>ezPayPal</strong></em> manages all aspects of selling your digital goods.') ;
39
+
40
+ $myPlugins['google-adsense'] =
41
+ array('value' => 'Google AdSense',
42
+ 'support' => '6M4A94KQMA9UL',
43
+ 'price' => '5.95',
44
+ 'share' => true,
45
+ 'long' => false,
46
+ 'hide' => true,
47
+ 'blurb' => '<em><strong>Google AdSense</strong></em> is a single-provider version of <em><strong>Easy Ads</strong></em> specialized for Google AdSense serving. If you are planning to use more than two providers, it may be easier and more economical to use <em><strong>Easy Ads</strong></em>. <em><strong>Google AdSense</strong></em> ',
48
+ 'desc' => 'provides you with a fully streamlined interface to manage Google AdSense on your blog.',
49
+ 'title' => '<a href="http://buy.thulasidas.com/plugins/google-adsense/" title="A new plugin to handle Google"><em><strong>Google AdSense</strong></em></a> gives you a specialized and intuitive interface to manage AdSense ads on your blog, with size selectors, widget options, color-picker to customize your colors, etc. It is a new generation plugin with a fancy, tabbed interface.',
50
+ 'pro' => 'The Lite version of <em><strong>Google AdSense</strong></em> is fully functional. But the Pro version gives you more features and control. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.' . $needPHP5) ;
51
 
52
  $myPlugins['easy-adsense'] =
53
  array('value' => 'Easy AdSense',
80
  <li>Ability to suppress your ads on some IPs to prevent accidental clicks on your own ads -- one of the main reasons for getting your AdSense account banned. It will also help prevent intentional clicks (by your jealous competitor, for instance).</li>
81
  <li>A compatibility mode, if the ad insertion messes up the page layout. Some poorly coded themes may get your pages messed up by ad insertion. The compatibility mode will help prevent it.</li>') ;
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  $myPlugins['theme-tweaker'] =
84
  array('value' => 'Theme Tweaker',
85
  'support' => 'UKPDMR89Z22DN',
204
  }
205
  }
206
  if (!function_exists('renderRating')) {
207
+ function renderRating($plg, $plgDir, $killable = true) {
 
208
  $plgCTime = filemtime($plgDir) ;
209
  $days = ( $plgCTime - time() )/ 60/60/24 ;
210
  $plgLongName = $plg['value'] ;
213
  $msg = "You've installed this plugin over a month ago." ;
214
  else
215
  $msg = "You will find it feature-rich and robust." ;
216
+ $plgKey = basename($plgDir) ;
217
+ if (!$killable) $display = "style='display:none'" ;
218
  echo <<<ENDRATING
219
  <div class='updated' id='rating'>
220
  <p>Thanks for using <i><b>$plgLongName</b></i>! $msg<br />
221
+ If it works and your are satisfied, why not <a href='http://wordpress.org/extend/plugins/$plgKey/'>rate it</a>
222
+ and <a href='http://wordpress.org/extend/plugins/$plgKey/'>recommend it</a> to others? :-)
223
+ <small style='font-weight:normal;'><a id='hideRating' $display href='#' style='float:right; display:block; border:none;' onmouseover="Tip('$hideTip', WIDTH, 200, CLICKCLOSE, true, TITLE, 'Hide this Box')" onmouseout="UnTip()" onclick = "hideme()">
224
+ Don't show this anymore</a></small></p></div>
225
  <input type="hidden" id="killRating" name="killRating" value="" />
226
  <script type = "text/javascript">
227
  function hideRating() {
236
  ENDRATING;
237
  }
238
  }
 
 
 
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Easy AdSense ===
2
  Contributors: manojtd
3
  Donate link: http://affiliates.thulasidas.com/
4
- Tags: adsense, ad, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.4
7
- Stable tag: 5.14
8
 
9
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
10
 
@@ -32,13 +32,13 @@ Easy AdSense is the freely distributed version of a premium plugin. The [Pro ver
32
 
33
  = New in this Release =
34
 
35
- Testing compatibility with WP 3.4
36
 
37
  == Upgrade Notice ==
38
 
39
- = 5.14 =
40
 
41
- Testing compatibility with WP 3.4
42
 
43
  == Screenshots ==
44
 
@@ -122,6 +122,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
122
 
123
  == Change Log ==
124
 
 
125
  * V5.14: Testing compatibility with WP 3.4. [July 10, 2012]
126
  * V5.13: Updating translations. Adding some text on the admin page about rating. [June 12, 2012]
127
  * V5.12: Documentation and admin updates. Translation interface changes. [May 24, 2012]
1
  === Easy AdSense ===
2
  Contributors: manojtd
3
  Donate link: http://affiliates.thulasidas.com/
4
+ Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.4
7
+ Stable tag: 5.15
8
 
9
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
10
 
32
 
33
  = New in this Release =
34
 
35
+ Minor changes to the admin page.
36
 
37
  == Upgrade Notice ==
38
 
39
+ = 5.15 =
40
 
41
+ Minor changes to the admin page.
42
 
43
  == Screenshots ==
44
 
122
 
123
  == Change Log ==
124
 
125
+ * V5.15: Minor changes to the admin page. [July 18, 2012]
126
  * V5.14: Testing compatibility with WP 3.4. [July 10, 2012]
127
  * V5.13: Updating translations. Adding some text on the admin page about rating. [June 12, 2012]
128
  * V5.12: Documentation and admin updates. Translation interface changes. [May 24, 2012]
tail-text.php CHANGED
@@ -45,6 +45,7 @@ function makeTextWithTooltipTag($plg, $text, $tip, $title='', $width='')
45
  return $return ;
46
  }
47
  function renderPlg($name, $plg) {
 
48
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
49
  if ($plg['kind'] != '' && $plg['kind'] != 'plugin') return ;
50
  $value = '<em><strong>'.$plg['value'].'</strong></em>';
@@ -102,7 +103,7 @@ function renderBook($name, $plg) {
102
  <?php _e("Or, if you still need help, you can raise a support question.", 'easy-adsenser') ?> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=<?php echo $myPlugins[$plgName]['support'] ; ?>" title="<?php _e('Ask a support question via PayPal @ $0.95', 'easy-adsenser') ; ?>"> <?php _e("[Request Paid Support]", 'easy-adsenser') ?></a>
103
  </li>
104
  <li>
105
- <?php _e('Check out my other plugin efforts:', 'easy-adsenser') ; ?>
106
 
107
  <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
108
 
45
  return $return ;
46
  }
47
  function renderPlg($name, $plg) {
48
+ if (!empty($plg['hide']) && $plg['hide']) return ;
49
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
50
  if ($plg['kind'] != '' && $plg['kind'] != 'plugin') return ;
51
  $value = '<em><strong>'.$plg['value'].'</strong></em>';
103
  <?php _e("Or, if you still need help, you can raise a support question.", 'easy-adsenser') ?> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=<?php echo $myPlugins[$plgName]['support'] ; ?>" title="<?php _e('Ask a support question via PayPal @ $0.95', 'easy-adsenser') ; ?>"> <?php _e("[Request Paid Support]", 'easy-adsenser') ?></a>
104
  </li>
105
  <li>
106
+ <?php _e('Check out my other plugin and PHP efforts:', 'easy-adsenser') ; ?>
107
 
108
  <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
109