AdRotate Banner Manager - Version 5.6.2

Version Description

Fixing datepicker dates and some dashboard tweaks. Update today!

Download this release

Release Info

Developer adegans
Plugin Icon 128x128 AdRotate Banner Manager
Version 5.6.2
Comparing to
See all releases

Code changes from version 5.6.1 to 5.6.2

adrotate-functions.php CHANGED
@@ -537,10 +537,10 @@ function adrotate_dashboard_scripts() {
537
  wp_enqueue_script('jquery-ui-datepicker');
538
  wp_enqueue_script('raphael', plugins_url('/library/raphael-min.js', __FILE__), array('jquery'));
539
  wp_enqueue_script('elycharts', plugins_url('/library/elycharts.min.js', __FILE__), array('jquery', 'raphael'));
540
- wp_enqueue_script('textatcursor', plugins_url('/library/textatcursor.js', __FILE__));
541
- wp_enqueue_script('tablesorter', plugins_url('/library/jquery.tablesorter.min.js', __FILE__), array('jquery'));
542
- wp_enqueue_script('adrotate-tablesorter', plugins_url('/library/jquery.adrotate.tablesorter.js', __FILE__), array('jquery', 'tablesorter'));
543
- wp_enqueue_script('adrotate-datepicker', plugins_url('/library/jquery.adrotate.datepicker.js', __FILE__), array('jquery'));
544
  }
545
 
546
  // WP Pointers
537
  wp_enqueue_script('jquery-ui-datepicker');
538
  wp_enqueue_script('raphael', plugins_url('/library/raphael-min.js', __FILE__), array('jquery'));
539
  wp_enqueue_script('elycharts', plugins_url('/library/elycharts.min.js', __FILE__), array('jquery', 'raphael'));
540
+ wp_enqueue_script('textatcursor', plugins_url('/library/textatcursor.js', __FILE__), ADROTATE_VERSION);
541
+ wp_enqueue_script('tablesorter', plugins_url('/library/jquery.tablesorter.min.js', __FILE__), array('jquery'), ADROTATE_VERSION);
542
+ wp_enqueue_script('adrotate-tablesorter', plugins_url('/library/jquery.adrotate.tablesorter.js', __FILE__), array('jquery', 'tablesorter'), ADROTATE_VERSION);
543
+ wp_enqueue_script('adrotate-datepicker', plugins_url('/library/jquery.adrotate.datepicker.js', __FILE__), array('jquery'), ADROTATE_VERSION);
544
  }
545
 
546
  // WP Pointers
