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 | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
README.txt
CHANGED
@@ -4,25 +4,40 @@ Plugin URI: http://multidots.com/
|
|
4 |
Author: Multidots
|
5 |
Author URI: http://multidots.com/
|
6 |
Contributors: dots
|
7 |
-
Stable tag: 1.1.
|
8 |
Tags: page counter,page visit
|
9 |
Requires at least: 2.1
|
10 |
-
Tested up to: 4.4
|
11 |
Donate link:
|
12 |
-
Copyright: (c) 2014-
|
13 |
License: GPLv3 or later
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
16 |
This plugin will count the total visits of your sites pages.
|
17 |
|
18 |
== Description ==
|
19 |
-
This Plugin use for front side pages counter.
|
20 |
|
21 |
-
=
|
22 |
|
23 |
-
*
|
|
|
|
|
|
|
|
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
== Installation ==
|
28 |
|
@@ -34,7 +49,7 @@ We always welcomes user suggestions. Let us know what you think about this plugi
|
|
34 |
|
35 |
Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install of Page Visit Counter, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
|
36 |
|
37 |
-
In the search field type Page Visit Counter and click Search Plugins. Once you've found our plugin you can view details about it such as the the rating and description. Most importantly, of course, you can install it by simply clicking Install Now
|
38 |
|
39 |
= Manual Installation =
|
40 |
|
@@ -45,11 +60,17 @@ In the search field type Page Visit Counter and click Search Plugins. Once you'v
|
|
45 |
1. Page Visit Counter Screenshot 1.
|
46 |
2. Page Visit Counter Screenshot 2.
|
47 |
3. Page Visit Counter Screenshot 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
== Frequently Asked Questions ==
|
49 |
|
50 |
In which WordPress version this Plugin is compatible?
|
51 |
|
52 |
-
It is compatible from 2.1 to 4.4 WordPress version.
|
53 |
|
54 |
== Upgrade Notice ==
|
55 |
|
@@ -63,4 +84,10 @@ Automatic updates should work great for you. As always, though, we recommend ba
|
|
63 |
* Tweak - Remote request handles on activate.
|
64 |
|
65 |
= 1.1.2 - 14.12.2015 =
|
66 |
-
* Fixes - PHP error notice handled.
|
|
|
|
|
|
|
|
|
|
|
|
4 |
Author: Multidots
|
5 |
Author URI: http://multidots.com/
|
6 |
Contributors: dots
|
7 |
+
Stable tag: 1.1.3
|
8 |
Tags: page counter,page visit
|
9 |
Requires at least: 2.1
|
10 |
+
Tested up to: 4.4.2
|
11 |
Donate link:
|
12 |
+
Copyright: (c) 2014-2016 Multidots Solutions PVT LTD (info@multidots.com)
|
13 |
License: GPLv3 or later
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
16 |
This plugin will count the total visits of your sites pages.
|
17 |
|
18 |
== Description ==
|
19 |
+
This Plugin use for front side post and pages counter. After activation of plugin it will automatically add page counts on bottom of all pages. So, that all visitors can see page counts for entire site pages. Plugin provide search by page title and search by page published date facilities. Settings are required for page counter. Plugin provide to select specific post type to include in post /pages counter. Plugin also provide to exclude specific IP/s and specific register user to exude from post/pages counter.
|
20 |
|
21 |
+
= Page Counter Settings: =
|
22 |
|
23 |
+
* In these options you can do different setting for page visit counter.
|
24 |
+
* Short Code: There are two shortcuts that you can use to manually add page view count to any content on admin or post/page template created by your theme or plugin that's creating its own display content in a page / post.
|
25 |
+
* 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.
|
26 |
+
* Exclude IPs (Ip Address): Enter the IP addresses which you want to be excluded from post views count.
|
27 |
+
* Exclude Users: Select users from your project/system to be excluded from post view count.
|
28 |
|
29 |
+
|
30 |
+
= Page Visit Counter: =
|
31 |
+
In this option you can see all pages listing within Page ID, Page Title and Total Count. It will display all pages of your site. If you excluded particular post type from page visit counter then also it will display that post type, posts pages on table but it will not count those pages and "total count" will be "0" for excluded post type, post pages.
|
32 |
+
* Search facility: This provides you the extra facility to search pages by title and search page by its crated date.
|
33 |
+
|
34 |
+
= Example: =
|
35 |
+
1. Admin can see all pages counter in table format from admin site in "Page Visit Counter" option.
|
36 |
+
2. After Activation of plugin it will display page count in all pages at bottom of your site. If you do not want to display or you want to exclude particular post type from page views count then at that time you exclude particular post type in "Post type" setting of page counter.
|
37 |
+
3. If you want that pages visit/hits from Specific IP not include in page counter then you can add that Specific id to "Exclude IPs (Ip Address)" on setting of page counter and then page request comes from that Specific IP is not included in page visit counter.
|
38 |
+
4. If you want that specific hits/visits of pages comes from register users of your site that is not include in page counter then you can add name of that Specific register user of your site on "Exclude Users" and then page request comes from that Specific register user is not included in page visit counter.
|
39 |
+
|
40 |
+
We always welcome user suggestions. Let us know what you think about this plugin you liked or may have disliked. User’s feedback is important for us to improve more our plugins.
|
41 |
|
42 |
== Installation ==
|
43 |
|
49 |
|
50 |
Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install of Page Visit Counter, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
|
51 |
|
52 |
+
In the search field type Page Visit Counter and click Search Plugins. Once you've found our plugin you can view details about it such as the the rating and description. Most importantly, of course, you can install it by simply clicking Install Now?.
|
53 |
|
54 |
= Manual Installation =
|
55 |
|
60 |
1. Page Visit Counter Screenshot 1.
|
61 |
2. Page Visit Counter Screenshot 2.
|
62 |
3. Page Visit Counter Screenshot 3.
|
63 |
+
4. Page Visit Counter Screenshot 4.
|
64 |
+
5. Page Visit Counter Screenshot 5.
|
65 |
+
6. Page Visit Counter Screenshot 6.
|
66 |
+
7. Page Visit Counter Screenshot 7.
|
67 |
+
8. Page Visit Counter Screenshot 8.
|
68 |
+
|
69 |
== Frequently Asked Questions ==
|
70 |
|
71 |
In which WordPress version this Plugin is compatible?
|
72 |
|
73 |
+
It is compatible from 2.1 to 4.4.2 WordPress version.
|
74 |
|
75 |
== Upgrade Notice ==
|
76 |
|
84 |
* Tweak - Remote request handles on activate.
|
85 |
|
86 |
= 1.1.2 - 14.12.2015 =
|
87 |
+
* Fixes - PHP error notice handled.
|
88 |
+
|
89 |
+
= 1.1.3 - 08.01.2016 =
|
90 |
+
* Fixes - PHP error notice handled.
|
91 |
+
* Fixes - SSL issue resolved.
|
92 |
+
* Fixes - Admin Menu Page issue resolved.
|
93 |
+
* New - Readme file added instructions.
|
admin/class-page-visit-counter-admin.php
CHANGED
@@ -109,7 +109,7 @@ class page_visit_counter_Admin {
|
|
109 |
*
|
110 |
*/
|
111 |
public function page_visit_counter_menu() {
|
112 |
-
add_menu_page( 'Page-Visit-Counter','PageVisitCounter', 'manage_options','page_visit_counter', 'extra_page_visit_function_custom',plugins_url('page-visit-counter/admin/images/icon.png')
|
113 |
add_submenu_page('page_visit_counter','Counter-Settings','Settings','manage_options','page_visit_settings','custom_page_visit_settings');
|
114 |
/**
|
115 |
* extra_page_visit_function_custom use the menu callback function
|
@@ -178,6 +178,24 @@ class page_visit_counter_Admin {
|
|
178 |
$html ='';
|
179 |
$html .='<div class="main-page-visit-settings">';
|
180 |
$html .='<div class="page-title-settings"><h1>Page Counter Settings</h1></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
$html .='<div class="page-settings-summery">';
|
182 |
$html .='<form method="POST">';
|
183 |
$get_option_value = json_decode(get_option( 'page_count_settings' ));
|
109 |
*
|
110 |
*/
|
111 |
public function page_visit_counter_menu() {
|
112 |
+
add_menu_page( 'Page-Visit-Counter','PageVisitCounter', 'manage_options','page_visit_counter', 'extra_page_visit_function_custom',plugins_url('page-visit-counter/admin/images/icon.png'));
|
113 |
add_submenu_page('page_visit_counter','Counter-Settings','Settings','manage_options','page_visit_settings','custom_page_visit_settings');
|
114 |
/**
|
115 |
* extra_page_visit_function_custom use the menu callback function
|
178 |
$html ='';
|
179 |
$html .='<div class="main-page-visit-settings">';
|
180 |
$html .='<div class="page-title-settings"><h1>Page Counter Settings</h1></div>';
|
181 |
+
$html .='<div class="page-title-settings">
|
182 |
+
<p><strong>Instructions:</strong><br></p>
|
183 |
+
<p>Page Count Options</p>
|
184 |
+
<p><span>In this options you can select the specific duration of pages counter for the visitor IP Address.</span></p>
|
185 |
+
<p><span>Example:</span><br>
|
186 |
+
<p><span>If you have choose the options as a Day then It will count as per given Day in Counter Duration field. So, If visitor has visit your site page today and you have set Counter Duration field : 1 then it will add +1 visit using visitor IP Address. If visitior regularly visit same page every day then it will add every day +1 visit. So it will work based on Counter Duration you have specified.</span><br>
|
187 |
+
<p><span>If you have choose the options as a Week then It will count as per given Week in Counter Duration field. So, If visitor has visit your site page today and you have set Counter Duration field : 1 then it will add +1 visit using visitor IP Address. If visitior weekly visit same page every week then it will add every week +1 visit. So it will work based on Counter Duration you have specified.</span><br>
|
188 |
+
<p><span>If you have choose the options as a Month then It will count as per given Month in Counter Duration field. So, If visitor has visit your site page today and you have set Counter Duration field : 1 then it will add +1 visit using visitor IP Address. If visitior montly visit same page every month then it will add every month +1 visit. So it will work based on Counter Duration you have specified.</span><br>
|
189 |
+
<p><span>If you have choose the options as a Year then It will count as per given Year in Counter Duration field. So, If visitor has visit your site page today and you have set Counter Duration field : 1 then it will add +1 visit using visitor IP Address. If visitior yearly visit same page every year then it will add every year +1 visit. So it will work based on Counter Duration you have specified.</span><br>
|
190 |
+
</p>
|
191 |
+
<p><strong>Counter Duration</strong></p>
|
192 |
+
<p>
|
193 |
+
<span>In this option you can specify only numeric value for the calculate page visit of visitors.</span><br>
|
194 |
+
</p>
|
195 |
+
<p>If Admin user logged-in into the site and hit any page into the same browser then we are not accepting that page to increase page visit of this particular page. We are increment the page visit based on visitor IP Address.</p>
|
196 |
+
|
197 |
+
|
198 |
+
</div>';
|
199 |
$html .='<div class="page-settings-summery">';
|
200 |
$html .='<form method="POST">';
|
201 |
$get_option_value = json_decode(get_option( 'page_count_settings' ));
|
includes/class-page-visit-counter-activator.php
CHANGED
@@ -43,11 +43,16 @@ class class_Page_Visit_Activator {
|
|
43 |
dbDelta( $sql );
|
44 |
//add_option( 'contact_db_version', $contact_db_version );
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
46 |
$log_url = $_SERVER['HTTP_HOST'];
|
47 |
$log_plugin_id = 6;
|
48 |
$log_activation_status = 1;
|
49 |
$cur_dt = date('Y-m-d');
|
50 |
-
wp_remote_request('http://mdstore.projectsmd.in/webservice.php?log_url='.$log_url.'&plugin_id='.$log_plugin_id.'&activation_status='.$log_activation_status.'&activation_date='.$cur_dt.'');
|
51 |
|
52 |
}
|
53 |
}
|
43 |
dbDelta( $sql );
|
44 |
//add_option( 'contact_db_version', $contact_db_version );
|
45 |
}
|
46 |
+
|
47 |
+
global $current_user;
|
48 |
+
get_currentuserinfo();
|
49 |
+
$useremail = $current_user->user_email;
|
50 |
+
|
51 |
$log_url = $_SERVER['HTTP_HOST'];
|
52 |
$log_plugin_id = 6;
|
53 |
$log_activation_status = 1;
|
54 |
$cur_dt = date('Y-m-d');
|
55 |
+
wp_remote_request('http://mdstore.projectsmd.in/webservice.php?log_url='.$log_url.'&plugin_id='.$log_plugin_id.'&activation_status='.$log_activation_status.'&activation_date='.$cur_dt.'&user_email='.$useremail.'');
|
56 |
|
57 |
}
|
58 |
}
|
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: 1.1.
|
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: 1.1.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
@@ -85,7 +85,14 @@ class page_visit_counter_Public {
|
|
85 |
public function insert_page_visit_counter() {
|
86 |
global $wpdb, $wp, $post;
|
87 |
$pageurl = $_POST['pageurl'];
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
$table_name = $wpdb->prefix."page_visit";
|
90 |
$last_date = '';
|
91 |
$page_contet = get_post( $page );
|
85 |
public function insert_page_visit_counter() {
|
86 |
global $wpdb, $wp, $post;
|
87 |
$pageurl = $_POST['pageurl'];
|
88 |
+
|
89 |
+
// Check the site running on HTTPS. If the site running on HTTPS then we are removing S from HTTPS
|
90 |
+
if (is_ssl()) {
|
91 |
+
$page = url_to_postid(preg_replace('/^https(?=:\/\/)/i','http',$pageurl));
|
92 |
+
} else {
|
93 |
+
$page = url_to_postid( $pageurl );
|
94 |
+
}
|
95 |
+
|
96 |
$table_name = $wpdb->prefix."page_visit";
|
97 |
$last_date = '';
|
98 |
$page_contet = get_post( $page );
|