Easy Plugin for AdSense - Version 5.07

Version Description

= 5.06 =

Code clean up -- removing unused functions, indenting the code.

Download this release

Release Info

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

Code changes from version 5.06 to 5.07

Files changed (5) hide show
  1. admin.php +1 -1
  2. easy-adsense-lite.php +1 -1
  3. myPlugins.php +7 -4
  4. readme.txt +3 -2
  5. tail-text.php +10 -8
admin.php CHANGED
@@ -36,7 +36,7 @@ else {
36
  <h2 title="<?php echo $this->info(false) ?>">Easy AdSense Lite Setup <a href="http://validator.w3.org/" target="_blank"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" title="Easy AdSense Lite Admin Page is certified Valid XHTML 1.0 Transitional" height="31" width="88" class="alignright"/></a>
37
  </h2>
38
  <?php
39
- renderInvite($myPlugins[$plgName]) ;
40
  ?>
41
  <table class="form-table">
42
  <tr><th scope="row"><h3><?php _e('Instructions', 'easy-adsenser') ; ?></h3></th></tr>
36
  <h2 title="<?php echo $this->info(false) ?>">Easy AdSense Lite Setup <a href="http://validator.w3.org/" target="_blank"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" title="Easy AdSense Lite Admin Page is certified Valid XHTML 1.0 Transitional" height="31" width="88" class="alignright"/></a>
37
  </h2>
38
  <?php
39
+ renderInvite($myPlugins[$plgName], $plgName) ;
40
  ?>
41
  <table class="form-table">
42
  <tr><th scope="row"><h3><?php _e('Instructions', 'easy-adsenser') ; ?></h3></th></tr>
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.06
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
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.07
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
myPlugins.php CHANGED
@@ -28,7 +28,8 @@ $myPlugins['adsense-now'] =
28
  'blurb' => '<em><strong>AdSense Now!</strong></em> is an updated version of another popular (downloaded about 150,000 times) WordPress plugin. This premium plugin ',
29
  'desc' => 'gets you started with Google AdSense. No mess, no fuss.',
30
  'title' => '<em><strong>AdSense Now!</strong></em> is the simplest possible way to generate revenue from your blog using Google AdSense. Aiming at simplicity, <em><strong>AdSense Now!</strong></em> does only one thing: it puts your AdSense code in up to three spots in your posts and pages (both existing ones and those yet to be written).',
31
- 'pro' => 'The Lite version of <em><strong>AdSense Now!</strong></em> is fully functional. 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.') ;
 
32
 
33
  $myPlugins['easy-ads'] =
34
  array('value' => 'Easy Ads',
@@ -83,7 +84,9 @@ $myPlugins['theme-tweaker'] =
83
  'blurb' =>'<em><strong>Theme Tweaker</strong></em> is a remarkable plugin that ',
84
  'desc' => 'lets you modify the colors in your theme with no CSS/PHP editing.',
85
  'title' => '<em><strong>Theme Tweaker</strong></em> displays the existing colors from your current theme, and gives you a color picker to replace them. It also lets you change them in bulk, like invert all colors, use grey scale etc.',
86
- 'pro' => 'Note that <em><strong>Theme Tweaker</strong></em> may not work with some themes. Please verify its suitability using the Lite version first. The Lite version of the plugin is fully functional. The Pro version lets you generate your own child themes.') ;
 
 
87
 
88
  $myPlugins['easy-latex'] =
89
  array('value' => 'Easy WP LaTeX',
@@ -121,7 +124,7 @@ $myPlugins['unreal-universe'] =
121
  'pro' => '',
122
  'isBook' => true) ;
123
 
