Count per Day - Version 1.2.2

Version Description

Download this release

Release Info

Developer Tom Braider
Plugin Icon 128x128 Count per Day
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (4) hide show
  1. counter.php +13 -7
  2. locale/it_IT.mo +0 -0
  3. locale/it_IT.po +158 -0
  4. readme.txt +10 -4
counter.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Count Per Day
4
  Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
5
  Description: Counter, shows reads per page; today, yesterday, last week, last months ... on dashboard.
6
- Version: 1.2.1
7
  License: GPL
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
@@ -48,15 +48,21 @@ function cpdCount()
48
  global $wpdb;
49
  cpdCreateTables(); // DB-Tabellen erstellen, falls sie noch nicht existieren
50
 
51
- $page = 0;
52
  // Post-ID finden
53
- if (have_posts()) : while ( have_posts() && $page == 0 ) : the_post();
 
 
 
 
 
 
 
54
  $page = get_the_ID();
55
- endwhile; endif;
56
- rewind_posts();
57
-
58
  $countUser = ( get_option('cpd_user') == 0 && is_user_logged_in() == true ) ? 0 : 1;
59
-
60
  // nur z�hlen wenn: kein Bot, PostID vorhanden, Anmeldung passt
61
  if ( cpdIsBot() == false && !empty($page) && $countUser == 1 )
