Version Description
Automatic updates should work great for you. As always, though, we recommend backing up your site prior to making any updates just to be sure nothing goes wrong.
Download this release
Release Info
Developer | dots |
Plugin | Page Visit Counter |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
README.txt
CHANGED
@@ -4,7 +4,7 @@ Plugin URI: http://multidots.com/
|
|
4 |
Author: Multidots
|
5 |
Author URI: http://multidots.com/
|
6 |
Contributors: dots
|
7 |
-
Stable tag: 2.0.
|
8 |
Tags: page counter,page visit
|
9 |
Requires at least: 2.1
|
10 |
Tested up to: 4.4.2
|
@@ -24,6 +24,7 @@ This Plugin use for front side post and pages counter. After activation of plugi
|
|
24 |
* Post Type: You can select the post type from the drop down menu for which post views will be counted. If you leave blank on post type, then all pages or all past type posts will be counted.
|
25 |
* Exclude IPs (Ip Address): Enter the IP addresses which you want to be excluded from post views count.
|
26 |
* Exclude Users: Select users from your project/system to be excluded from post view count.
|
|
|
27 |
|
28 |
|
29 |
= Page Visit Counter: =
|
@@ -107,3 +108,9 @@ Automatic updates should work great for you. As always, though, we recommend ba
|
|
107 |
* New - Added counter on the WooCommerce shop page.
|
108 |
* New - Added total visit count on single post/page edit view in admin side meta box.
|
109 |
* New - Added total visit count on single post/page listing view in admin side.
|
|
|
|
|
|
|
|
|
|
|
|
4 |
Author: Multidots
|
5 |
Author URI: http://multidots.com/
|
6 |
Contributors: dots
|
7 |
+
Stable tag: 2.0.3
|
8 |
Tags: page counter,page visit
|
9 |
Requires at least: 2.1
|
10 |
Tested up to: 4.4.2
|
24 |
* Post Type: You can select the post type from the drop down menu for which post views will be counted. If you leave blank on post type, then all pages or all past type posts will be counted.
|
25 |
* Exclude IPs (Ip Address): Enter the IP addresses which you want to be excluded from post views count.
|
26 |
* Exclude Users: Select users from your project/system to be excluded from post view count.
|
27 |
+
* Show front view counter: Check the box if you want to display counter view on front end.
|
28 |
|
29 |
|
30 |
= Page Visit Counter: =
|
108 |
* New - Added counter on the WooCommerce shop page.
|
109 |
* New - Added total visit count on single post/page edit view in admin side meta box.
|
110 |
* New - Added total visit count on single post/page listing view in admin side.
|
111 |
+
|
112 |
+
= 2.0.3 - 03.03.2016 =
|
113 |
+
* Fixies - PHP error notice handled.
|
114 |
+
* Fixies - Set the global visible NO to display counter view on front end.
|
115 |
+
|
116 |
+
|
admin/class-page-visit-counter-admin.php
CHANGED
@@ -280,14 +280,14 @@ class page_visit_counter_Admin {
|
|
280 |
</td>';
|
281 |
$html .='</tr>';
|
282 |
$html .='<tr class="hidefront">';
|
283 |
-
$html .='<td>
|
284 |
$hide_show_option = get_option('counter_hide_show_front_vew');
|
285 |
if($hide_show_option == 1){
|
286 |
$cheked = 'checked';
|
287 |
} else {
|
288 |
$cheked = '';
|
289 |
}
|
290 |
-
$html .='<td class="information"><input type="checkbox" name="hidefrontview" id="hide_front_view" '.$cheked.' >
|
291 |
$html .='</tr>';
|
292 |
$html .='<tr>';
|
293 |
$html .='<td><input type="button" name="submit" class="pagecountsubmit button" value="Save"></td>';
|
280 |
</td>';
|
281 |
$html .='</tr>';
|
282 |
$html .='<tr class="hidefront">';
|
283 |
+
$html .='<td>Show front view counter</td>';
|
284 |
$hide_show_option = get_option('counter_hide_show_front_vew');
|
285 |
if($hide_show_option == 1){
|
286 |
$cheked = 'checked';
|
287 |
} else {
|
288 |
$cheked = '';
|
289 |
}
|
290 |
+
$html .='<td class="information"><input type="checkbox" name="hidefrontview" id="hide_front_view" '.$cheked.' >Check the box if you want to display counter view on front end.</td>';
|
291 |
$html .='</tr>';
|
292 |
$html .='<tr>';
|
293 |
$html .='<td><input type="button" name="submit" class="pagecountsubmit button" value="Save"></td>';
|
admin/css/style.css
CHANGED
@@ -24,7 +24,7 @@ div.page-visit-summery a#example_next{border-radius: 5px;padding: 5px 10px;backg
|
|
24 |
.page-settings-summery form table tr td select#page-setting-options {width: 200px;color: #000;}
|
25 |
.page-settings-summery form table tr td input#pagecountduration {width: 200px;color: #000;}
|
26 |
.page-settings-summery form table tr td input.pagecountsubmit:hover {color: #000 !important;}
|
27 |
-
.page-settings-summery form table tr td {font-size: 15px;color: #23282D;text-transform:
|
28 |
.page-input-text {float: left;width: 100%;padding: 0;margin: 5px 0;}
|
29 |
.page-visit-summery {float: left;width: 100%;padding: 0;margin: 0;}
|
30 |
#example_wrapper {float: left;width: 100%;padding: 0;margin: 0;}
|
24 |
.page-settings-summery form table tr td select#page-setting-options {width: 200px;color: #000;}
|
25 |
.page-settings-summery form table tr td input#pagecountduration {width: 200px;color: #000;}
|
26 |
.page-settings-summery form table tr td input.pagecountsubmit:hover {color: #000 !important;}
|
27 |
+
.page-settings-summery form table tr td {font-size: 15px;color: #23282D;text-transform: none;font-weight: bold;}
|
28 |
.page-input-text {float: left;width: 100%;padding: 0;margin: 5px 0;}
|
29 |
.page-visit-summery {float: left;width: 100%;padding: 0;margin: 0;}
|
30 |
#example_wrapper {float: left;width: 100%;padding: 0;margin: 0;}
|
includes/class-page-visit-counter-activator.php
CHANGED
@@ -44,7 +44,7 @@ class class_Page_Visit_Activator {
|
|
44 |
//add_option( 'contact_db_version', $contact_db_version );
|
45 |
}
|
46 |
|
47 |
-
update_option('counter_hide_show_front_vew','
|
48 |
|
49 |
if( in_array( 'woocommerce/woocommerce.php',apply_filters('active_plugins',get_option('active_plugins'))) && !is_plugin_active_for_network( 'woocommerce/woocommerce.php' ) ) {
|
50 |
$flag = '1';
|
44 |
//add_option( 'contact_db_version', $contact_db_version );
|
45 |
}
|
46 |
|
47 |
+
update_option('counter_hide_show_front_vew','');
|
48 |
|
49 |
if( in_array( 'woocommerce/woocommerce.php',apply_filters('active_plugins',get_option('active_plugins'))) && !is_plugin_active_for_network( 'woocommerce/woocommerce.php' ) ) {
|
50 |
$flag = '1';
|
includes/class-page-visit-counter.php
CHANGED
@@ -176,7 +176,8 @@ class page_visit_counter {
|
|
176 |
|
177 |
$this->loader->add_action( 'wp', $plugin_public, 'insert_page_visit_counter' );
|
178 |
|
179 |
-
$this->loader->add_action( '
|
|
|
180 |
|
181 |
if (in_array( 'woocommerce/woocommerce.php',apply_filters('active_plugins',get_option('active_plugins')))) {
|
182 |
$this->loader->add_filter( 'woocommerce_paypal_args', $plugin_public, 'paypal_bn_code_filter',99,1 );
|
176 |
|
177 |
$this->loader->add_action( 'wp', $plugin_public, 'insert_page_visit_counter' );
|
178 |
|
179 |
+
$this->loader->add_action( 'the_content', $plugin_public, 'insert_page_visit_counter_total_block',99 );
|
180 |
+
//$this->loader->add_action( 'get_footer', $plugin_public, 'insert_page_visit_counter_total_block',99 );
|
181 |
|
182 |
if (in_array( 'woocommerce/woocommerce.php',apply_filters('active_plugins',get_option('active_plugins')))) {
|
183 |
$this->loader->add_filter( 'woocommerce_paypal_args', $plugin_public, 'paypal_bn_code_filter',99,1 );
|
page_visit_counter.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Plugin URI: http://www.multidots.com/
|
8 |
* Description: Plugin for show visited page
|
9 |
* Author: Multidots
|
10 |
-
* Version: 2.0.
|
11 |
* Author URI: http://www.multidots.com/
|
12 |
*/
|
13 |
// If this file is called directly, abort.
|
7 |
* Plugin URI: http://www.multidots.com/
|
8 |
* Description: Plugin for show visited page
|
9 |
* Author: Multidots
|
10 |
+
* Version: 2.0.3
|
11 |
* Author URI: http://www.multidots.com/
|
12 |
*/
|
13 |
// If this file is called directly, abort.
|
public/class-page-visit-counter-public.php
CHANGED
@@ -393,7 +393,7 @@ class page_visit_counter_Public {
|
|
393 |
|
394 |
}
|
395 |
|
396 |
-
public function insert_page_visit_counter_total_block() {
|
397 |
global $wpdb, $wp, $post;
|
398 |
|
399 |
if (is_ssl()) {
|
@@ -463,11 +463,11 @@ class page_visit_counter_Public {
|
|
463 |
}
|
464 |
}
|
465 |
|
466 |
-
|
467 |
-
echo $html;
|
468 |
} else {
|
469 |
-
|
470 |
-
echo $html;
|
471 |
}
|
472 |
|
473 |
}
|
393 |
|
394 |
}
|
395 |
|
396 |
+
public function insert_page_visit_counter_total_block($content) {
|
397 |
global $wpdb, $wp, $post;
|
398 |
|
399 |
if (is_ssl()) {
|
463 |
}
|
464 |
}
|
465 |
|
466 |
+
return $content.' '.$html;
|
467 |
+
//echo $html;
|
468 |
} else {
|
469 |
+
return $content;
|
470 |
+
//echo $html;
|
471 |
}
|
472 |
|
473 |
}
|