AdRotate Banner Manager - Version 4.8

Version Description

FREE = * [new] Support Jetpack Photon for certain advert assets * [fix] Incorrect function call to advert preview when editing * [fix] Today stats displaying wrong number in Adverts dashboard * [fix] Today stats in single Advert stats showing wrong number

Download this release

Release Info

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

Code changes from version 4.7 to 4.8

adrotate-functions.php CHANGED
@@ -531,10 +531,7 @@ function adrotate_ad_is_in_groups($id) {
531
532
/*-------------------------------------------------------------
533
Name: adrotate_hash
534
-
535
Purpose: Generate the adverts clicktracking hash
536
- Receive: $ad, $group, $blog_id
537
- Return: $result
538
Since: 3.9.12
539
-------------------------------------------------------------*/
540
function adrotate_hash($ad, $group = 0, $blog_id = 0) {
@@ -555,10 +552,7 @@ function adrotate_hash($ad, $group = 0, $blog_id = 0) {
555
556
/*-------------------------------------------------------------
557
Name: adrotate_get_remote_ip
558
-
559
Purpose: Get the remote IP from the visitor
560
- Receive: -None-
561
- Return: $buffer[0]
562
Since: 3.6.2
563
-------------------------------------------------------------*/
564
function adrotate_get_remote_ip(){
@@ -573,11 +567,21 @@ function adrotate_get_remote_ip(){
573
}
574
575
/*-------------------------------------------------------------
576
- Name: adrotate_get_sorted_roles
577
578
Purpose: Returns all roles and capabilities, sorted by user level. Lowest to highest.
579
- Receive: -none-
580
- Return: $sorted
581
Since: 3.2
582
-------------------------------------------------------------*/
583
function adrotate_get_sorted_roles() {
@@ -597,10 +601,7 @@ function adrotate_get_sorted_roles() {
597
598
/*-------------------------------------------------------------
599
Name: adrotate_set_capability
600
-
601
Purpose: Grant or revoke capabilities to a role and all higher roles
602
- Receive: $lowest_role, $capability
603
- Return: -None-
604
Since: 3.2
605
-------------------------------------------------------------*/
606
function adrotate_set_capability($lowest_role, $capability){
@@ -616,10 +617,7 @@ function adrotate_set_capability($lowest_role, $capability){
616
617
/*-------------------------------------------------------------
618
Name: adrotate_remove_capability
619
-
620
Purpose: Remove the $capability from the all roles
621
- Receive: $capability
622
- Return: -None-
623
Since: 3.2
624
-------------------------------------------------------------*/
625
function adrotate_remove_capability($capability){
@@ -633,10 +631,7 @@ function adrotate_remove_capability($capability){
633
634
/*-------------------------------------------------------------
635
Name: adrotate_dashboard_scripts
636
-
637
Purpose: Load file uploaded popup
638
- Receive: -None-
639
- Return: -None-
640
Since: 3.6
641
-------------------------------------------------------------*/
642
function adrotate_dashboard_scripts() {
531
532
/*-------------------------------------------------------------
533
Name: adrotate_hash
534
Purpose: Generate the adverts clicktracking hash
535
Since: 3.9.12
536
-------------------------------------------------------------*/
537
function adrotate_hash($ad, $group = 0, $blog_id = 0) {
552
553
/*-------------------------------------------------------------
554
Name: adrotate_get_remote_ip
555
Purpose: Get the remote IP from the visitor
556
Since: 3.6.2
557
-------------------------------------------------------------*/
558
function adrotate_get_remote_ip(){
567
}
568
569
/*-------------------------------------------------------------
570
+ Name: adrotate_apply_jetpack_photon
571
+ Purpose: Use Jetpack Photon if possible
572
+ Since: 4.11
573
+ -------------------------------------------------------------*/
574
+ function adrotate_apply_jetpack_photon($image) {
575
+ if(function_exists('jetpack_photon_url')) {
576
+ return jetpack_photon_url($image);
577
+ } else {
578
+ return $image;
579
+ }
580
+ }
581
582
+ /*-------------------------------------------------------------
583
+ Name: adrotate_get_sorted_roles
584
Purpose: Returns all roles and capabilities, sorted by user level. Lowest to highest.
585
Since: 3.2
586
-------------------------------------------------------------*/
587
function adrotate_get_sorted_roles() {
601
602
/*-------------------------------------------------------------
603
Name: adrotate_set_capability
604
Purpose: Grant or revoke capabilities to a role and all higher roles
605
Since: 3.2
606
-------------------------------------------------------------*/
607
function adrotate_set_capability($lowest_role, $capability){
617
618
/*-------------------------------------------------------------
619
Name: adrotate_remove_capability
620
Purpose: Remove the $capability from the all roles
621
Since: 3.2
622
-------------------------------------------------------------*/
623
function adrotate_remove_capability($capability){
631
632
/*-------------------------------------------------------------
633
Name: adrotate_dashboard_scripts
634
Purpose: Load file uploaded popup
635
Since: 3.6
636
-------------------------------------------------------------*/
637
function adrotate_dashboard_scripts() {
adrotate-output.php CHANGED
@@ -334,7 +334,7 @@ function adrotate_preview($banner_id) {
334
335
if($banner) {
336
$image = str_replace('%folder%', '/banners/', $banner->image);
337
- $output = adrotate_ad_output($banner->id, 0, $banner->title, $banner->bannercode, $banner->tracker, $image, 'N');
338
} else {
339
$output = adrotate_error('ad_expired');
340
}
@@ -381,6 +381,8 @@ function adrotate_ad_output($id, $group = 0, $name, $bannercode, $tracker, $imag
381
}
382
}
383
384
$banner_output = str_replace('%title%', $name, $banner_output);
385
$banner_output = str_replace('%random%', rand(100000,999999), $banner_output);
386
$banner_output = str_replace('%asset%', $image, $banner_output); // Replaces %image%
334
335
if($banner) {
336
$image = str_replace('%folder%', '/banners/', $banner->image);
337
+ $output = adrotate_ad_output($banner->id, 0, $banner->title, $banner->bannercode, $banner->tracker, $image);
338
} else {
339
$output = adrotate_error('ad_expired');
340
}
381
}
382
}
383
384
+ $image = apply_filters('adrotate_apply_photon', $image);
385
+
386
$banner_output = str_replace('%title%', $name, $banner_output);
387
$banner_output = str_replace('%random%', rand(100000,999999), $banner_output);
388
$banner_output = str_replace('%asset%', $image, $banner_output); // Replaces %image%
adrotate-statistics.php CHANGED
@@ -202,7 +202,6 @@ function adrotate_stats_graph($type, $archive = false, $id, $chartid, $start, $e
202
}
203
204
if($stats) {
205
- /* -- Add in 4.7 or so -- //
206
$dates = $clicks = $impressions = '';
207
208
foreach($stats as $result) {
@@ -213,42 +212,6 @@ function adrotate_stats_graph($type, $archive = false, $id, $chartid, $start, $e
213
$clicks .= ','.$result['clicks'];
214
$impressions .= ','.$result['impressions'];
215
}
216
- // -- End Add -- */
217
-
218
- // -- Remove in 4.7 or so -- //
219
- $dates = $clicks = $impressions = ''; // To store the final graph data
220
- $day_start = $start; // Midnight of the day (start)
221
- $day_end = $day_start + 86399; // 1 second before midnight of the next day
222
-
223
- $i = 0;
224
- foreach($stats as $result) {
225
- if(empty($result['clicks'])) $result['clicks'] = '0';
226
- if(empty($result['impressions'])) $result['impressions'] = '0';
227
-
228
- // Convert hourly stats into daily stats
229
- if($result['thetime'] >= $day_start AND $result['thetime'] <= $day_end) {
230
- if(empty($graph[$i]['clicks'])) $graph[$i]['clicks'] = '0';
231
- if(empty($graph[$i]['impressions'])) $graph[$i]['impressions'] = '0';
232
-
233
- $sum_clicks = $graph[$i]['clicks'] + $result['clicks'];
234
- $sum_impressions = $graph[$i]['impressions'] + $result['impressions'];
235
- } else {
236
- $day_start = $result['thetime'];
237
- $day_end = $day_start + 86399;
238
- $sum_clicks = $result['clicks'];
239
- $sum_impressions = $result['impressions'];
240
- $i++;
241
- }
242
- $graph[$i] = array('thetime' => $day_start, 'clicks' => $sum_clicks, 'impressions' => $sum_impressions);
243
- unset($sum_clicks, $sum_impressions);
244
- }
245
-
246
- foreach($graph as $result) {
247
- $dates .= ',"'.date_i18n("d M", $result['thetime']).'"';
248
- $clicks .= ','.$result['clicks'];
249
- $impressions .= ','.$result['impressions'];
250
- }
251
- // -- End Remove -- //
252
253
$dates = trim($dates, ",");
254
$clicks = trim($clicks, ",");
202
}
203
204
if($stats) {
205
$dates = $clicks = $impressions = '';
206
207
foreach($stats as $result) {
212
$clicks .= ','.$result['clicks'];
213
$impressions .= ','.$result['impressions'];
214
}
215
216
$dates = trim($dates, ",");
217
$clicks = trim($clicks, ",");
adrotate.php CHANGED
@@ -1,13 +1,13 @@
1
<?php
2
/*
3
Plugin Name: AdRotate
4
- Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=plugin-info&utm_source=adrotate-free
5
Author: Arnan de Gans
6
- Author URI: http://ajdg.solutions/?utm_campaign=homepage&utm_medium=plugin-info&utm_source=adrotate-free
7
Description: Monetise your website with adverts while keeping things simple. Start making money today!
8
Text Domain: adrotate
9
Domain Path: /languages/
10
- Version: 4.7
11
License: GPLv3
12
*/
13
@@ -22,7 +22,7 @@ License: GPLv3
22
------------------------------------------------------------------------------------ */
23
24
/*--- AdRotate values ---------------------------------------*/
25
- define("ADROTATE_DISPLAY", '4.7');
26
define("ADROTATE_VERSION", 391);
27
define("ADROTATE_DB_VERSION", 64);
28
$plugin_folder = plugin_dir_path(__FILE__);
@@ -54,21 +54,23 @@ register_uninstall_hook(__FILE__, 'adrotate_uninstall');
54
add_action('adrotate_evaluate_ads', 'adrotate_evaluate_ads');
55
add_action('adrotate_empty_trackerdata', 'adrotate_empty_trackerdata');
56
add_action('widgets_init', create_function('', 'return register_widget("adrotate_widgets");'));
57
/*-----------------------------------------------------------*/
58
59
/*--- Front end ---------------------------------------------*/
60
- if($adrotate_config['stats'] == 1){
61
- add_action('wp_ajax_adrotate_impression', 'adrotate_impression_callback');
62
- add_action('wp_ajax_nopriv_adrotate_impression', 'adrotate_impression_callback');
63
- add_action('wp_ajax_adrotate_click', 'adrotate_click_callback');
64
- add_action('wp_ajax_nopriv_adrotate_click', 'adrotate_click_callback');
65
- }
66
if(!is_admin()) {
67
add_shortcode('adrotate', 'adrotate_shortcode');
68
add_action("wp_enqueue_scripts", 'adrotate_custom_scripts');
69
add_action('wp_head', 'adrotate_custom_css');
70
add_filter('the_content', 'adrotate_inject_posts', 12);
71
}
72
/*-----------------------------------------------------------*/
73
74
/*--- Back End ----------------------------------------------*/
1
<?php
2
/*
3
Plugin Name: AdRotate
4
+ Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/
5
Author: Arnan de Gans
6
+ Author URI: http://ajdg.solutions/
7
Description: Monetise your website with adverts while keeping things simple. Start making money today!
8
Text Domain: adrotate
9
Domain Path: /languages/
10
+ Version: 4.8
11
License: GPLv3
12
*/
13
22
------------------------------------------------------------------------------------ */
23
24
/*--- AdRotate values ---------------------------------------*/
25
+ define("ADROTATE_DISPLAY", '4.8');
26
define("ADROTATE_VERSION", 391);
27
define("ADROTATE_DB_VERSION", 64);
28
$plugin_folder = plugin_dir_path(__FILE__);
54
add_action('adrotate_evaluate_ads', 'adrotate_evaluate_ads');
55
add_action('adrotate_empty_trackerdata', 'adrotate_empty_trackerdata');
56
add_action('widgets_init', create_function('', 'return register_widget("adrotate_widgets");'));
57
+ add_filter('adrotate_apply_photon','adrotate_apply_jetpack_photon');
58
/*-----------------------------------------------------------*/
59
60
/*--- Front end ---------------------------------------------*/
61
if(!is_admin()) {
62
add_shortcode('adrotate', 'adrotate_shortcode');
63
add_action("wp_enqueue_scripts", 'adrotate_custom_scripts');
64
add_action('wp_head', 'adrotate_custom_css');
65
add_filter('the_content', 'adrotate_inject_posts', 12);
66
}
67
+
68
+ if($adrotate_config['stats'] == 1){
69
+ add_action('wp_ajax_adrotate_impression', 'adrotate_impression_callback');
70
+ add_action('wp_ajax_nopriv_adrotate_impression', 'adrotate_impression_callback');
71
+ add_action('wp_ajax_adrotate_click', 'adrotate_click_callback');
72
+ add_action('wp_ajax_nopriv_adrotate_click', 'adrotate_click_callback');
73
+ }
74
/*-----------------------------------------------------------*/
75
76
/*--- Back End ----------------------------------------------*/
dashboard/adrotatepro.php CHANGED
@@ -99,7 +99,7 @@
99
<a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=propage"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
100
<p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotate-free&pk_kwd=single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
101
<p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotate-free&pk_kwd=duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
102
- <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Up to five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotate-free&pk_kwd=multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
103
<p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotate-free&pk_kwd=developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
104
<p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=compare" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
105
</div>
99
<a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=propage"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
100
<p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotate-free&pk_kwd=single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
101
<p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotate-free&pk_kwd=duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
102
+ <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotate-free&pk_kwd=multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
103
<p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotate-free&pk_kwd=developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
104
<p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=compare" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
105
</div>
dashboard/info.php CHANGED
@@ -96,7 +96,7 @@ $partner = mt_rand(1,3);
96
<a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=infopage"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
97
<p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotate-free&pk_kwd=single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
98
<p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotate-free&pk_kwd=duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
99
- <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Up to five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotate-free&pk_kwd=multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
100
<p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotate-free&pk_kwd=developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
101
<p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=compare" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
102
<!--
96
<a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=infopage"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
97
<p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotate-free&pk_kwd=single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
98
<p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotate-free&pk_kwd=duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
99
+ <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotate-free&pk_kwd=multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
100
<p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotate-free&pk_kwd=developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
101
<p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotate-free&pk_kwd=compare" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
102
<!--
dashboard/publisher/adverts-main.php CHANGED
@@ -54,7 +54,7 @@
54
$class = '';
55
foreach($active as $banner) {
56
$stats = adrotate_stats($banner['id']);
57
- $stats_today = adrotate_stats($banner['id'], adrotate_date_start('day'));
58
$grouplist = adrotate_ad_is_in_groups($banner['id']);
59
60
$ctr = adrotate_ctr($stats['clicks'], $stats['impressions']);
54
$class = '';
55
foreach($active as $banner) {
56
$stats = adrotate_stats($banner['id']);
57
+ $stats_today = adrotate_stats($banner['id'], false, adrotate_date_start('day'));
58
$grouplist = adrotate_ad_is_in_groups($banner['id']);
59
60
$ctr = adrotate_ctr($stats['clicks'], $stats['impressions']);
dashboard/publisher/statistics-advert.php CHANGED
@@ -13,7 +13,7 @@ $banner = $wpdb->get_row("SELECT `title`, `tracker`, `type` FROM `{$wpdb->prefix
13
$schedules = $wpdb->get_results("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions`, COUNT(`clicks`) as `clicks`, COUNT(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta`, `{$wpdb->prefix}adrotate_stats` WHERE `{$wpdb->prefix}adrotate_linkmeta`.`ad` = '{$id}' AND `{$wpdb->prefix}adrotate_linkmeta`.`ad` = `{$wpdb->prefix}adrotate_stats`.`ad` AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` AND `thetime` > `starttime` AND `thetime` < `stoptime` ORDER BY `{$wpdb->prefix}adrotate_schedule`.`id` ASC;");
14
15
$stats = adrotate_stats($id, false);
16
- $stats_today = adrotate_stats($id, false, adrotate_date_start('day'), null, 1);
17
$stats_last_month = adrotate_stats($id, false, mktime(0, 0, 0, date("m")-1, 1, date("Y")), mktime(0, 0, 0, date("m"), 0, date("Y")));
18
$stats_this_month = adrotate_stats($id, false, mktime(0, 0, 0, date("m"), 1, date("Y")), mktime(0, 0, 0, date("m"), date("t"), date("Y")));
19
$stats_graph_month = adrotate_stats($id, false, $monthstart, $monthend);
13
$schedules = $wpdb->get_results("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions`, COUNT(`clicks`) as `clicks`, COUNT(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta`, `{$wpdb->prefix}adrotate_stats` WHERE `{$wpdb->prefix}adrotate_linkmeta`.`ad` = '{$id}' AND `{$wpdb->prefix}adrotate_linkmeta`.`ad` = `{$wpdb->prefix}adrotate_stats`.`ad` AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` AND `thetime` > `starttime` AND `thetime` < `stoptime` ORDER BY `{$wpdb->prefix}adrotate_schedule`.`id` ASC;");
14
15
$stats = adrotate_stats($id, false);
16
+ $stats_today = adrotate_stats($id, false, adrotate_date_start('day'));
17
$stats_last_month = adrotate_stats($id, false, mktime(0, 0, 0, date("m")-1, 1, date("Y")), mktime(0, 0, 0, date("m"), 0, date("Y")));
18
$stats_this_month = adrotate_stats($id, false, mktime(0, 0, 0, date("m"), 1, date("Y")), mktime(0, 0, 0, date("m"), date("t"), date("Y")));
19
$stats_graph_month = adrotate_stats($id, false, $monthstart, $monthend);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
=== AdRotate Banner Manager ===
2
Contributors: adegans
3
- Donate link: http://www.arnan.me/donate/?utm_campaign=donations&utm_medium=readme&utm_source=adrotate-free
4
Tags: ad, advert, adsense, advertising, doubleclick, responsive, ad rotator, ad manager, banner manager, advert manager, analytics, advertisement,
5
Requires at least: 3.8
6
Tested up to: 4.9
7
- Stable tag: 4.7
8
License: GPLv3
9
10
Monetise your website with adverts while keeping things simple. Start making money today!
@@ -99,10 +99,11 @@ You can also post your questions on the [forum](https://ajdg.solutions/forums/?u
99
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=readme&utm_source=adrotate-free)!
100
101
102
- = 4.7 FREE =
103
- * [fix] Showing correct stats for adverts below graphs
104
- * [i18n] Added missing strings in dashboard notifications
105
- * [i18n] Corrected/included lots of missing strings
106
107
= 4.10.1 PRO =
108
* [i18n] Corrected/included some of missing strings
@@ -111,9 +112,10 @@ All recent changes are available on the [AdRotate website](https://ajdg.solution
111
112
== Upgrade Notice ==
113
114
- * [fix] Showing correct stats for adverts below graphs
115
- * [i18n] Added missing strings in dashboard notifications
116
- * [i18n] Corrected/included lots of missing strings
117
118
== Screenshots ==
119
1
=== AdRotate Banner Manager ===
2
Contributors: adegans
3
+ Donate link: http://www.arnan.me/#donate
4
Tags: ad, advert, adsense, advertising, doubleclick, responsive, ad rotator, ad manager, banner manager, advert manager, analytics, advertisement,
5
Requires at least: 3.8
6
Tested up to: 4.9
7
+ Stable tag: 4.8
8
License: GPLv3
9
10
Monetise your website with adverts while keeping things simple. Start making money today!
99
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=readme&utm_source=adrotate-free)!
100
101
102
+ = 4.8 FREE =
103
+ * [new] Support Jetpack Photon for certain advert assets
104
+ * [fix] Incorrect function call to advert preview when editing
105
+ * [fix] Today stats displaying wrong number in Adverts dashboard
106
+ * [fix] Today stats in single Advert stats showing wrong number
107
108
= 4.10.1 PRO =
109
* [i18n] Corrected/included some of missing strings
112
113
== Upgrade Notice ==
114
115
+ * [new] Support Jetpack Photon for certain advert assets
116
+ * [fix] Incorrect function call to advert preview when editing
117
+ * [fix] Today stats displaying wrong number in Adverts dashboard
118
+ * [fix] Today stats in single Advert stats showing wrong number
119
120
== Screenshots ==
121