Ad Inserter – WordPress Ads Management with AdSense Header Integration - Version 2.0.5

Version Description

  • Cookie created only when debugging is enabled
  • Few minor bug fixes
Download this release

Release Info

Developer spacetime
Plugin Icon 128x128 Ad Inserter – WordPress Ads Management with AdSense Header Integration
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

Files changed (5) hide show
  1. ad-inserter.php +13 -4
  2. constants.php +1 -1
  3. css/ad-inserter.css +1 -1
  4. js/ad-inserter.js +1 -1
  5. readme.txt +14 -3
ad-inserter.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
- Version: 2.0.4
5
  Description: Insert any ad or code into Wordpress. Perfect for all kinds of ads. Simply enter any ad or HTML/Javascript/PHP code and select where and how you want to display it.
6
  Author: Igor Funa
7
  Author URI: http://igorfuna.com/
@@ -11,9 +11,13 @@ Plugin URI: http://tinymonitor.com/ad-inserter
11
  /*
12
  Change Log
13
 
 
 
 
 
14
  Ad Inserter 2.0.4 - 30 September 2016
15
  - Bug fix: Cursor position always at the end of block name
16
- - State of debugging functions is saved to cookie
17
  - Few minor bug fixes
18
 
19
  Ad Inserter 2.0.3 - 26 September 2016
@@ -725,8 +729,13 @@ function ai_wp_hook () {
725
  if ($ai_wp_data [AI_WP_DEBUG_BLOCK] < 0 || $ai_wp_data [AI_WP_DEBUG_BLOCK] > AD_INSERTER_BLOCKS) $ai_wp_data [AI_WP_DEBUG_BLOCK] = 0;
726
  }
727
 
728
- setcookie ('AI_WP_DEBUGGING', $ai_wp_data [AI_WP_DEBUGGING], time() + AI_COOKIE_TIME, COOKIEPATH);
729
- setcookie ('AI_WP_DEBUG_BLOCK', $ai_wp_data [AI_WP_DEBUG_BLOCK], time() + AI_COOKIE_TIME, COOKIEPATH);
 
 
 
 
 
730
  }
731
  }
732
 
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
+ Version: 2.0.5
5
  Description: Insert any ad or code into Wordpress. Perfect for all kinds of ads. Simply enter any ad or HTML/Javascript/PHP code and select where and how you want to display it.
6
  Author: Igor Funa
7
  Author URI: http://igorfuna.com/
11
  /*
12
  Change Log
13
 
14
+ Ad Inserter 2.0.5 - 8 october 2016
15
+ - Cookie created only when debugging is enabled
16
+ - Few minor bug fixes
17
+
18
  Ad Inserter 2.0.4 - 30 September 2016
19
  - Bug fix: Cursor position always at the end of block name
20
+ - State of debugging functions saved to cookie
21
  - Few minor bug fixes
22
 
23
  Ad Inserter 2.0.3 - 26 September 2016
729
  if ($ai_wp_data [AI_WP_DEBUG_BLOCK] < 0 || $ai_wp_data [AI_WP_DEBUG_BLOCK] > AD_INSERTER_BLOCKS) $ai_wp_data [AI_WP_DEBUG_BLOCK] = 0;
730
  }
731
 
732
+ if ($ai_wp_data [AI_WP_DEBUGGING] != 0)
733
+ setcookie ('AI_WP_DEBUGGING', $ai_wp_data [AI_WP_DEBUGGING], time() + AI_COOKIE_TIME, COOKIEPATH); else
734
+ setcookie ('AI_WP_DEBUGGING', '', time() - (15 * 60), COOKIEPATH);
735
+
736
+ if ($ai_wp_data [AI_WP_DEBUG_BLOCK] != 0)
737
+ setcookie ('AI_WP_DEBUG_BLOCK', $ai_wp_data [AI_WP_DEBUG_BLOCK], time() + AI_COOKIE_TIME, COOKIEPATH); else
738
+ setcookie ('AI_WP_DEBUG_BLOCK', '', time() - (15 * 60), COOKIEPATH);
739
  }
740
  }
741
 
constants.php CHANGED
@@ -11,7 +11,7 @@ if (!defined( 'AD_INSERTER_NAME'))
11
  define ('AD_INSERTER_NAME', 'Ad Inserter');
12
 
13
  if (!defined( 'AD_INSERTER_VERSION'))
14
- define ('AD_INSERTER_VERSION', '2.0.4');
15
 
16
  if (!defined ('AD_INSERTER_BLOCKS'))
17
  define ('AD_INSERTER_BLOCKS', 16);
11
  define ('AD_INSERTER_NAME', 'Ad Inserter');
12
 
13
  if (!defined( 'AD_INSERTER_VERSION'))
14
+ define ('AD_INSERTER_VERSION', '2.0.5');
15
 
16
  if (!defined ('AD_INSERTER_BLOCKS'))
17
  define ('AD_INSERTER_BLOCKS', 16);
css/ad-inserter.css CHANGED
@@ -1,5 +1,5 @@
1
  #data {
2
- font-family: "2.0.4"; /* Used for version number of the file */
3
  }
