Version Description
- New: Fixed the daily count error that was introduced in 1.9.5; Check out the Changelog for complete details
=
Download this release
Release Info
Developer | Ajay |
Plugin | Top 10 – Popular posts plugin for WordPress |
Version | 1.9.6 |
Comparing to | |
See all releases |
Code changes from version 1.9.5 to 1.9.6
- readme.txt +5 -2
- top-10-addcount.js.php +1 -1
- top-10.php +1 -1
readme.txt
CHANGED
@@ -45,13 +45,16 @@ Includes a sidebar widget to display the popular posts. And, all settings can be
|
|
45 |
|
46 |
== Upgrade Notice ==
|
47 |
|
48 |
-
= 1.9.
|
49 |
-
* New:
|
50 |
Check out the Changelog for complete details
|
51 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
55 |
= 1.9.5 =
|
56 |
* New: CSS class `tptn_title` that can be used to style the title of the posts
|
57 |
* New: Option to disable Daily or Overall counters
|
45 |
|
46 |
== Upgrade Notice ==
|
47 |
|
48 |
+
= 1.9.6 =
|
49 |
+
* New: Fixed the daily count error that was introduced in 1.9.5;
|
50 |
Check out the Changelog for complete details
|
51 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.9.6 =
|
56 |
+
* Fixed: Daily count was not updated
|
57 |
+
|
58 |
= 1.9.5 =
|
59 |
* New: CSS class `tptn_title` that can be used to style the title of the posts
|
60 |
* New: Option to disable Daily or Overall counters
|
top-10-addcount.js.php
CHANGED
@@ -23,7 +23,7 @@ function tptn_inc_count() {
|
|
23 |
if($id > 0) {
|
24 |
if ( ($activate_counter == 1) || ($activate_counter == 11) ) $wpdb->query("INSERT INTO $table_name (postnumber, cntaccess) VALUES('$id', '1') ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");
|
25 |
$current_date = gmdate( 'Y-m-d', ( time() + ( get_option( 'gmt_offset' ) * 3600 ) ) );
|
26 |
-
if ( $activate_counter ==
|
27 |
}
|
28 |
}
|
29 |
|
23 |
if($id > 0) {
|
24 |
if ( ($activate_counter == 1) || ($activate_counter == 11) ) $wpdb->query("INSERT INTO $table_name (postnumber, cntaccess) VALUES('$id', '1') ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");
|
25 |
$current_date = gmdate( 'Y-m-d', ( time() + ( get_option( 'gmt_offset' ) * 3600 ) ) );
|
26 |
+
if ( ($activate_counter == 1) || ($activate_counter == 11) ) $wpdb->query("INSERT INTO $top_ten_daily (postnumber, cntaccess, dp_date) VALUES('$id', '1', '$current_date' ) ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");
|
27 |
}
|
28 |
}
|
29 |
|
top-10.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Top 10
|
4 |
-
Version: 1.9.
|
5 |
Plugin URI: http://ajaydsouza.com/wordpress/plugins/top-10/
|
6 |
Description: Count daily and total visits per post and display the most popular posts based on the number of views. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>
|
7 |
Author: Ajay D'Souza
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Top 10
|
4 |
+
Version: 1.9.6
|
5 |
Plugin URI: http://ajaydsouza.com/wordpress/plugins/top-10/
|
6 |
Description: Count daily and total visits per post and display the most popular posts based on the number of views. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>
|
7 |
Author: Ajay D'Souza
|