62
  {
3
  Plugin Name: Count Per Day
4
  Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
5
  Description: Counter, shows reads per page; today, yesterday, last week, last months ... on dashboard.
6
+ Version: 1.2.2
7
  License: GPL
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
48
  global $wpdb;
49
  cpdCreateTables(); // DB-Tabellen erstellen, falls sie noch nicht existieren
50
 
 
51
  // Post-ID finden
52
+ if ( get_option('cpd_autocount') == 1 )
53
+ {
54
+ if (have_posts()) : while ( have_posts() && $page == 0 ) : the_post();
55
+ $page = get_the_ID();
56
+ endwhile; endif;
57
+ rewind_posts();
58
+ }
59
+ else if ( is_single() || is_page() )
60
  $page = get_the_ID();
61
+ else
62
+ $page = 0;
63
+
64
  $countUser = ( get_option('cpd_user') == 0 && is_user_logged_in() == true ) ? 0 : 1;
65
+
66
  // nur z�hlen wenn: kein Bot, PostID vorhanden, Anmeldung passt
67
  if ( cpdIsBot() == false && !empty($page) && $countUser == 1 )
68
  {
locale/it_IT.mo ADDED
Binary file
locale/it_IT.po ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Count per Day in italiano\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-05-29 20:03+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
8
+ "Language-Team: Gianni Diurno | http://gidibao.net <gidibao@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Italian\n"
13
+ "X-Poedit-Country: ITALY\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: P:\\xampp\\htdocs\\td\\wp\\wp-content\\plugins\\\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: count-per-day\n"
18
+
19
+ #: count-per-day/counter-options.php:19
20
+ msgid "Options updated"
21
+ msgstr "Le opzioni sono state aggiornate"
22
+
23
+ #: count-per-day/counter-options.php:22
24
+ #: count-per-day/counter-options.php:105
25
+ msgid "UNINSTALL Count per Day"
26
+ msgstr "DISINSTALLA Count per Day"
27
+
28
+ #: count-per-day/counter-options.php:34
29
+ #: count-per-day/counter-options.php:36
30
+ #, php-format
31
+ msgid "Table %s deleted"
32
+ msgstr "La tabella %s é stata cancellata"
33
+
34
+ #: count-per-day/counter-options.php:38
35
+ msgid "Options deleted"
36
+ msgstr "Le opzioni sono state cancellate"
37
+
38
+ #: count-per-day/counter-options.php:54
39
+ #: count-per-day/counter-options.php:91
40
+ msgid "Uninstall"
41
+ msgstr "Disinstalla"
42
+
43
+ #: count-per-day/counter-options.php:55
44
+ msgid "Click here"
45
+ msgstr "Clicca qui"
46
+
47
+ #: count-per-day/counter-options.php:55
48
+ msgid "to finish the uninstall and to deactivate \"Count per Day\"."
49
+ msgstr "per completare la disinstallazione e disattivare \"Count per Day\"."
50
+
51
+ #: count-per-day/counter-options.php:62
52
+ msgid "Options"
53
+ msgstr "Opzioni"
54
+
55
+ #: count-per-day/counter-options.php:67
56
+ msgid "Online time"
57
+ msgstr "Durata del collegamento"
58
+
59
+ #: count-per-day/counter-options.php:68
60
+ msgid "Seconds for online counter"
61
+ msgstr "Il numero dei secondi per il contatore in linea"
62
+
63
+ #: count-per-day/counter-options.php:70
64
+ msgid "Loged on Users"
65
+ msgstr "Utenti accreditati"
66
+
67
+ #: count-per-day/counter-options.php:71
68
+ msgid "count too"
69
+ msgstr "conteggia anche loro"
70
+
71
+ #: count-per-day/counter-options.php:73
72
+ msgid "Auto counter"
73
+ msgstr "Contatore-automatico"
74
+
75
+ #: count-per-day/counter-options.php:74
76
+ msgid "Counts automatically single-posts and pages, no changes on template needed."
77
+ msgstr "Conta in automatico i singoli articoli e le pagine. Non é necessaria alcuna modifica del template."
78
+
79
+ #: count-per-day/counter-options.php:76
80
+ msgid "Bots to ignore"
81
+ msgstr "Bots da ignorare"
82
+
83
+ #: count-per-day/counter-options.php:82
84
+ msgid "Update options"
85
+ msgstr "Aggiorna le opzioni"
86
+
87
+ #: count-per-day/counter-options.php:93
88
+ msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
89
+ msgstr "La disattivazione in sè di \"Count per Day\" non cancellerà le tabelle del database."
90
+
91
+ #: count-per-day/counter-options.php:94
92
+ msgid "Here you can delete the tables and disable \"Count per Day\"."
93
+ msgstr "Qui potrai cancellare le tabelle e disattivare \"Count per Day\"."
94
+
95
+ #: count-per-day/counter-options.php:97
96
+ msgid "WARNING"
97
+ msgstr "ATTENZIONE"
98
+
99
+ #: count-per-day/counter-options.php:98
100
+ msgid "These tables (with ALL counter data) will be deleted."
101
+ msgstr "Queste tabelle (compresi TUTTI i dati) saranno cancellate."
102
+
103
+ #: count-per-day/counter-options.php:100
104
+ msgid "If \"Count per Day\" re-installed, the counter starts at 0."
105
+ msgstr "Qualora desiderassi re-installare \"Count per Day\", ricordati che il contatore ripartirà da 0."
106
+
107
+ #: count-per-day/counter-options.php:104
108
+ msgid "Yes"
109
+ msgstr "Sì"
110
+
111
+ #: count-per-day/counter-options.php:105
112
+ msgid "You are sure to disable Count per Day and delete all data?"
113
+ msgstr "Sei certo di volere disattivare Count per Day e cancellare tutti i dati?"
114
+
115
+ #: count-per-day/counter.php:137
116
+ msgid "Statistics"
117
+ msgstr "Satistiche"
118
+
119
+ #: count-per-day/counter.php:142
120
+ #: count-per-day/counter.php:144
121
+ msgid "Reads at all"
122
+ msgstr "generali"
123
+
124
+ #: count-per-day/counter.php:145
125
+ msgid "Reads currently online"
126
+ msgstr "Utenti attualmente in linea"
127
+
128
+ #: count-per-day/counter.php:146
129
+ msgid "Reads today"
130
+ msgstr "Oggi"
131
+
132
+ #: count-per-day/counter.php:147
133
+ msgid "Reads yesterday"
134
+ msgstr "Ieri"
135
+
136
+ #: count-per-day/counter.php:148
137
+ msgid "Reads last week"
138
+ msgstr "La scorsa settimana"
139
+
140
+ #: count-per-day/counter.php:149
141
+ msgid "Counter starts at"
142
+ msgstr "Il contatore parte dal"
143
+
144
+ #: count-per-day/counter.php:150
145
+ msgid "Reads per day"
146
+ msgstr "per giorno"
147
+
148
+ #: count-per-day/counter.php:155
149
+ msgid "Reads per month"
150
+ msgstr "per mese"
151
+
152
+ #: count-per-day/counter.php:158
153
+ msgid "Reads per post"
154
+ msgstr "per articolo"
155
+
156
+ #~ msgid "Table"
157
+ #~ msgstr "Tabelle"
158
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Tom Braider
3
  Donate link: http://www.unicef.org
4
  Tags: counter, count, posts, visits, reads
5
  Requires at least: 2.0
6
- Tested up to: 2.5.1
7
- Stable tag: 1.2.1
8
 
9
  Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
10
 
@@ -17,7 +17,7 @@ Visit Counter, shows reads per page, visitors today, yesterday, last week, last
17
 
18
  It counts 1 visit per IP per day. So any reload of the page don't increment the counter.
19
 
20
- Languages: english, german
21
 
22
  == Installation ==
23
 
@@ -44,7 +44,7 @@ no answers
44
 
45
  == Screenshots ==
46
 
47
- 1. Statistics on Count-per-Day-Dashboard (german)
48
  2. Options (german)
49
 
50
  == Arbitrary section ==
@@ -108,9 +108,15 @@ _cpdGetUserPerPost( $limit = 0 )_
108
  * counter.css
109
  * locale/de_DE.mo
110
  * locale/de_DE.po
 
 
111
 
112
  **Changelog**
113
 
 
 
 
 
114
  _Version 1.2.1_
115
 
116
  + Bugfix: Error 404 "Page not found" with "auto count"
3
  Donate link: http://www.unicef.org
4
  Tags: counter, count, posts, visits, reads
5
  Requires at least: 2.0
6
+ Tested up to: 2.6
7
+ Stable tag: 1.2.2
8
 
9
  Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
10
 
17
 
18
  It counts 1 visit per IP per day. So any reload of the page don't increment the counter.
19
 
20
+ Languages: english, german, italian
21
 
22
  == Installation ==
23
 
44
 
45
  == Screenshots ==
46
 
47
+ 1. Statistics on Count-per-Day Dashboard (german)
48
  2. Options (german)
49
 
50
  == Arbitrary section ==
108
  * counter.css
109
  * locale/de_DE.mo
110
  * locale/de_DE.po
111
+ * locale/it_IT.mo
112
+ * locale/it_IT.po
113
 
114
  **Changelog**
115
 
116
+ _Version 1.2.2_
117
+
118
+ + New language: Italian, thanks to Gianni Diurno http://gidibao.net/index.php/portfolio/
119
+
120
  _Version 1.2.1_
121
 
122
  + Bugfix: Error 404 "Page not found" with "auto count"