Version Description
- Re-fix the frist time default options loading value.
- Date: 03-Oct-2009
Download this release
Release Info
Developer | philipze |
Plugin | Quick Adsense |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- quick-adsense.php +9 -12
- readme.txt +5 -1
quick-adsense.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin URI: http://techmilieu.com/quick-adsense
|
6 |
Description: Quick Adsense offers a quicker & flexible way to insert Google Adsense or any Ads code into a blog post.
|
7 |
Author: Philip Ze
|
8 |
-
Version: 1.
|
9 |
Author URI: http://techmilieu.com/
|
10 |
*/
|
11 |
|
@@ -34,7 +34,7 @@ global $QData;
|
|
34 |
$QData['AdsWid'] = 3; /* Ads on Widget */
|
35 |
$QData['Ads'] = 10; /* Ads on Post body */
|
36 |
$QData['Name'] = 'Quick Adsense';
|
37 |
-
$QData['Version'] = '1.
|
38 |
$QData['URI'] = 'http://techmilieu.com/quick-adsense';
|
39 |
$QData['AdsWidName'] = 'AdsWidget%d (Quick Adsense)';
|
40 |
$QData['Default'] = array(
|
@@ -67,20 +67,17 @@ add_filter('plugin_action_links','ads_plugin_links',10,2);
|
|
67 |
|
68 |
function plugin_activated() {
|
69 |
global $QData;
|
70 |
-
$
|
71 |
-
|
72 |
-
$
|
73 |
-
|
74 |
update_option($tpn[$i], $QData['Default'][$tpn[$i]]);
|
75 |
}
|
76 |
-
|
77 |
-
for ($i=1;$i<=$QData['Ads'];$i++) {
|
78 |
-
$tp = get_option('AdsCode'.$i);
|
79 |
-
if(empty($tp)) {
|
80 |
update_option('AdsMargin'.$i, $QData['Default']['AdsMargin']);
|
81 |
update_option('AdsAlign'.$i, $QData['Default']['AdsAlign']);
|
82 |
-
}
|
83 |
-
}
|
84 |
}
|
85 |
register_activation_hook( __FILE__, 'plugin_activated' );
|
86 |
|
5 |
Plugin URI: http://techmilieu.com/quick-adsense
|
6 |
Description: Quick Adsense offers a quicker & flexible way to insert Google Adsense or any Ads code into a blog post.
|
7 |
Author: Philip Ze
|
8 |
+
Version: 1.2
|
9 |
Author URI: http://techmilieu.com/
|
10 |
*/
|
11 |
|
34 |
$QData['AdsWid'] = 3; /* Ads on Widget */
|
35 |
$QData['Ads'] = 10; /* Ads on Post body */
|
36 |
$QData['Name'] = 'Quick Adsense';
|
37 |
+
$QData['Version'] = '1.2';
|
38 |
$QData['URI'] = 'http://techmilieu.com/quick-adsense';
|
39 |
$QData['AdsWidName'] = 'AdsWidget%d (Quick Adsense)';
|
40 |
$QData['Default'] = array(
|
67 |
|
68 |
function plugin_activated() {
|
69 |
global $QData;
|
70 |
+
$isold = get_option('AdsDisp');
|
71 |
+
if ( !$isold && is_bool($isold) ) {
|
72 |
+
$tpn = array('AdsDisp','BegnAds','BegnRnd','EndiAds','EndiRnd','AppPost','AppPage','AppHome','AppCate','AppArch','AppTags','QckTags') ;
|
73 |
+
for ($i=0;$i<count($tpn);$i++) {
|
74 |
update_option($tpn[$i], $QData['Default'][$tpn[$i]]);
|
75 |
}
|
76 |
+
for ($i=1;$i<=$QData['Ads'];$i++) {
|
|
|
|
|
|
|
77 |
update_option('AdsMargin'.$i, $QData['Default']['AdsMargin']);
|
78 |
update_option('AdsAlign'.$i, $QData['Default']['AdsAlign']);
|
79 |
+
}
|
80 |
+
}
|
81 |
}
|
82 |
register_activation_hook( __FILE__, 'plugin_activated' );
|
83 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: WordPress Plugin, adsense, google adsense, random adsense, random ads, advertising, adsense insertion, ad manager, ad, yahoo, google, ads, text insertion, widget, sidebar, admin, posts, plugin
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 2.8.4
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Quick Adsense offers a quicker & flexible way to insert Google Adsense or any Ads code into a blog post.
|
10 |
|
@@ -48,6 +48,10 @@ Please feedback to [http://techmilieu.com/quick-adsense](http://techmilieu.com/q
|
|
48 |
|
49 |
== Change Log ==
|
50 |
|
|
|
|
|
|
|
|
|
51 |
= 1.1 =
|
52 |
* Minor fix for the removal of <p></p> tag wrapped around Ads code.
|
53 |
* Default options value will now load when the frist time plugin is activated, not every time during plugin reactivation.
|
4 |
Tags: WordPress Plugin, adsense, google adsense, random adsense, random ads, advertising, adsense insertion, ad manager, ad, yahoo, google, ads, text insertion, widget, sidebar, admin, posts, plugin
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 2.8.4
|
7 |
+
Stable tag: 1.2
|
8 |
|
9 |
Quick Adsense offers a quicker & flexible way to insert Google Adsense or any Ads code into a blog post.
|
10 |
|
48 |
|
49 |
== Change Log ==
|
50 |
|
51 |
+
= 1.2 =
|
52 |
+
* Re-fix the frist time default options loading value.
|
53 |
+
* Date: 03-Oct-2009
|
54 |
+
|
55 |
= 1.1 =
|
56 |
* Minor fix for the removal of <p></p> tag wrapped around Ads code.
|
57 |
* Default options value will now load when the frist time plugin is activated, not every time during plugin reactivation.
|