124
- function renderInvite($plg) {
125
  $plgLongName = $plg['value'] ;
126
  $plgPrice = $plg['price'] ;
127
  $benefits = $plg['benefits'] ;
@@ -150,7 +153,7 @@ function buttonwhich(message) {
150
  document.getElementById("nbutton").disabled = 'true';
151
  document.getElementById("nbutton").value = 'Thank you for using $plgLongName Lite!';
152
  setTimeout('hideInvite()', 2000);
153
- if (message == 'Yes') window.open('http://buy.ads-ez.com/easy-adsense') ;
154
  }
155
  </script>
156
  </div>
28
  'blurb' => '<em><strong>AdSense Now!</strong></em> is an updated version of another popular (downloaded about 150,000 times) WordPress plugin. This premium plugin ',
29
  'desc' => 'gets you started with Google AdSense. No mess, no fuss.',
30
  'title' => '<em><strong>AdSense Now!</strong></em> is the simplest possible way to generate revenue from your blog using Google AdSense. Aiming at simplicity, <em><strong>AdSense Now!</strong></em> does only one thing: it puts your AdSense code in up to three spots in your posts and pages (both existing ones and those yet to be written).',
31
+ 'pro' => 'The Lite version of <em><strong>AdSense Now!</strong></em> is fully functional. 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.',
32
+ 'benefits' => $myPlugins['easy-adsense']['benefits']) ;
33
 
34
  $myPlugins['easy-ads'] =
35
  array('value' => 'Easy Ads',
84
  'blurb' =>'<em><strong>Theme Tweaker</strong></em> is a remarkable plugin that ',
85
  'desc' => 'lets you modify the colors in your theme with no CSS/PHP editing.',
86
  'title' => '<em><strong>Theme Tweaker</strong></em> displays the existing colors from your current theme, and gives you a color picker to replace them. It also lets you change them in bulk, like invert all colors, use grey scale etc.',
87
+ 'pro' => 'Note that <em><strong>Theme Tweaker</strong></em> may not work with some themes. Please verify its suitability using the Lite version first. The Lite version of the plugin is fully functional. The Pro version lets you create and save your tweaked <code>style.css</code> files, and even generate your own child themes!',
88
+ 'benefits' => '<li>Ability to generate and download <code>style.css</code> files with your modified colors.</li>
89
+ <li>Ability to create a child theme so that your changes can be applied even when the underlying theme is updated.</li>') ;
90
 
91
  $myPlugins['easy-latex'] =
92
  array('value' => 'Easy WP LaTeX',
124
  'pro' => '',
125
  'isBook' => true) ;
126
 
127
+ function renderInvite($plg, $plgName) {
128
  $plgLongName = $plg['value'] ;
129
  $plgPrice = $plg['price'] ;
130
  $benefits = $plg['benefits'] ;
153
  document.getElementById("nbutton").disabled = 'true';
154
  document.getElementById("nbutton").value = 'Thank you for using $plgLongName Lite!';
155
  setTimeout('hideInvite()', 2000);
156
+ if (message == 'Yes') window.open('http://buy.ads-ez.com/$plgName') ;
157
  }
158
  </script>
159
  </div>
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.06
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
 
@@ -30,7 +30,7 @@ Easy AdSense provides a very easy way to generate revenue from your blog using G
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.06 =
34
 
35
  Code clean up -- removing unused functions, indenting the code.
36
 
@@ -143,6 +143,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
143
 
144
  == Change Log ==
145
 
 
146
  * V5.06: Code clean up -- removing unused functions, indenting the code. [Nov 15, 2011]
147
  * V5.05: Minor bug fixes. [Nov 15, 2011]
148
  * V5.04: Updating Korean translation [.mo file was missing in V5.03]. [Nov 13, 2011]
4
  Tags: adsense, ad, ads, advertising, google
5
  Requires at least: 2.6
6
  Tested up to: 3.2
7
+ Stable tag: 5.07
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
 
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 this Release =
34
 
35
  Code clean up -- removing unused functions, indenting the code.
36
 
143
 
144
  == Change Log ==
145
 
146
+ * V5.07: Minor fixes. [Nov 16, 2011]
147
  * V5.06: Code clean up -- removing unused functions, indenting the code. [Nov 15, 2011]
148
  * V5.05: Minor bug fixes. [Nov 15, 2011]
149
  * V5.04: Updating Korean translation [.mo file was missing in V5.03]. [Nov 13, 2011]
tail-text.php CHANGED
@@ -53,12 +53,13 @@ function renderPlg($name, $plg) {
53
  $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b> ' ;
54
  $text = $link . $desc ;
55
  $price = $plg['price'] ;
56
- $moreInfo = " <a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
57
- $liteVersion = " <a href='http://buy.ads-ez.com/$name/$name.zip' title='Download the Lite version of $value'>Get Lite Version</a> " ;
58
- $proVersion = " <a href='http://buy.ads-ez.com/$name' title='Buy the Pro version of $value for \$$price'>Get Pro Version</a><br />" ;
59
  $why = "<a href='http://buy.ads-ez.com/$name' title='Pro version of the $name plugin'><img src='https://www.paypalobjects.com/en_GB/SG/i/btn/btn_buynowCC_LG.gif' border='0' alt='PayPal — The safer, easier way to pay online.' class='alignright' /></a>
60
  <br />".$plg['pro'] ;
61
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
 
62
  makeTextWithTooltip($moreInfo, "Read more about $value at its own page.<br />".$title, "More Information about $value", 300) .
63
  makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) .
64
  makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
@@ -73,15 +74,16 @@ function renderBook($name, $plg) {
73
  $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b> ' ;
74
  $text = $link . $desc ;
75
  $price = $plg['price'] ;
76
- $moreInfo = " <a href='$url' title='More info about $value at Unreal Blog'>More Info</a> " ;
77
  $amazon = $plg['amazon'] ;
78
- if (!empty($amazon)) $buyAmazon = " <a href='$amazon' title='Get $value from Amazon.com'>Get it at Amazon</a> " ;
79
- $buyNow = " <a href='http://buy.ads-ez.com/$name' title='Buy and download $value for \$$price'>Buy and Download now!</a><br />" ;
80
  $why = "<a href='http://buy.ads-ez.com/$name' title='$name'><img src='https://www.paypalobjects.com/en_GB/SG/i/btn/btn_buynowCC_LG.gif' border='0' alt='PayPal — The safer, easier way to pay online.' class='alignright' /></a>
81
  <br />".$title.$desc." $value costs only \$$price -- direct from the author." ;
82
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
 
83
  makeTextWithTooltip($moreInfo, "Read all about $value at its own site.<br />", "$value", 300) .
84
- makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 300) .
85
  makeTextWithTooltipTag($name, $buyNow, $why, "Buy $value!", 300) .
86
  "</li>\n" ;
87
  }
