AdRotate Banner Manager - Version 3.13.2

Version Description

  • [fix] HTML files not listed in Asset Folder dropdown
  • [fix] Post Injection not always working if using multiple groups
  • [fix] Post Injection showing too much adverts between paragraphs

All recent changes are available on the AdRotate website.

=

Download this release

Release Info

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

Code changes from version 3.13.1 to 3.13.2

adrotate-functions.php CHANGED
@@ -785,8 +785,17 @@ function adrotate_folder_contents($current) {
785
  foreach($files as $file) {
786
  $fileinfo = pathinfo($file);
787
 
788
- if((strtolower($fileinfo['extension']) == "jpg" OR strtolower($fileinfo['extension']) == "gif" OR strtolower($fileinfo['extension']) == "png"
789
- OR strtolower($fileinfo['extension']) == "jpeg" OR strtolower($fileinfo['extension']) == "swf" OR strtolower($fileinfo['extension']) == "flv")) {
 
 
 
 
 
 
 
 
 
790
  $output .= "<option value='".$file."'";
791
  if(($current == $siteurl.'/wp-content/banners/'.$file) OR ($current == $siteurl."/%folder%".$file)) { $output .= "selected"; }
792
  $output .= ">".$file."</option>";
785
  foreach($files as $file) {
786
  $fileinfo = pathinfo($file);
787
 
788
+ if(
789
+ (
790
+ strtolower($fileinfo['extension']) == "jpg"
791
+ OR strtolower($fileinfo['extension']) == "gif"
792
+ OR strtolower($fileinfo['extension']) == "png"
793
+ OR strtolower($fileinfo['extension']) == "jpeg"
794
+ OR strtolower($fileinfo['extension']) == "swf"
795
+ OR strtolower($fileinfo['extension']) == "flv"
796
+ OR strtolower($fileinfo['extension']) == "html"
797
+ )
798
+ ) {
799
  $output .= "<option value='".$file."'";
800
  if(($current == $siteurl.'/wp-content/banners/'.$file) OR ($current == $siteurl."/%folder%".$file)) { $output .= "selected"; }
801
  $output .= ">".$file."</option>";
adrotate-output.php CHANGED
@@ -293,7 +293,7 @@ function adrotate_inject_posts($post_content) {
293
  echo "</pre></p>";
294
  }
295
 
296
- $before = $after = 0;
297
  foreach($group_choice as $key => $group_id) {
298
  if(is_page($group_array[$group_id]['pages']) OR in_category($group_array[$group_id]['categories'])) {
299
  // Advert in front of content
@@ -309,7 +309,7 @@ function adrotate_inject_posts($post_content) {
309
  }
310
 
311
  // Adverts inside the content
312
- if($group_array[$group_id]['location'] == 4 AND $key == 0) {
313
  $paragraphs = explode("</p>", $post_content);
314
  $paragraph_count = count($paragraphs);
315
  $par = 1;
@@ -324,8 +324,9 @@ function adrotate_inject_posts($post_content) {
324
  $middle = ($group_array[$group_id]['paragraph'] == 99) ? ceil($paragraph_count / 2) : 1;
325
 
326
  foreach($paragraphs as &$paragraph) {
327
- if($par == $group_array[$group_id]['paragraph'] OR ($par == $middle AND $group_array[$group_id]['paragraph'] == 99)) {
328
  $paragraph .= adrotate_group($group_id);
 
329
  }
330
  $post_content .= $paragraph."</p>";
331
  $par++;
@@ -335,7 +336,7 @@ function adrotate_inject_posts($post_content) {
335
  }
336
  }
337
  }
338
- unset($group_choice, $group_count, $group_array, $paragraph, $paragraph_count, $before, $after);
339
  }
340
 
341
  return $post_content;
@@ -826,7 +827,7 @@ function adrotate_help_info() {
826
  'id' => 'adrotate_thanks',
827
  'title' => 'Thank You',
828
  'content' => '<h4>Thank you for using AdRotate</h4><p>AdRotate is growing to be one of the most popular WordPress plugins for Advertising and is a household name for many companies around the world. AdRotate wouldn\'t be possible without your support and my life wouldn\'t be what it is today without your help.</p><p><em>- Arnan</em></p>'.
829
- '<p><strong>Add me:</strong> <a href="http://twitter.com/arnandegans/" target="_blank">Twitter</a>, <a href="https://www.facebook.com/adegans" target="_blank">Facebook</a>. <strong>Business:</strong> <a href="https://ajdg.solutions/?pk_campaign=adrotatefree-helptab&pk_kwd=ajdgsolutions" target="_blank">ajdg.solutions</a> <strong>Blog:</strong> <a href="http://meandmymac.net/?pk_campaign=adrotatefree-helptab&pk_kwd=meandmymac" target="_blank">meandmymac.net</a> and <strong>adventure:</strong> <a href="http://www.floatingcoconut.net/?pk_campaign=adrotatefree-helptab&pk_kwd=floatingcoconut" target="_blank">floatingcoconut.net</a>.</p>'
830
  )
831
  );
832
  }
@@ -854,7 +855,7 @@ function adrotate_credits() {
854
  echo '<td><center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-credits&pk_kwd=adrotate_logo" title="AdRotate plugin for WordPress"><img src="'.plugins_url('/images/adrotate-logo-60x60.png', __FILE__).'" alt="adrotate-logo-60x60" width="60" height="60" /></a></center></td>';
855
  echo '<td>'.__("A lot of users only think to review AdRotate when something goes wrong while thousands of people use AdRotate satisfactory. Don't let this go unnoticed.", 'adrotate').' <strong>'. __("If you find AdRotate useful please leave your honest", '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>';
856
 
857
- echo '<td><center><a href="https://ajdg.solutions/?pk_campaign=adrotatefree-credits" title="Arnan de Gans"><img src="'.plugins_url('/images/arnan-jungle.jpg', __FILE__).'" alt="Arnan de Gans" width="60" height="60" align="left" class="adrotate-photo" /></a><a href="http://www.floatingcoconut.net?pk_campaign=adrotatefree-credits" target="_blank">Arnan de Gans</a><br />from<br /><a href="https://ajdg.solutions?pk_campaign=adrotatefree-credits" target="_blank">AJdG Solutions</a></center></td></td>';
858
  echo '</tr>';
859
  echo '</tbody>';
860
 
293
  echo "</pre></p>";
294
  }
295
 
296
+ $before = $after = $inside = 0;
297
  foreach($group_choice as $key => $group_id) {
298
  if(is_page($group_array[$group_id]['pages']) OR in_category($group_array[$group_id]['categories'])) {
299
  // Advert in front of content
309
  }
310
 
311
  // Adverts inside the content
312
+ if($group_array[$group_id]['location'] == 4) {
313
  $paragraphs = explode("</p>", $post_content);
314
  $paragraph_count = count($paragraphs);
315
  $par = 1;
324
  $middle = ($group_array[$group_id]['paragraph'] == 99) ? ceil($paragraph_count / 2) : 1;
325
 
326
  foreach($paragraphs as &$paragraph) {
327
+ if(($par == $group_array[$group_id]['paragraph'] OR ($par == $middle AND $group_array[$group_id]['paragraph'] == 99)) AND $inside == 0) {
328
  $paragraph .= adrotate_group($group_id);
329
+ $inside = 1;
330
  }
331
  $post_content .= $paragraph."</p>";
332
  $par++;
336
  }
337
  }
338
  }
339
+ unset($group_choice, $group_count, $group_array, $paragraph, $paragraph_count, $before, $after, $inside);
340
  }
341
 
342
  return $post_content;
827
  'id' => 'adrotate_thanks',
828
  'title' => 'Thank You',
829
  'content' => '<h4>Thank you for using AdRotate</h4><p>AdRotate is growing to be one of the most popular WordPress plugins for Advertising and is a household name for many companies around the world. AdRotate wouldn\'t be possible without your support and my life wouldn\'t be what it is today without your help.</p><p><em>- Arnan</em></p>'.
830
+ '<p><strong>Add me:</strong> <a href="http://twitter.com/arnandegans/" target="_blank">Twitter</a>, <a href="https://www.facebook.com/adegans" target="_blank">Facebook</a>. <strong>Business:</strong> <a href="https://ajdg.solutions/?pk_campaign=adrotatefree-helptab&pk_kwd=ajdgsolutions" target="_blank">ajdg.solutions</a> <strong>Blog:</strong> <a href="http://meandmymac.net/?pk_campaign=adrotatefree-helptab&pk_kwd=meandmymac" target="_blank">meandmymac.net</a> and <strong>adventure:</strong> <a href="http://meandmymac.net/?pk_campaign=adrotatefree-helptab" target="_blank">meandmymac.net</a>.</p>'
831
  )
832
  );
833
  }
855
  echo '<td><center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-credits&pk_kwd=adrotate_logo" title="AdRotate plugin for WordPress"><img src="'.plugins_url('/images/adrotate-logo-60x60.png', __FILE__).'" alt="adrotate-logo-60x60" width="60" height="60" /></a></center></td>';
856
  echo '<td>'.__("A lot of users only think to review AdRotate when something goes wrong while thousands of people use AdRotate satisfactory. Don't let this go unnoticed.", 'adrotate').' <strong>'. __("If you find AdRotate useful please leave your honest", '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>';
857
 
858
+ echo '<td><center><a href="https://ajdg.solutions/?pk_campaign=adrotatefree-credits" title="Arnan de Gans"><img src="'.plugins_url('/images/arnan-jungle.jpg', __FILE__).'" alt="Arnan de Gans" width="60" height="60" align="left" class="adrotate-photo" /></a><a href="http://meandmymac.net?pk_campaign=adrotatefree-credits" target="_blank">Arnan de Gans</a><br />from<br /><a href="https://ajdg.solutions?pk_campaign=adrotatefree-credits" target="_blank">AJdG Solutions</a></center></td></td>';
859
  echo '</tr>';
860
  echo '</tbody>';
861
 
adrotate-setup.php CHANGED
@@ -770,7 +770,7 @@ function adrotate_database_upgrade() {
770
  $wpdb->query("ALTER TABLE `{$wpdb->prefix}adrotate` CHANGE `responsive` `responsive` varchar(2) NOT NULL default 'N';");
771
  }
772
 
773
- // Database: 52
774
  // AdRotate: 3.13.1
775
  if($adrotate_db_version['current'] < 53) {
776
  adrotate_add_column("{$wpdb->prefix}adrotate_schedule", 'daystarttime', 'char(4) NOT NULL default \'0000\' AFTER `dayimpressions`');
770
  $wpdb->query("ALTER TABLE `{$wpdb->prefix}adrotate` CHANGE `responsive` `responsive` varchar(2) NOT NULL default 'N';");
771
  }
772
 
773
+ // Database: 53
774
  // AdRotate: 3.13.1
775
  if($adrotate_db_version['current'] < 53) {
776
  adrotate_add_column("{$wpdb->prefix}adrotate_schedule", 'daystarttime', 'char(4) NOT NULL default \'0000\' AFTER `dayimpressions`');
adrotate.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  Plugin Name: AdRotate
4
  Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-pluginpage
5
- Author: Arnan de Gans of AJdG Solutions
6
  Author URI: http://ajdg.solutions/?pk_campaign=adrotatefree-pluginpage
7
- Description: Used on over a hundred thousand websites and by even more people! AdRotate is the popular choice for monetizing your website with adverts while keeping things simple.
8
  Text Domain: adrotate
9
  Domain Path: /languages/
10
- Version: 3.13.1
11
  License: GPLv3
12
  */
13
 
@@ -22,7 +22,7 @@ License: GPLv3
22
  ------------------------------------------------------------------------------------ */
23
 
24
  /*--- AdRotate values ---------------------------------------*/
25
- define("ADROTATE_DISPLAY", '3.13.1');
26
  define("ADROTATE_VERSION", 380);
27
  define("ADROTATE_DB_VERSION", 53);
28
  /*-----------------------------------------------------------*/
2
  /*
3
  Plugin Name: AdRotate
4
  Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-pluginpage
5
+ Author: Arnan de Gans
6
  Author URI: http://ajdg.solutions/?pk_campaign=adrotatefree-pluginpage
7
+ Description: The popular choice for monetizing your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
  Domain Path: /languages/
10
+ Version: 3.13.2
11
  License: GPLv3
12
  */
13
 
22
  ------------------------------------------------------------------------------------ */
23
 
24
  /*--- AdRotate values ---------------------------------------*/
25
+ define("ADROTATE_DISPLAY", '3.13.2');
26
  define("ADROTATE_VERSION", 380);
27
  define("ADROTATE_DB_VERSION", 53);
28
  /*-----------------------------------------------------------*/
dashboard/info.php CHANGED
@@ -66,7 +66,7 @@ $data = get_option("adrotate_advert_status");
66
  <div class="inside">
67
  <?php
68
  wp_widget_rss_output(array(
69
- 'url' => array('http://meandmymac.net/feed/', 'http://www.floatingcoconut.net/feed/', 'http://ajdg.solutions/feed/'),
70
  'title' => 'News',
71
  'items' => 4,
72
  'show_summary' => 1,
@@ -120,7 +120,7 @@ $data = get_option("adrotate_advert_status");
120
  <div class="postbox-adrotate">
121
  <div class="inside">
122
  <p><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/arnan-jungle.jpg" alt="Arnan de Gans" width="100" height="100" align="left" class="adrotate-photo" style="margin: 0 10px 0 0;" />
123
- <a href="http://www.floatingcoconut.net/?pk_campaign=adrotatefree-infopage" title="Arnan de Gans">Arnan de Gans</a> (<a href="https://ajdg.solutions/?pk_campaign=adrotatefree-infopage" title="Arnan de Gans">AJdG Solutions</a>) - <?php _e('Premium plugins for WordPress and WooCommerce. Providing business advise for starters or people looking for a new direction!', 'adrotate'); ?></p>
124
 
125
  <p><center><a href="https://twitter.com/arnandegans" class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="true">Follow @arnandegans</a>
126
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></center></p>
66
  <div class="inside">
67
  <?php
68
  wp_widget_rss_output(array(
69
+ 'url' => array('http://meandmymac.net/feed/', 'http://ajdg.solutions/feed/'),
70
  'title' => 'News',
71
  'items' => 4,
72
  'show_summary' => 1,
120
  <div class="postbox-adrotate">
121
  <div class="inside">
122
  <p><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/arnan-jungle.jpg" alt="Arnan de Gans" width="100" height="100" align="left" class="adrotate-photo" style="margin: 0 10px 0 0;" />
123
+ <a href="http://meandmymac.net/?pk_campaign=adrotatefree-infopage" title="Arnan de Gans">Arnan de Gans</a> (<a href="https://ajdg.solutions/?pk_campaign=adrotatefree-infopage" title="Arnan de Gans">AJdG Solutions</a>) - <?php _e('Premium plugins for WordPress and WooCommerce. Providing business advise for starters or people looking for a new direction!', 'adrotate'); ?></p>
124
 
125
  <p><center><a href="https://twitter.com/arnandegans" class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="true">Follow @arnandegans</a>
126
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></center></p>
images/icon-close.png CHANGED
File without changes
language/adrotate-bg_BG.mo CHANGED
File without changes
language/adrotate-el.mo CHANGED
File without changes
language/adrotate-es_ES.mo CHANGED
File without changes
language/adrotate-fr_FR.mo CHANGED
File without changes
language/adrotate-ja.mo CHANGED
File without changes
language/adrotate-sr_RS.mo CHANGED
File without changes
library/jquery.adrotate.dyngroup.js CHANGED
File without changes
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://meandmymac.net/donate/?pk_campaign=adrotatefree-readme
4
  Tags: ads, banner, commercial, admin, advertise, adrotator, plugin, random, rotator, ad, advertising, advertisement, block, blocks, advertiser, publisher, adsense, geo, geolocation, geotarget, chitika, clickbank, broadstreet, banner manager,advert manager, campaign manager, export, import, telize, maxmind, referrer, email, menu, statistics, stats, report, advert, adverts, popular, best, great, 2014, geoselect, geobytes, schedules, schedule, monetize, header, widget, javascript, jquery, tracking, clicks, impressions, rotate, zone, zones, sidebar, footer, content, posts, pages, 2015
5
  Requires at least: 3.8
6
  Tested up to: 4.3.1
7
- Stable tag: 3.13.1
8
  License: GPLv3
9
 
10
  The popular choice for monetizing your website with adverts while keeping things simple. Start making money today!
@@ -91,18 +91,15 @@ You can also post your questions on the [forum](https://ajdg.solutions/forums/?p
91
 
92
  Be a Pro and go Pro. With [AdRotate Pro](https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-readme)!
93
 
94
- = 3.13.1 FREE =
95
- * [change] Compatibility update for AdRotate Pro 3.17
96
- * [change] Compatibility update for AdRotate Switch 1.3
97
- * [change] Small tweaks to the dashboard
98
- * [i18n] New and changed translation strings
99
 
100
- = 3.17 PRO =
101
- * [new] Advanced schedule controls
102
- * [fix] Mobile Detect conflict if it's loaded elsewhere
103
- * [fix] Geo cookie lifespan not saving correctly
104
- * [change] Compatibility update for AdRotate Switch 1.3
105
- * [i18n] New and changed translation strings
106
 
107
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?pk_campaign=adrotatefree-readme).
108
 
@@ -110,11 +107,10 @@ NOTE: Unsolicited offers, parnterships, job offers, promotional emails or produc
110
 
111
  == Upgrade Notice ==
112
 
113
- = 3.13.1 =
114
- * [change] Compatibility update for AdRotate Pro 3.17
115
- * [change] Compatibility update for AdRotate Switch 1.3
116
- * [change] Small tweaks to the dashboard
117
- * [i18n] New and changed translation strings
118
 
119
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?pk_campaign=adrotatefree-readme).
120
 
@@ -124,6 +120,6 @@ Take a look at the many screenshots on the [AdRotate website](https://ajdg.solut
124
 
125
  **Other links**
126
 
127
- * [Usage guides](https://ajdg.solutions/manuals/adrotate-manuals/) - Every popular feature explained
128
  * [Support Forum](https://ajdg.solutions/forums/?pk_campaign=adrotatefree-readme) - Ask your questions here
129
  * [Plugin page](https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-readme) - Features, possibilities and AdRotate Pro
4
  Tags: ads, banner, commercial, admin, advertise, adrotator, plugin, random, rotator, ad, advertising, advertisement, block, blocks, advertiser, publisher, adsense, geo, geolocation, geotarget, chitika, clickbank, broadstreet, banner manager,advert manager, campaign manager, export, import, telize, maxmind, referrer, email, menu, statistics, stats, report, advert, adverts, popular, best, great, 2014, geoselect, geobytes, schedules, schedule, monetize, header, widget, javascript, jquery, tracking, clicks, impressions, rotate, zone, zones, sidebar, footer, content, posts, pages, 2015
5
  Requires at least: 3.8
6
  Tested up to: 4.3.1
7
+ Stable tag: 3.13.2
8
  License: GPLv3
9
 
10
  The popular choice for monetizing your website with adverts while keeping things simple. Start making money today!
91
 
92
  Be a Pro and go Pro. With [AdRotate Pro](https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-readme)!
93
 
94
+ = 3.13.2 FREE =
95
+ * [fix] HTML files not listed in Asset Folder dropdown
96
+ * [fix] Post Injection not always working if using multiple groups
97
+ * [fix] Post Injection showing too much adverts between paragraphs
 
98
 
99
+ = 3.17.2 PRO =
100
+ * [change] Disabled dynamic mode in groups for mobile users
101
+ * [fix] (de)select-all for Geo Countries not working
102
+ * [fix] Post Injection showing too much adverts between paragraphs
 
 
103
 
104
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?pk_campaign=adrotatefree-readme).
105
 
107
 
108
  == Upgrade Notice ==
109
 
110
+ = 3.13.2 =
111
+ * [fix] HTML files not listed in Asset Folder dropdown
112
+ * [fix] Post Injection not always working if using multiple groups
113
+ * [fix] Post Injection showing too much adverts between paragraphs
 
114
 
115
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?pk_campaign=adrotatefree-readme).
116
 
120
 
121
  **Other links**
122
 
123
+ * [Usage guides](https://ajdg.solutions/manuals/adrotate-manuals/?pk_campaign=adrotatefree-readme) - Every popular feature explained
124
  * [Support Forum](https://ajdg.solutions/forums/?pk_campaign=adrotatefree-readme) - Ask your questions here
125
  * [Plugin page](https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-readme) - Features, possibilities and AdRotate Pro