4
 
5
  #blocked-warning {
1
  #data {
2
+ font-family: "2.0.5"; /* Used for version number of the file */
3
  }
4
 
5
  #blocked-warning {
js/ad-inserter.js CHANGED
@@ -1,4 +1,4 @@
1
- var javascript_version = "2.0.4";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
1
+ var javascript_version = "2.0.5";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Ad Inserter ===
2
  Contributors: spacetime
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LHGZEMRTR7WB4
4
- Tags: adsense, amazon, clickbank, cj, ad, ads, html, javascript, php, code, widget, sidebar, responsive, viewport, rotating, banner, banner rotation, multisite, contextual, shortcodes, widgets, header, footer, users, logged in, not logged in, mobile, desktop, phone, tablet, custom css, category, tag, filter, url, skip
5
  Requires at least: 4.0
6
  Tested up to: 4.6.1
7
- Stable tag: 2.0.3
8
  License: GPLv3
9
 
10
  Insert any ad or HTML/Javascript/PHP code into Wordpress. Perfect for all kinds of ads. 16 code blocks, many display options and features.
@@ -30,11 +30,13 @@ Each code block can be configured to insert code at almost any position supporte
30
  * Black/White-list categories, tags, post IDs, urls, url parameters, referers
31
  * Simple troubleshooting with many debugging functions to visualize inserted code blocks, available insertion positions, HTML tags, etc.
32
 
 
 
33
  And there is also <a href="http://tinymonitor.com/ad-inserter-pro" target="_blank">Ad Inserter Pro</a> if you need more than 16 code blocks, more than 3 viewports, export/import settings or additional multisite options.
34
 
35
  **Quick Start**
36
 
37
- Few very important things you need to know in order to insert code and display some ad:
38
 
39
  * **Enable and use at least one display option** (Automatic Display, Widget, Shortcode, PHP function call)
40
  * **Enable display on at least one Wordpress page type** (Posts, Static pages, Homepage, Category pages, Search Pages, Archive pages)
@@ -804,6 +806,11 @@ AD CODE RIGHT
804
 
805
  == Changelog ==
806
 
 
 
 
 
 
807
  = 2.0.4 =
808
  - Bug fix: Cursor position always at the end of block name
809
  - State of debugging functions saved to cookie
@@ -1058,6 +1065,10 @@ AD CODE RIGHT
1058
 
1059
  == Upgrade Notice ==
1060
 
 
 
 
 
1061
  = 2.0.4 =
1062
  Bug fix: Cursor position always at the end of block name;
1063
  State of debugging functions saved to cookie;
1
  === Ad Inserter ===
2
  Contributors: spacetime
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LHGZEMRTR7WB4
4
+ Tags: adsense, amazon, clickbank, advertising, cj, ad, ads, html, javascript, php, code, widget, sidebar, responsive, viewport, rotating, banner, rotation, multisite, contextual, shortcodes, widgets, header, footer, users, logged in, not logged in, mobile, desktop, phone, tablet, custom css, category, tag, filter, url, skip
5
  Requires at least: 4.0
6
  Tested up to: 4.6.1
7
+ Stable tag: 2.0.5
8
  License: GPLv3
9
 
10
  Insert any ad or HTML/Javascript/PHP code into Wordpress. Perfect for all kinds of ads. 16 code blocks, many display options and features.
30
  * Black/White-list categories, tags, post IDs, urls, url parameters, referers
31
  * Simple troubleshooting with many debugging functions to visualize inserted code blocks, available insertion positions, HTML tags, etc.
32
 
33
+ Check <a href="http://tinymonitor.com/ad-inserter" target="_blank">Ad Inserter page</a> for detailed description of all the features.
34
+
35
  And there is also <a href="http://tinymonitor.com/ad-inserter-pro" target="_blank">Ad Inserter Pro</a> if you need more than 16 code blocks, more than 3 viewports, export/import settings or additional multisite options.
36
 
37
  **Quick Start**
38
 
39
+ Few very important things you need to know in order to <a href="http://tinymonitor.com/ad-inserter#quick-start">insert code and display some ad</a>:
40
 
41
  * **Enable and use at least one display option** (Automatic Display, Widget, Shortcode, PHP function call)
42
  * **Enable display on at least one Wordpress page type** (Posts, Static pages, Homepage, Category pages, Search Pages, Archive pages)
806
 
807
  == Changelog ==
808
 
809
+
810
+ = 2.0.5 =
811
+ - Cookie created only when debugging is enabled
812
+ - Few minor bug fixes
813
+
814
  = 2.0.4 =
815
  - Bug fix: Cursor position always at the end of block name
816
  - State of debugging functions saved to cookie
1065
 
1066
  == Upgrade Notice ==
1067
 
1068
+ = 2.0.5 =
1069
+ Cookie created only when debugging is enabled;
1070
+ Few minor bug fixes
1071
+
1072
  = 2.0.4 =
1073
  Bug fix: Cursor position always at the end of block name;
1074
  State of debugging functions saved to cookie;