Easy Plugin for AdSense - Version 5.02

Version Description

Removing unused code and trimming readme.txt.

=

Download this release

Release Info

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

Code changes from version 5.01 to 5.02

Files changed (3) hide show
  1. admin.php +1 -3
  2. easy-adsense-lite.php +6 -18
  3. readme.txt +7 -18
admin.php CHANGED
@@ -337,9 +337,7 @@ Colors:&nbsp; Normal:#<input style="width:55px;text-align:center;" id="ezBorderN
337
  <tr valign="top">
338
  <td width="50%" height="250px" valign="middle">
339
 
340
- <?php echo '<b>Support Options<br /> ' ; printf(__('Support %s by Donating Ad Space', 'easy-adsenser'), 'Easy AdSense') ; ?></b><br />
341
- <?php _e('Percentage of ad slots to share [Suggested: 5%]:', 'easy-adsenser') ; ?> <input style="width:30px;text-align:center;" id="ezMC" name="ezMC" value="<?php echo(stripslashes(htmlspecialchars($ezAdOptions['mc'])));?>" />%
342
- <br style="line-height: 12px;" />
343
 
344
  <b><?php _e('Link-backs to', 'easy-adsenser') ; ?> <a href="http://www.Thulasidas.com" target="_blank">Unreal Blog</a></b>
345
  <?php _e('(Consider showing at least one link.)', 'easy-adsenser') ; ?><br />
337
  <tr valign="top">
338
  <td width="50%" height="250px" valign="middle">
339
 
340
+ <?php echo '<b>Support Options<br /> ' ; ?></b><br />
 
 
341
 
342
  <b><?php _e('Link-backs to', 'easy-adsenser') ; ?> <a href="http://www.Thulasidas.com" target="_blank">Unreal Blog</a></b>
343
  <?php _e('(Consider showing at least one link.)', 'easy-adsenser') ; ?><br />