@@ -100,7 +102,7 @@ function renderBook($name, $plg) {
100
  <ul style="padding-left:10px;list-style-type:circle; list-style-position:inside;" >
101
  <li><a href="#" onclick="TagToTip('rate', TITLE, 'WordPress: <?php echo $myPlugins[$plgName] ;?> Lite', STICKY, 1, CLOSEBTN, true, FIX, [25, 25])"><font color="red">If you like this plugin, please give it a 5* rating.</font></a> People tend to vote or comment only when something doesn't work, and it skews the overall rating. Please do your bit to unskew it!</li>
102
  <li>
103
- <?php _e('Please report any problems. And share your thoughts and comments.', 'easy-adsenser') ; ?>&nbsp;<a href="http://wordpress.org/tags/<?php echo $plgName ; ?>" title="<?php _e('Post it in the WordPress forum', 'easy-adsenser') ; ?>" target="_blank"><?php _e("[WordPress Forum]", 'easy-adsenser') ?> </a>
104
  <li>
105
  If you need support, please read more information about <a href="http://www.Thulasidas.com/plugins/<?php echo $plgName ; ?>-more#FAQ" target="_blank" title="<?php _e('Go to the plugin description page', 'easy-adsenser') ; ?>"><?php echo $myPlugins[$plgName]['value'] ; ?></a> first -- in particular, the FAQ section.
106
  </li>
53
  $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b> ' ;
54
  $text = $link . $desc ;
55
  $price = $plg['price'] ;
56
+ $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
57
+ $liteVersion = "&nbsp;&nbsp; <a href='http://buy.ads-ez.com/$name/$name.zip' title='Download the Lite version of $value'>Get Lite Version</a> " ;
58
+ $proVersion = "&nbsp;&nbsp; <a href='http://buy.ads-ez.com/$name' title='Buy the Pro version of $value for \$$price'>Get Pro Version</a><br />" ;
59
  $why = "<a href='http://buy.ads-ez.com/$name' title='Pro version of the $name plugin'><img src='https://www.paypalobjects.com/en_GB/SG/i/btn/btn_buynowCC_LG.gif' border='0' alt='PayPal — The safer, easier way to pay online.' class='alignright' /></a>
60
  <br />".$plg['pro'] ;
61
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
62
+ "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
63
  makeTextWithTooltip($moreInfo, "Read more about $value at its own page.<br />".$title, "More Information about $value", 300) .
64
  makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) .
