AdRotate Banner Manager - Version 3.16.1

Version Description

FREE = * [fix] Advert status messages not showing the right message * [fix] Clicktracking not always working when HTML is uppercase

Download this release

Release Info

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

Code changes from version 3.16 to 3.16.1

adrotate-manage-publisher.php CHANGED
@@ -356,7 +356,7 @@ function adrotate_request_action() {
356
  if($action == 'deactivate') {
357
  if(current_user_can('adrotate_ad_manage')) {
358
  adrotate_active($banner_id, 'deactivate');
359
- $result_id = $banner_id;
360
  } else {
361
  adrotate_return($return, 500);
362
  }
@@ -364,7 +364,7 @@ function adrotate_request_action() {
364
  if($action == 'activate') {
365
  if(current_user_can('adrotate_ad_manage')) {
366
  adrotate_active($banner_id, 'activate');
367
- $result_id = $banner_id;
368
  } else {
369
  adrotate_return($return, 500);
370
  }
@@ -372,7 +372,7 @@ function adrotate_request_action() {
372
  if($action == 'delete') {
373
  if(current_user_can('adrotate_ad_delete')) {
374
  adrotate_delete($banner_id, 'banner');
375
- $result_id = $banner_id;
376
  } else {
377
  adrotate_return($return, 500);
378
  }
@@ -380,7 +380,7 @@ function adrotate_request_action() {
380
  if($action == 'reset') {
381
  if(current_user_can('adrotate_ad_delete')) {
382
  adrotate_reset($banner_id);
383
- $result_id = $banner_id;
384
  } else {
385
  adrotate_return($return, 500);
386
  }
@@ -388,15 +388,7 @@ function adrotate_request_action() {
388
  if($action == 'renew') {
389
  if(current_user_can('adrotate_ad_manage')) {
390
  adrotate_renew($banner_id, $specific);
391
- $result_id = $banner_id;
392
- } else {
393
- adrotate_return($return, 500);
394
- }
395
- }
396
- if($action == 'weight') {
397
- if(current_user_can('adrotate_ad_manage')) {
398
- adrotate_weight($banner_id, $specific);
399
- $result_id = $banner_id;
400
  } else {
401
  adrotate_return($return, 500);
402
  }
@@ -412,7 +404,7 @@ function adrotate_request_action() {
412
  if($action == 'group_delete') {
413
  if(current_user_can('adrotate_group_delete')) {
414
  adrotate_delete($group_id, 'group');
415
- $result_id = $group_id;
416
  } else {
417
  adrotate_return($return, 500);
418
  }
@@ -420,7 +412,7 @@ function adrotate_request_action() {
420
  if($action == 'group_delete_banners') {
421
  if(current_user_can('adrotate_group_delete')) {
422
  adrotate_delete($group_id, 'bannergroup');
423
- $result_id = $group_id;
424
  } else {
425
  adrotate_return($return, 500);
426
  }
356
  if($action == 'deactivate') {
357
  if(current_user_can('adrotate_ad_manage')) {
358
  adrotate_active($banner_id, 'deactivate');
359
+ $result_id = 210;
360
  } else {
361
  adrotate_return($return, 500);
362
  }
364
  if($action == 'activate') {
365
  if(current_user_can('adrotate_ad_manage')) {
366
  adrotate_active($banner_id, 'activate');
367
+ $result_id = 211;
368
  } else {
369
  adrotate_return($return, 500);
370
  }
372
  if($action == 'delete') {
373
  if(current_user_can('adrotate_ad_delete')) {
374
  adrotate_delete($banner_id, 'banner');
375
+ $result_id = 203;
376
  } else {
377
  adrotate_return($return, 500);
378
  }
380
  if($action == 'reset') {
381
  if(current_user_can('adrotate_ad_delete')) {
382
  adrotate_reset($banner_id);
383
+ $result_id = 208;
384
  } else {
385
  adrotate_return($return, 500);
386
  }
388
  if($action == 'renew') {
389
  if(current_user_can('adrotate_ad_manage')) {
390
  adrotate_renew($banner_id, $specific);
391
+ $result_id = 209;
 
 
 
 
 
 
 
 
392
  } else {
393
  adrotate_return($return, 500);
394
  }
404
  if($action == 'group_delete') {
405
  if(current_user_can('adrotate_group_delete')) {
406
  adrotate_delete($group_id, 'group');
407
+ $result_id = 204;
408
  } else {
409
  adrotate_return($return, 500);
410
  }
412
  if($action == 'group_delete_banners') {
413
  if(current_user_can('adrotate_group_delete')) {
414
  adrotate_delete($group_id, 'bannergroup');
415
+ $result_id = 213;
416
  } else {
417
  adrotate_return($return, 500);
418
  }
adrotate-output.php CHANGED
@@ -365,7 +365,7 @@ function adrotate_ad_output($id, $group = 0, $name, $bannercode, $tracker, $imag
365
  if($adrotate_config['stats'] == 1) { // Internal tracker
366
  preg_match_all('/<a[^>](?:.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
367
  if(isset($matches[0])) {
368
- $banner_output = str_replace('<a ', '<a data-track="'.adrotate_hash($id, $group, $blog_id).'" ', $banner_output);
369
  foreach($matches[0] as $value) {
370
  if(preg_match('/<a[^>]+class=\"(.+?)\"[^>]*>/i', $value, $regs)) {
371
  $result = $regs[1]." gofollow";
365
  if($adrotate_config['stats'] == 1) { // Internal tracker
366
  preg_match_all('/<a[^>](?:.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
367
  if(isset($matches[0])) {
368
+ $banner_output = str_ireplace('<a ', '<a data-track="'.adrotate_hash($id, $group, $blog_id).'" ', $banner_output);
369
  foreach($matches[0] as $value) {
370
  if(preg_match('/<a[^>]+class=\"(.+?)\"[^>]*>/i', $value, $regs)) {
371
  $result = $regs[1]." gofollow";
adrotate.php CHANGED
@@ -7,7 +7,7 @@ Author URI: http://ajdg.solutions/?utm_campaign=homepage&utm_medium=plugin-info&
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.16
11
  License: GPLv3
12
  */
13
 
@@ -22,7 +22,7 @@ License: GPLv3
22
  ------------------------------------------------------------------------------------ */
23
 
24
  /*--- AdRotate values ---------------------------------------*/
25
- define("ADROTATE_DISPLAY", '3.16');
26
  define("ADROTATE_VERSION", 384);
27
  define("ADROTATE_DB_VERSION", 59);
28
  /*-----------------------------------------------------------*/
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.16.1
11
  License: GPLv3
12
  */
13
 
22
  ------------------------------------------------------------------------------------ */
23
 
24
  /*--- AdRotate values ---------------------------------------*/
25
+ define("ADROTATE_DISPLAY", '3.16.1');
26
  define("ADROTATE_VERSION", 384);
27
  define("ADROTATE_DB_VERSION", 59);
28
  /*-----------------------------------------------------------*/
dashboard/publisher/adverts-edit.php CHANGED
@@ -16,7 +16,6 @@ if(!$ad_edit_id) {
16
  $edit_id = $wpdb->insert_id;
17
 
18
  $wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'hourimpressions' => 0, 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y'));
19
-
20
  $schedule_id = $wpdb->insert_id;
21
  $wpdb->insert($wpdb->prefix.'adrotate_linkmeta', array('ad' => $edit_id, 'group' => 0, 'user' => 0, 'schedule' => $schedule_id));
22
  }
16
  $edit_id = $wpdb->insert_id;
17
 
18
  $wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'hourimpressions' => 0, 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y'));
 
19
  $schedule_id = $wpdb->insert_id;
20
  $wpdb->insert($wpdb->prefix.'adrotate_linkmeta', array('ad' => $edit_id, 'group' => 0, 'user' => 0, 'schedule' => $schedule_id));
21
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://meandmymac.net/donate/?utm_campaign=donations&utm_medium=rea
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.6.1
7
- Stable tag: 3.16
8
  License: GPLv3
9
 
10
  The popular choice for monetizing your website with adverts while keeping things simple. Start making money today!
@@ -96,31 +96,21 @@ You can also post your questions on the [forum](https://ajdg.solutions/forums/?u
96
 
97
  Be a Pro and go Pro. With [AdRotate Pro](https://ajdg.solutions/products/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=readme&utm_source=adrotate-free)!
98
 
99
- = 3.16 FREE =
100
- * [fix] Click tracking not always working if your HTML is in uppercase
101
- * [fix] Maintenance tasks not always properly set up
102
- * [change] AdRotate menu re-done and updated
103
-
104
- = 4.1 PRO =
105
- * Network license no longer supported - Get a free upgrade!
106
- * [new] Widget wrapper option
107
- * [new] Widget now auto-detects Network adverts and groups
108
- * [new] Enable/disable dashboard for Network Sites
109
- * [new] Set up a primary site to control the network
110
- * [new] Transactions menu item and relevant dashboard
111
- * [new] Mobile OS detection and filtering
112
- * [new] Paypal payments for campaigns
113
- * [fix] Group settings not loaded if group is from another site_id
114
- * [fix] Click tracking not always working if your HTML is in uppercase
115
- * [fix] Hourly impressions limit now properly filtered
116
- * [change] AdRotate Pro menu re-done and updated
117
- * [change] 'Moderation Queue' now a tab in 'Adverts'
118
- * [change] 'Rejected Adverts' merged with 'Queue' tab
119
- * [change] 'Full Report' moved to it's own menu item
120
- * [change] 'Stats' from Adverts moved to new 'Statistics' menu
121
- * [change] 'Stats' from Groups moved to new 'Statistics' menu
122
- * [change] 'Network' license no longer supported
123
- * [change] 'site' variable now acts as switch, not a selector
124
 
125
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?utm_campaign=development&utm_medium=readme&utm_source=adrotate-free).
126
 
@@ -128,10 +118,9 @@ NOTE: Unsolicited offers, parnterships, job offers, promotional emails or produc
128
 
129
  == Upgrade Notice ==
130
 
131
- = 3.16 FREE =
132
- * [fix] Click tracking not always working if your HTML is in uppercase
133
- * [fix] Maintenance tasks not always properly set up
134
- * [change] AdRotate menu re-done and updated
135
 
136
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?utm_campaign=development&utm_medium=readme&utm_source=adrotate-free).
137
 
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.6.1
7
+ Stable tag: 3.16.1
8
  License: GPLv3
9
 
10
  The popular choice for monetizing your website with adverts while keeping things simple. Start making money today!
96
 
97
  Be a Pro and go Pro. With [AdRotate Pro](https://ajdg.solutions/products/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=readme&utm_source=adrotate-free)!
98
 
99
+ = 3.16.1 FREE =
100
+ * [fix] Advert status messages not showing the right message
101
+ * [fix] Clicktracking not always working when HTML is uppercase
102
+
103
+ = 4.1.2 PRO =
104
+ * [new] Australian Dollars for transactions
105
+ * [new] Fallback groups hidden for advertisers
106
+ * [fix] No longer list empty adverts in transactions menu
107
+ * [fix] Wrong table prefix for new listing adverts in new transactions
108
+ * [fix] Better widget output for W3 Total Cache
109
+ * [fix] Todays stats for single adverts displaying the wrong numbers
110
+ * [fix] Undefined notices on Advertiser pages
111
+ * [fix] Undefined notices on User creation page
112
+ * [fix] Unpaid adverts showing as active when editing groups
113
+ * [fix] Unpaid adverts still showing for some groups
 
 
 
 
 
 
 
 
 
 
114
 
115
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?utm_campaign=development&utm_medium=readme&utm_source=adrotate-free).
116
 
118
 
119
  == Upgrade Notice ==
120
 
121
+ = 3.16.1 FREE =
122
+ * [fix] Advert status messages not showing the right message
123
+ * [fix] Clicktracking not always working when HTML is uppercase
 
124
 
125
  All recent changes are available on the [AdRotate website](https://ajdg.solutions/products/adrotate-for-wordpress/development/?utm_campaign=development&utm_medium=readme&utm_source=adrotate-free).
126