easy-adsense-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easy AdSense Lite
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 Lite</a>.
6
- Version: 5.01
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
@@ -124,8 +124,6 @@ if (!class_exists("ezAdSense")) {
124
  'title_gsearch' => '',
125
  'margin_gsearch' => 0,
126
  'text_gsearch' => $this->defaults['defaultText'],
127
- 'mc' => 0,
128
- 'allow_exitjunction' => 'unknown',
129
  'max_count' => 3,
130
  'max_link' => 0,
131
  'force_midad' => false,
@@ -296,12 +294,6 @@ if (!class_exists("ezAdSense")) {
296
  $ezAdOptions['limit_lu'] = $limit ;
297
  }
298
  $ezAdOptions['info'] = $this->info() ;
299
- if (isset($_POST['ezMC']))
300
- $ezAdOptions['mc'] = floatval($_POST['ezMC']);
301
- if (isset($_POST['ezAllowExitJunction']))
302
- $ezAdOptions['allow_exitjunction'] = 'Yes' ;
303
- else
304
- $ezAdOptions['allow_exitjunction'] = 'No' ;
305
 
306
  update_option($mOptions, $ezAdOptions);
307
  echo '<div class="updated"><p><strong>' ;
@@ -379,7 +371,6 @@ if (!class_exists("ezAdSense")) {
379
  var $ezMax = 99 ;
380
  var $urMax = 99 ;
381
  var $luMax = 4 ;
382
- var $mced = false ;
383
 
384
  function plugin_action($links, $file) {
385
  if ($file == plugin_basename(dirname(__FILE__).'/easy-adsense-lite.php')){
@@ -465,8 +456,6 @@ if (!class_exists("ezAdSense")) {
465
  if ($ezAdOptions['kill_cat'] && is_category()) return $content ;
466
  if ($ezAdOptions['kill_tag'] && is_tag()) return $content ;
467
  if ($ezAdOptions['kill_archive'] && is_archive()) return $content ;
468
- $mc = $ezAdOptions['mc'] ;
469
- $this->mced = false ;
470
  $this->ezMax = $ezAdOptions['max_count'] ;
471
  if ($ezAdOptions['force_widget']) $this->ezMax-- ;
472
  $this->urMax = $ezAdOptions['max_link'] ;
@@ -510,7 +499,7 @@ if (!class_exists("ezAdSense")) {
510
  $leadin =
511
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
512
  '<div class="ezAdsense adsense adsense-leadin" ' . $inline . '>' .
513
- $this->mc($mc, $ezAdOptions['text_leadin']) .
514
  ($urCount++ < $this->urMax ? $unreal : '') .
515
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
516
  }
@@ -545,7 +534,7 @@ if (!class_exists("ezAdSense")) {
545
  $midtext =
546
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
547
  '<div class="ezAdsense adsense adsense-midtext" ' . $inline . '>' .
548
- $this->mc($mc, $ezAdOptions['text_midtext']) .
549
  ($urCount++ < $this->urMax ? $unreal : '') .
550
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
551
  $content = substr_replace($content, $midtext.$repchar, $pickme, 2);
@@ -566,7 +555,7 @@ if (!class_exists("ezAdSense")) {
566
  $leadout =
567
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
568
  '<div class="ezAdsense adsense adsense-leadout" ' . $inline . '>' .
569
- $this->mc($mc, $ezAdOptions['text_leadout']) .
570
  ($urCount++ < $this->urMax ? $unreal : '') .
571
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
572
  }
@@ -621,7 +610,7 @@ if (!class_exists("ezAdSense")) {
621
  $this->leadin =
622
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
623
  '<div class="ezAdsense adsense adsense-leadin" ' . $inline . '>' .
624
- $this->mc($mc, $ezAdOptions['text_leadin']) .
625
  ($urCount++ < $this->urMax ? $unreal : '') .
626
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
627
  echo $this->leadin ;
@@ -671,7 +660,6 @@ if (!class_exists("ezAdSense")) {
671
  'Unreal</a></font></div>';
672
  echo $before_widget;
673
  if (!$ezAdOptions['kill_widget_title']) echo $before_title . $title . $after_title;
674
- $mc = $ezAdOptions['mc'] ;
675
  $margin = $ezAdOptions['margin_widget'] ;
676
  if ($ezAdOptions['kill_inline'])
677
  $inline = '' ;
@@ -679,7 +667,7 @@ if (!class_exists("ezAdSense")) {
679
  $inline = 'style="' . $show_widget . ';margin:' . $margin . 'px;' . $border. '"' ;
680
  echo stripslashes($ezAdOptions['info'] . "<!-- Widg[count: " . $ezCount . "] -->\n" .
681
  '<div class="ezAdsense adsense adsense-widget"><div ' . $inline. '>' .
682
- $this->mc($mc, $ezAdOptions['text_widget'], true) .
683
  ($urCount++ < $this->urMax ? $unreal : '') .
684
  "</div></div>\n" . $ezAdOptions['info'] . "\n") ;
685
  echo $after_widget;
3
  Plugin Name: Easy AdSense Lite
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 Lite</a>.
6
+ Version: 5.02
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
124
  'title_gsearch' => '',
125
  'margin_gsearch' => 0,
126
  'text_gsearch' => $this->defaults['defaultText'],
 
 
127
  'max_count' => 3,
128
  'max_link' => 0,
129
  'force_midad' => false,
294
  $ezAdOptions['limit_lu'] = $limit ;
295
  }
296
  $ezAdOptions['info'] = $this->info() ;
 
 
 
 
 
 
297
 
298
  update_option($mOptions, $ezAdOptions);
299
  echo '<div class="updated"><p><strong>' ;
371
  var $ezMax = 99 ;
372
  var $urMax = 99 ;
373
  var $luMax = 4 ;
 
374
 
375
  function plugin_action($links, $file) {
376
  if ($file == plugin_basename(dirname(__FILE__).'/easy-adsense-lite.php')){
456
  if ($ezAdOptions['kill_cat'] && is_category()) return $content ;
457
  if ($ezAdOptions['kill_tag'] && is_tag()) return $content ;
458
  if ($ezAdOptions['kill_archive'] && is_archive()) return $content ;
 
 
459
  $this->ezMax = $ezAdOptions['max_count'] ;
460
  if ($ezAdOptions['force_widget']) $this->ezMax-- ;
461
  $this->urMax = $ezAdOptions['max_link'] ;
499
  $leadin =
500
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
501
  '<div class="ezAdsense adsense adsense-leadin" ' . $inline . '>' .
502
+ $ezAdOptions['text_leadin'] .
503
  ($urCount++ < $this->urMax ? $unreal : '') .
504
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
505
  }
534
  $midtext =
535
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
536
  '<div class="ezAdsense adsense adsense-midtext" ' . $inline . '>' .
537
+ $ezAdOptions['text_midtext'] .
538
  ($urCount++ < $this->urMax ? $unreal : '') .
539
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
540
  $content = substr_replace($content, $midtext.$repchar, $pickme, 2);
555
  $leadout =
556
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
557
  '<div class="ezAdsense adsense adsense-leadout" ' . $inline . '>' .
558
+ $ezAdOptions['text_leadout'] .
559
  ($urCount++ < $this->urMax ? $unreal : '') .
560
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
561
  }
610
  $this->leadin =
611
  stripslashes($ezAdOptions['info'] . "<!-- Post[count: " . $ezCount . "] -->\n" .
612
  '<div class="ezAdsense adsense adsense-leadin" ' . $inline . '>' .
613
+ $ezAdOptions['text_leadin'] .
614
  ($urCount++ < $this->urMax ? $unreal : '') .
615
  "</div>\n" . $ezAdOptions['info'] . "\n") ;
616
  echo $this->leadin ;
660
  'Unreal</a></font></div>';
661
  echo $before_widget;
662
  if (!$ezAdOptions['kill_widget_title']) echo $before_title . $title . $after_title;
 
663
  $margin = $ezAdOptions['margin_widget'] ;
664
  if ($ezAdOptions['kill_inline'])
665
  $inline = '' ;
667
  $inline = 'style="' . $show_widget . ';margin:' . $margin . 'px;' . $border. '"' ;
668
  echo stripslashes($ezAdOptions['info'] . "<!-- Widg[count: " . $ezCount . "] -->\n" .
669
  '<div class="ezAdsense adsense adsense-widget"><div ' . $inline. '>' .
670
+ $ezAdOptions['text_widget'] .
671
  ($urCount++ < $this->urMax ? $unreal : '') .
672
  "</div></div>\n" . $ezAdOptions['info'] . "\n") ;
673
  echo $after_widget;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://buy.ads-ez.com/easy-adsense
4
  Tags: adsense, ad, ads, advertising, google
5
  Requires at least: 2.6
6
  Tested up to: 3.2
7
- Stable tag: 5.01
8
 
9
  Easy AdSense manages all aspects of Google AdSense for your blog: insert ads into posts and sidebar, and add a Google Search box. Easy and complete!
10
 
@@ -28,29 +28,17 @@ Easy AdSense provides a very easy way to generate revenue from your blog using G
28
  5. Simplest possible configuration interface -- nothing more than cutting and pasting AdSense code, and with sensible defaults for the few options present, all with clear instructions.
29
  6. Internationalized (multiple languages supported).
30
 
31
- Easy AdSense Lite is the freely distributed version of a premium plugin. The [Pro version](http://buy.ads-ez.com/easy-adsense/ "Pro version of the Easy AdSense plugin") gives you more benefits. It gives you filter to ensure that your ads show only on those pages that seem to comply with Google AdSense policies, which can be important since some comments may render your pages inconsistent with those policies. It 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. Also in the works for the Pro version is a compatibility mode, which solves the issue of the ad insertion messing up your page appearances when using some themes. These features will minimize your chance of getting banned. The Pro version costs $4.95, and is appropriate if you expect to make more than $100 of ad revenue from your site.
32
 
33
- If you feel that these features are a bit too much, consider my lean and mean AdSense plugin [AdSense Now!](http://www.thulasidas.com/plugins/adsense-now/ "The simplest possible way to AdSense enable your blog")
34
 
35
- Want to go beyond AdSense? Use my new plugin [Easy Ads](http://www.thulasidas.com/plugins/easy-ads/ "A new plugin to handle AdSense and its alternatives") that can handle [Clicksor](http://www.clicksor.com/pub/index.php?ref=105268 "Careful, don't double-date with AdSense and Clicksor, they get very jealous of each other!"), [BidVertiser](http://www.bidvertiser.com/bdv/bidvertiser/bdv_ref_publisher.dbm?Ref_Option=pub&Ref_PID=229404 "Another fine ad provider") or [Chitika](http://chitika.com/publishers.php?refid=manojt "Compatible with AdSense") and, of course, AdSense!
36
-
37
- PS: You'll need a [Google AdSense Account](http://adsense.google.com/).
38
-
39
- If you like Easy AdSense, you may want to check out my other plugins: [Theme Tweaker](http://www.thulasidas.com/plugins/theme-tweaker/ "To tweak the colors in your theme with no CSS/PHP editing") and [Easy WP LaTeX](/http://www.thulasidas.com/plugins/easy-latex/ "To display mathematical equations in your blog using LaTeX"). And my plugin for plugin authors: [Easy Translator](http://www.thulasidas.com/plugins/easy-translator/ "To translate any plugin (with internationalized strings) to your language.").
40
-
41
- = Coming Soon! =
42
-
43
- A major version upgrade is planned for later this year, which will be released as a new plugin, [Easy Google](http://www.thulasidas.com/plugins/easy-google/ "Easy Google, the next generation AdSense plugin"). This plugin will sport a modern, tabbed interface, and a completely re-written, refactored and optimized codebase and option data model, resulting in a more robust and extensible design, and better performance.
44
-
45
- = New in 5.01 =
46
-
47
- Documentation changes.
48
 
49
  == Upgrade Notice ==
50
 
51
- = 5.01 =
52
 
53
- Documentation changes.
54
 
55
  == Screenshots ==
56
 
@@ -154,6 +142,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
154
 
155
  == Change Log ==
156
 
 
157
  * V5.01: Documentation changes. [Oct 31, 2011]
158
  * V5.00: Moving the old Pro features to the Lite edition, and releasing it. [Oct 25, 2011]
159
  * V4.10: Removing unused, legacy code. [Oct 8, 2011]
4
  Tags: adsense, ad, ads, advertising, google
5
  Requires at least: 2.6
6
  Tested up to: 3.2
7
+ Stable tag: 5.02
8
 
9
  Easy AdSense manages all aspects of Google AdSense for your blog: insert ads into posts and sidebar, and add a Google Search box. Easy and complete!
10
 
28
  5. Simplest possible configuration interface -- nothing more than cutting and pasting AdSense code, and with sensible defaults for the few options present, all with clear instructions.
29
  6. Internationalized (multiple languages supported).
30
 
31
+ Easy AdSense Lite is the freely distributed version of a premium plugin. The [Pro version](http://buy.ads-ez.com/easy-adsense/ "Pro version of the Easy AdSense plugin") gives you more benefits. It gives you filter to ensure that your ads show only on those pages that seem to comply with Google AdSense policies, which can be important since some comments may render your pages inconsistent with those policies. It 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. These features will minimize your chance of getting banned. Also in the works for the Pro version is a compatibility mode, which solves the issue of the ad insertion messing up your page appearances when using some themes.
32
 
33
+ = New in 5.02 =
34
 
35
+ Removing unused code and trimming readme.txt.
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  == Upgrade Notice ==
38
 
39
+ = 5.02 =
40
 
41
+ Removing unused code and trimming readme.txt.
42
 
43
  == Screenshots ==
44
 
142
 
143
  == Change Log ==
144
 
145
+ * V5.02: Removing unused code and trimming readme.txt. [Nov 3, 2011]
146
  * V5.01: Documentation changes. [Oct 31, 2011]
147
  * V5.00: Moving the old Pro features to the Lite edition, and releasing it. [Oct 25, 2011]
148
  * V4.10: Removing unused, legacy code. [Oct 8, 2011]