adrotate-manage-publisher.php CHANGED
@@ -129,7 +129,7 @@ function adrotate_insert_input() {
129
  // Sort out start dates
130
  if(strlen($start_date) > 0) {
131
  list($start_day, $start_month, $start_year) = explode('-', $start_date); // dd/mm/yyyy
132
- $start_month = date("m", strtotime($start_month."-".$start_year)); // Convert month to number
133
  } else {
134
  $start_year = $start_month = $start_day = 0;
135
  }
@@ -146,7 +146,7 @@ function adrotate_insert_input() {
146
  // Sort out end dates
147
  if(strlen($end_date) > 0) {
148
  list($end_day, $end_month, $end_year) = explode('-', $end_date); // dd/mm/yyyy
149
- $end_month = date("m", strtotime($end_month."-".$end_year)); // Convert month to number
150
  } else {
151
  $end_year = $end_month = $end_day = 0;
152
  }
129
  // Sort out start dates
130
  if(strlen($start_date) > 0) {
131
  list($start_day, $start_month, $start_year) = explode('-', $start_date); // dd/mm/yyyy
132
+ $start_month = (!is_numeric($start_month)) ? date("m", strtotime($start_month."-".$start_year)) : $start_month; // Convert month to number
133
  } else {
134
  $start_year = $start_month = $start_day = 0;
135
  }
146
  // Sort out end dates
147
  if(strlen($end_date) > 0) {
148
  list($end_day, $end_month, $end_year) = explode('-', $end_date); // dd/mm/yyyy
149
+ $end_month = (!is_numeric($end_month)) ? date("m", strtotime($end_month."-".$end_year)) : $end_month; // Convert month to number
150
  } else {
151
  $end_year = $end_month = $end_day = 0;
152
  }
adrotate-output.php CHANGED
@@ -436,7 +436,7 @@ function adrotate_ad_output($id, $group = 0, $name, $bannercode, $tracker, $imag
436
  -------------------------------------------------------------*/
437
  function adrotate_header() {
438
 
439
- $output = "\n<!-- This site is using AdRotate v".ADROTATE_DISPLAY." to display their advertisements - https://ajdg.solutions/products/adrotate-for-wordpress/ -->\n";
440
  echo $output;
441
 
442
  adrotate_custom_css();
@@ -766,11 +766,11 @@ function adrotate_notifications_dashboard() {
766
  -------------------------------------------------------------*/
767
  function adrotate_welcome_pointer() {
768
  $pointer_content = '<h3>AdRotate '.ADROTATE_DISPLAY.'</h3>';
769
- $pointer_content .= '<p>'.__('Thank you for choosing AdRotate. Everything related to AdRotate is in this menu. If you need help getting started take a look at the', 'adrotate').' <a href="http:\/\/ajdg.solutions\/manuals\/adrotate-manuals\/" target="_blank">'.__('manuals', 'adrotate').'</a> '.__('and', 'adrotate').' <a href="https:\/\/ajdg.solutions\/forums\/forum\/adrotate-for-wordpress\/" target="_blank">'.__('forums', 'adrotate').'</a>. These links are also available in the help tab in the top right.</p>';
770
 
771
- $pointer_content .= '<p><strong>AdRotate Professional - <a href="admin.php?page=adrotate-pro">Learn more &raquo;</a></strong><br />If you like AdRotate, consider upgrading to AdRotate Pro and benefit from many <a href="admin.php?page=adrotate-pro">extra features</a> to make your campaigns more profitable!</p>';
772
 
773
- $pointer_content .= '<p><strong>Ad blockers</strong><br />Disable your ad blocker in your browser so your adverts and dashboard show up correctly. AdRotate Pro has a <a href="admin.php?page=adrotate-pro">disguise feature</a> for adverts to help you avoid ad blockers.</p>';
774
  ?>
775
  <script type="text/javascript">
776
  jQuery(document).ready(function($) {
@@ -860,7 +860,7 @@ function adrotate_credits() {
860
 
861
  echo '<tbody>';
862
  echo '<tr>';
863
- echo '<td><center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree&pk_keyword=credits" title="AdRotate plugin for WordPress"><img src="'.plugins_url('/images/logo-60x60.png', __FILE__).'" alt="AdRotate Logo" width="60" height="60" /></a></center></td>';
864
  echo '<td>'.__("Many users only think to review AdRotate when something goes wrong while thousands of people happily use AdRotate.", 'adrotate').' <strong>'. __("If you find AdRotate useful please leave your", 'adrotate').' <a href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform" target="_blank">'.__('rating','adrotate').'</a> '.__('and','adrotate').' <a href="https://wordpress.org/support/view/plugin-reviews/adrotate" target="_blank">'.__('review','adrotate').'</a> '.__('on WordPress.org to help AdRotate grow in a positive way', 'adrotate').'!</strong></td>';
865
  echo '<td><a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotatefree&pk_keyword=credits" title="Get AdRotate Pro for WordPress"><img src="'.plugins_url('/images/adrotate-product.png', __FILE__).'" alt="AdRotate Pro for WordPress" width="70" height="70" align="left" /></a>'.__('Get more advanced features like Geo Targeting, scheduling and much more with AdRotate Pro.', 'adrotate').' '.__('Includes premium support and free updates for one year!', 'adrotate').'<br /><strong>So why wait? <a href="'.admin_url('admin.php?page=adrotate-pro').'" title="Get AdRotate Pro for WordPress">'.__('Get started today', 'adrotate').' &raquo;</a></strong></td>';
866
 
436
  -------------------------------------------------------------*/
437
  function adrotate_header() {
438
 
439
+ $output = "\n<!-- This site is using AdRotate v".ADROTATE_DISPLAY." to display their advertisements - https://ajdg.solutions/ -->\n";
440
  echo $output;
441
 
442
  adrotate_custom_css();
766
  -------------------------------------------------------------*/
767
  function adrotate_welcome_pointer() {
768
  $pointer_content = '<h3>AdRotate '.ADROTATE_DISPLAY.'</h3>';
769
+ $pointer_content .= '<p>'.__('Thank you for choosing AdRotate Banner Manager. Everything related to AdRotate is in this menu. If you need help getting started take a look at the', 'adrotate').' <a href="http:\/\/ajdg.solutions\/support\/adrotate-manuals\/" target="_blank">'.__('manuals', 'adrotate').'</a> '.__('and', 'adrotate').' <a href="https:\/\/ajdg.solutions\/forums\/forum\/adrotate-for-wordpress\/" target="_blank">'.__('forums', 'adrotate').'</a>. These links are also available in the help tab in the top right.</p>';
770
 
771
+ $pointer_content .= '<p><strong>AdRotate Professional - <a href="admin.php?page=adrotate-pro">Learn more &raquo;</a></strong><br />If you like AdRotate Banner Manager please consider upgrading to AdRotate Professional and benefit from many <a href="admin.php?page=adrotate-pro">extra features</a> to make your campaigns more profitable!</p>';
772
 
773
+ $pointer_content .= '<p><strong>Ad blockers</strong><br />Disable your ad blocker in your browser so your adverts and dashboard show up correctly. Take a look at this manual to <a href="https://ajdg.solutions/support/adrotate-manuals/configure-adblockers-for-your-own-website/" target="_blank">whitelist your site</a>.</p>';
774
  ?>
775
  <script type="text/javascript">
776
  jQuery(document).ready(function($) {
860
 
861
  echo '<tbody>';
862
  echo '<tr>';
863
+ echo '<td><center><a href="https://ajdg.solutions/product/adrotate-banner-manager/?pk_campaign=adrotatefree&pk_keyword=credits" title="AdRotate plugin for WordPress"><img src="'.plugins_url('/images/logo-60x60.png', __FILE__).'" alt="AdRotate Logo" width="60" height="60" /></a></center></td>';
864
  echo '<td>'.__("Many users only think to review AdRotate when something goes wrong while thousands of people happily use AdRotate.", 'adrotate').' <strong>'. __("If you find AdRotate useful please leave your", 'adrotate').' <a href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform" target="_blank">'.__('rating','adrotate').'</a> '.__('and','adrotate').' <a href="https://wordpress.org/support/view/plugin-reviews/adrotate" target="_blank">'.__('review','adrotate').'</a> '.__('on WordPress.org to help AdRotate grow in a positive way', 'adrotate').'!</strong></td>';
865
  echo '<td><a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotatefree&pk_keyword=credits" title="Get AdRotate Pro for WordPress"><img src="'.plugins_url('/images/adrotate-product.png', __FILE__).'" alt="AdRotate Pro for WordPress" width="70" height="70" align="left" /></a>'.__('Get more advanced features like Geo Targeting, scheduling and much more with AdRotate Pro.', 'adrotate').' '.__('Includes premium support and free updates for one year!', 'adrotate').'<br /><strong>So why wait? <a href="'.admin_url('admin.php?page=adrotate-pro').'" title="Get AdRotate Pro for WordPress">'.__('Get started today', 'adrotate').' &raquo;</a></strong></td>';
866
 
adrotate.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /*
3
  Plugin Name: AdRotate Banner Manager
4
- Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree&pk_keyword=plugin_info
5
  Author: Arnan de Gans
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: AdRotate Banner Manager - Monetise your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
- Version: 5.6.1
10
  License: GPLv3
11
  */
12
 
@@ -21,8 +21,8 @@ License: GPLv3
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
- define("ADROTATE_DISPLAY", '5.6.1');
25
- define("ADROTATE_VERSION", 394);
26
  define("ADROTATE_DB_VERSION", 65);
27
  $plugin_folder = plugin_dir_path(__FILE__);
28
  /*-----------------------------------------------------------*/
1
  <?php
2
  /*
3
  Plugin Name: AdRotate Banner Manager
4
+ Plugin URI: https://ajdg.solutions/product/adrotate-banner-manager/?pk_campaign=adrotatefree&pk_keyword=plugin_info
5
  Author: Arnan de Gans
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: AdRotate Banner Manager - Monetise your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
+ Version: 5.6.2
10
  License: GPLv3
11
  */
12
 
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
+ define("ADROTATE_DISPLAY", '5.6.2');
25
+ define("ADROTATE_VERSION", 395);
26
  define("ADROTATE_DB_VERSION", 65);
27
  $plugin_folder = plugin_dir_path(__FILE__);
28
  /*-----------------------------------------------------------*/
dashboard/publisher/adverts-edit.php CHANGED
@@ -33,8 +33,8 @@ if($edit_banner) {
33
  wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
34
 
35
  // Set up start and end date
36
- list($start_day, $start_month, $start_year, $start_hour, $start_minute) = explode(" ", date("d M Y H i", $schedule->starttime));
37
- list($end_day, $end_month, $end_year, $end_hour, $end_minute) = explode(" ", date("d M Y H i", $schedule->stoptime));
38
  $start_date = $start_day.'-'.$start_month.'-'.$start_year;
39
  $end_date = $end_day.'-'.$end_month.'-'.$end_year;
40
 
33
  wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
34
 
35
  // Set up start and end date
36
+ list($start_day, $start_month, $start_year, $start_hour, $start_minute) = explode(" ", date("d m Y H i", $schedule->starttime));
37
+ list($end_day, $end_month, $end_year, $end_hour, $end_minute) = explode(" ", date("d m Y H i", $schedule->stoptime));
38
  $start_date = $start_day.'-'.$start_month.'-'.$start_year;
39
  $end_date = $end_day.'-'.$end_month.'-'.$end_year;
40
 
library/jquery.adrotate.datepicker.js CHANGED
@@ -17,7 +17,7 @@ Original code: Arnan de Gans
17
 
18
  (function($) {
19
  $(document).ready(function() {
20
- $('#startdate_picker').datepicker({dateFormat: 'dd-M-yy'});
21
- $('#enddate_picker').datepicker({dateFormat: 'dd-M-yy'});
22
  });
23
  }(jQuery));
17
 
18
  (function($) {
19
  $(document).ready(function() {
20
+ $('#startdate_picker').datepicker({dateFormat: 'dd-mm-yy'});
21
+ $('#enddate_picker').datepicker({dateFormat: 'dd-mm-yy'});
22
  });
23
  }(jQuery));
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: adverts, ads, banners, advert manager, ad manager, banner manager, monetis
5
  Requires at least: 4.6
6
  Requires PHP: 5.6
7
  Tested up to: 5.3
8
- Stable tag: 5.6.1
9
  License: GPLv3
10
 
11
  Manage your advertisements the easy way! Monetise your website with AdRotate. AdRotate has everything you need and keeps management simple!
@@ -65,34 +65,24 @@ For more detailed instructions check out the [installation steps](https://ajdg.s
65
 
66
  == Upgrade Notice ==
67
 
68
- Better support for HTML5 adverts, dashboard fixes and a bit of a database clean-up.
69
 
70
  == Changelog ==
71
 
72
- Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/product-category/adrotate-pro/?pk_campaign=adrotatefree&pk_keyword=readme)!
73
-
74
- = AdRotate Banner Manager 5.6.1 =
75
- [change] More modern and polished look for notifications
76
- [change] Clearer date format (dd-mmm-yyyy) for date pickers
77
- [change] Improved WordPress 5.3 compatibility
78
- [change] Dashboard tweaks
79
- [fix] Several PHP Warnings on new installs
80
- [fix] AdRotate now better removes all database settings on uninstall
81
-
82
- = AdRotate Professional 5.6.3 =
83
- [fix] Selected dates not output correctly when editing schedules
84
- [fix] End dates not always correct when exporting stats
85
-
86
- = AdRotate Professional 5.6.2 =
87
- [change] More modern and polished look for notifications
88
- [change] Clearer date format (dd-mmm-yyyy) for date pickers
89
- [change] Dashboard tweaks
90
- [fix] Improved multisite/network support
91
- [fix] Persistent license notification on multisite instances
92
- [fix] No longer tries to output WP_Error responses as updates
93
- [fix] Session not always created when using duplicate advert filter
94
- [fix] Geo Targeting debug array not working
95
- [fix] Advertiser dashboard assets not loading correctly
96
 
97
  All recent changes are available on the [AdRotate Banner Manager Changelog](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
98
 
@@ -105,6 +95,10 @@ Maybe. Take a look at [AdRotate Switch](https://ajdg.solutions/product/adrotate-
105
  There are [user guides](https://ajdg.solutions/support/adrotate-manuals/?pk_campaign=adrotatefree&pk_keyword=readme) with every popular feature explained.
106
  You can also post your questions on the [forum](https://ajdg.solutions/forums/?pk_campaign=adrotatefree&pk_keyword=readme).
107
 
 
 
 
 
108
  = Is AdRotate Banner Manager compatible with Yoast SEO or other SEO plugins? =
109
  Yes, Yoast SEO, All in One SEO pack and all other SEO plugins work fine with AdRotate Banner Manager.
110
 
5
  Requires at least: 4.6
6
  Requires PHP: 5.6
7
  Tested up to: 5.3
8
+ Stable tag: 5.6.2
9
  License: GPLv3
10
 
11
  Manage your advertisements the easy way! Monetise your website with AdRotate. AdRotate has everything you need and keeps management simple!
65
 
66
  == Upgrade Notice ==
67
 
68
+ Fixing datepicker dates and some dashboard tweaks. Update today!
69
 
70
  == Changelog ==
71
 
72
+ Be a Pro and get [AdRotate Professional](https://ajdg.solutions/product-category/adrotate-pro/?pk_campaign=adrotatefree&pk_keyword=readme)!
73
+
74
+ = AdRotate Banner Manager 5.6.2 =
75
+ * [reversal] Date format (dd-mm-yyyy) for date pickers
76
+ * [new] Datepicker months can be numbers (01-12) or names (Jan-Dec)
77
+
78
+ = AdRotate Professional 5.6.4 =
79
+ * [reversal] Date format (dd-mm-yyyy) for date pickers
80
+ * [new] Datepicker months can be numbers (01-12) or names (Jan-Dec)
81
+ * [new] Update data is cached for 6 hours and refreshed once a day
82
+ * [change] Update checker no longer relies on WordPress schedule
83
+ * [change] Update checker no longer uses transient filter
84
+ * [fix] WordPress sending millions of update checks for some users
85
+ * [fix] PHP Error when archiving adverts with no stats
 
 
 
 
 
 
 
 
 
 
86
 
87
  All recent changes are available on the [AdRotate Banner Manager Changelog](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
88
 
95
  There are [user guides](https://ajdg.solutions/support/adrotate-manuals/?pk_campaign=adrotatefree&pk_keyword=readme) with every popular feature explained.
96
  You can also post your questions on the [forum](https://ajdg.solutions/forums/?pk_campaign=adrotatefree&pk_keyword=readme).
97
 
98
+ = Why do some dashboard notifications look so ugly =
99
+ If a dashboard notification misses it's layout or looks out of shape try clearing your browser cache.
100
+ Some adblockers block parts of the AdRotate dashboard, check out this page to make an exception for your website in adblockers - [Whitelist your site](https://ajdg.solutions/support/adrotate-manuals/configure-adblockers-for-your-own-website/?pk_campaign=adrotatefree&pk_keyword=readme).
101
+
102
  = Is AdRotate Banner Manager compatible with Yoast SEO or other SEO plugins? =
103
  Yes, Yoast SEO, All in One SEO pack and all other SEO plugins work fine with AdRotate Banner Manager.
104