65
  makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
74
  $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b> ' ;
75
  $text = $link . $desc ;
76
  $price = $plg['price'] ;
77
+ $moreInfo = "&nbsp;&nbsp; <a href='$url' title='More info about $value at Unreal Blog'>More Info</a> " ;
78
  $amazon = $plg['amazon'] ;
79
+ if (!empty($amazon)) $buyAmazon = "&nbsp;&nbsp; <a href='$amazon' title='Get $value from Amazon.com'>Get it at Amazon</a> " ;
80
+ $buyNow = "&nbsp;&nbsp; <a href='http://buy.ads-ez.com/$name' title='Buy and download $value for \$$price'>Buy and Download now!</a><br />" ;
81
  $why = "<a href='http://buy.ads-ez.com/$name' title='$name'><img src='https://www.paypalobjects.com/en_GB/SG/i/btn/btn_buynowCC_LG.gif' border='0' alt='PayPal — The safer, easier way to pay online.' class='alignright' /></a>
82
  <br />".$title.$desc." $value costs only \$$price -- direct from the author." ;
83
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
84
+ "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
85
  makeTextWithTooltip($moreInfo, "Read all about $value at its own site.<br />", "$value", 300) .
86
+ makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 350) .
87
  makeTextWithTooltipTag($name, $buyNow, $why, "Buy $value!", 300) .
88
  "</li>\n" ;
89
  }
102
  <ul style="padding-left:10px;list-style-type:circle; list-style-position:inside;" >
103
  <li><a href="#" onclick="TagToTip('rate', TITLE, 'WordPress: <?php echo $myPlugins[$plgName] ;?> Lite', STICKY, 1, CLOSEBTN, true, FIX, [25, 25])"><font color="red">If you like this plugin, please give it a 5* rating.</font></a> People tend to vote or comment only when something doesn't work, and it skews the overall rating. Please do your bit to unskew it!</li>
104
  <li>
105
+ <?php _e('Please report any problems. And share your thoughts and comments.', 'easy-adsenser') ; ?>&nbsp;<a href="http://wordpress.org/tags/<?php echo $plgName . "-lite" ; ?>" title="<?php _e('Post it in the WordPress forum', 'easy-adsenser') ; ?>" target="_blank"><?php _e("[WordPress Forum]", 'easy-adsenser') ?> </a>
106
  <li>
107
  If you need support, please read more information about <a href="http://www.Thulasidas.com/plugins/<?php echo $plgName ; ?>-more#FAQ" target="_blank" title="<?php _e('Go to the plugin description page', 'easy-adsenser') ; ?>"><?php echo $myPlugins[$plgName]['value'] ; ?></a> first -- in particular, the FAQ section.
108
  </li>