Version Description
Download this release
Release Info
Developer | Tom Braider |
Plugin | Count per Day |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- counter.php +28 -7
- locale/de_DE.mo +0 -0
- locale/de_DE.po +46 -42
- readme.txt +7 -2
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.
|
7 |
License: GPL
|
8 |
Author: Tom Braider
|
9 |
Author URI: http://www.tomsdimension.de
|
@@ -17,13 +17,13 @@ define('CPD_C_TABLE', $table_prefix.'cpd_counter');
|
|
17 |
define('CPD_CO_TABLE', $table_prefix.'cpd_counter_useronline');
|
18 |
|
19 |
/**
|
20 |
-
*
|
21 |
*
|
22 |
-
* @param
|
23 |
-
* @param
|
24 |
-
* @param boolean $show "echo" (true, standard)
|
25 |
-
* @param boolean $count
|
26 |
-
*
|
27 |
*/
|
28 |
function cpdShow( $before='', $after=' reads', $show = true, $count = true )
|
29 |
{
|
@@ -383,11 +383,32 @@ function cpd_autocount( )
|
|
383 |
cpdCount();
|
384 |
}
|
385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
// Funktionen adden
|
387 |
add_action('init', 'cpd_init_locale', 98);
|
388 |
add_action('admin_menu', 'cpdMenu');
|
389 |
register_activation_hook(__FILE__,'cpdCreateTables');
|
390 |
|
|
|
|
|
|
|
|
|
391 |
// Stylesheet nur bei Statistik-Seite laden
|
392 |
if ( eregi( "count-per-day", $_REQUEST['page']) )
|
393 |
add_action( 'admin_head', 'cpdAddCSS', 100 );
|
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.4
|
7 |
License: GPL
|
8 |
Author: Tom Braider
|
9 |
Author URI: http://www.tomsdimension.de
|
17 |
define('CPD_CO_TABLE', $table_prefix.'cpd_counter_useronline');
|
18 |
|
19 |
/**
|
20 |
+
* counts and shows visits
|
21 |
*
|
22 |
+
* @param string $before string before the number
|
23 |
+
* @param string $after string after the number
|
24 |
+
* @param boolean $show "echo" (true, standard) or "return"
|
25 |
+
* @param boolean $count count visits (true, standard) or only show vistis
|
26 |
+
* @return string counter string
|
27 |
*/
|
28 |
function cpdShow( $before='', $after=' reads', $show = true, $count = true )
|
29 |
{
|
383 |
cpdCount();
|
384 |
}
|
385 |
|
386 |
+
|
387 |
+
/**
|
388 |
+
* l�scht DB-Eintr�ge ab WP 2.7
|
389 |
+
*/
|
390 |
+
function cpd_uninstall()
|
391 |
+
{
|
392 |
+
global $wpdb;
|
393 |
+
$wpdb->query("DROP TABLE IF EXISTS ".CPD_C_TABLE.";");
|
394 |
+
$wpdb->query("DROP TABLE IF EXISTS ".CPD_CO_TABLE.";");
|
395 |
+
delete_option('cpd_cdb_version');
|
396 |
+
delete_option('cpd_codb_version');
|
397 |
+
delete_option('cpd_onlinetime');
|
398 |
+
delete_option('cpd_user');
|
399 |
+
delete_option('cpd_autocount');
|
400 |
+
delete_option('cpd_bots');
|
401 |
+
}
|
402 |
+
|
403 |
// Funktionen adden
|
404 |
add_action('init', 'cpd_init_locale', 98);
|
405 |
add_action('admin_menu', 'cpdMenu');
|
406 |
register_activation_hook(__FILE__,'cpdCreateTables');
|
407 |
|
408 |
+
// ab Version 2.7
|
409 |
+
if ( function_exists('register_uninstall_hook') )
|
410 |
+
register_uninstall_hook(__FILE__, 'cpd_uninstall');
|
411 |
+
|
412 |
// Stylesheet nur bei Statistik-Seite laden
|
413 |
if ( eregi( "count-per-day", $_REQUEST['page']) )
|
414 |
add_action( 'admin_head', 'cpdAddCSS', 100 );
|
locale/de_DE.mo
CHANGED
Binary file
|
locale/de_DE.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Count per Day\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2008-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Tom Braider <post@tomsdimension.de>\n"
|
8 |
"Language-Team: \n"
|
@@ -15,154 +15,158 @@ msgstr ""
|
|
15 |
"X-Poedit-Basepath: P:\\xampp\\htdocs\\wp\\wp-content\\plugins\\count-per-day\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
-
#:
|
19 |
msgid "Options updated"
|
20 |
msgstr "Einstellungen aktualisiert"
|
21 |
|
22 |
-
#:
|
23 |
#, php-format
|
24 |
msgid "Database cleaned. %s rows deleted."
|
25 |
msgstr "Datenbank aufgeräumt. %s Datensätze gelöscht."
|
26 |
|
27 |
-
#:
|
28 |
-
#:
|
29 |
msgid "UNINSTALL Count per Day"
|
30 |
msgstr "DEINSTALLIERE Count per Day"
|
31 |
|
32 |
-
#:
|
33 |
-
#:
|
34 |
#, php-format
|
35 |
msgid "Table %s deleted"
|
36 |
msgstr "Tabelle %s gelöscht"
|
37 |
|
38 |
-
#:
|
39 |
msgid "Options deleted"
|
40 |
msgstr "Einstellungen gelöscht"
|
41 |
|
42 |
-
#:
|
43 |
-
#:
|
44 |
msgid "Uninstall"
|
45 |
msgstr "Deinstallation"
|
46 |
|
47 |
-
#:
|
48 |
msgid "Click here"
|
49 |
msgstr "Klick hier"
|
50 |
|
51 |
-
#:
|
52 |
msgid "to finish the uninstall and to deactivate \"Count per Day\"."
|
53 |
msgstr "um die Deinstallation zu beenden und \"Count per Day\" zu deaktivieren."
|
54 |
|
55 |
-
#:
|
56 |
msgid "Options"
|
57 |
msgstr "Einstellungen"
|
58 |
|
59 |
-
#:
|
60 |
msgid "Online time"
|
61 |
msgstr "Onlinezeit"
|
62 |
|
63 |
-
#:
|
64 |
msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
|
65 |
msgstr "Sekunden für Onlinecounter. Wird für die Anzeige der \"Besucher momentan online\" im Dashboard verwendet."
|
66 |
|
67 |
-
#:
|
68 |
msgid "Loged on Users"
|
69 |
msgstr "Angemeldete Benutzer"
|
70 |
|
71 |
-
#:
|
72 |
msgid "count too"
|
73 |
msgstr "auch mit zählen"
|
74 |
|
75 |
-
#:
|
76 |
msgid "Auto counter"
|
77 |
msgstr "Auto-Counter"
|
78 |
|
79 |
-
#:
|
80 |
msgid "Counts automatically single-posts and pages, no changes on template needed."
|
81 |
msgstr "Zählt automatisch Besuche auf Single-Posts und Seiten ohne Änderungen am Template."
|
82 |
|
83 |
-
#:
|
84 |
msgid "Bots to ignore"
|
85 |
msgstr "Bots ignorieren"
|
86 |
|
87 |
-
#:
|
88 |
msgid "Update options"
|
89 |
msgstr "Einstellungen aktualisieren"
|
90 |
|
91 |
-
#:
|
92 |
-
#:
|
93 |
msgid "Clean the database"
|
94 |
msgstr "Datenbank aufräumen"
|
95 |
|
96 |
-
#:
|
97 |
msgid "You can clean the counter table by delete the \"spam data\".<br />If you add new bots above the old \"spam data\" keeps in the database.<br />Here you can run the bot filter again and delete the visits of the bots."
|
98 |
msgstr "Du kannst die Counter-Tabelle von \"Spam-Daten\" befreien.<br />Wenn du neue Bots zu der Liste oben hinzufügst bleiben die alten \"Spam-Daten\" erhalten.<br />Hier kannst du den Filter erneut laufen lassen und die Besuche von Bots nachträglich löschen."
|
99 |
|
100 |
-
#:
|
|
|
|
|
|
|
|
|
101 |
msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
|
102 |
msgstr "Wenn \"Count per Day\" nur deaktiviert wird, bleiben die Tabellen in der Datenbank erhalten."
|
103 |
|
104 |
-
#:
|
105 |
msgid "Here you can delete the tables and disable \"Count per Day\"."
|
106 |
msgstr "Hier kannst du \"Count per Day\" deinstallieren und die Tabellen löschen."
|
107 |
|
108 |
-
#:
|
109 |
msgid "WARNING"
|
110 |
msgstr "WARNUNG"
|
111 |
|
112 |
-
#:
|
113 |
msgid "These tables (with ALL counter data) will be deleted."
|
114 |
msgstr "Diese Tabellen werden mit ALLEN Zählerdaten gelöscht."
|
115 |
|
116 |
-
#:
|
117 |
msgid "If \"Count per Day\" re-installed, the counter starts at 0."
|
118 |
msgstr "Wenn \"Count per Day\" erneut installiert wird, beginnt der Zähler bei 0."
|
119 |
|
120 |
-
#:
|
121 |
msgid "Yes"
|
122 |
msgstr "Ja, los!"
|
123 |
|
124 |
-
#:
|
125 |
msgid "You are sure to disable Count per Day and delete all data?"
|
126 |
msgstr "Bist du sicher, dass du Count per Day deaktivieren und alle Daten löschen willst?"
|
127 |
|
128 |
-
#:
|
129 |
msgid "Statistics"
|
130 |
msgstr "Statistiken"
|
131 |
|
132 |
-
#:
|
133 |
-
#:
|
134 |
msgid "Reads at all"
|
135 |
msgstr "Besucher gesamt"
|
136 |
|
137 |
-
#:
|
138 |
msgid "Visitors currently online"
|
139 |
msgstr "Besucher momentan online"
|
140 |
|
141 |
-
#:
|
142 |
msgid "Reads today"
|
143 |
msgstr "Besucher heute"
|
144 |
|
145 |
-
#:
|
146 |
msgid "Reads yesterday"
|
147 |
msgstr "Besucher gestern"
|
148 |
|
149 |
-
#:
|
150 |
msgid "Reads last week"
|
151 |
msgstr "Besucher letzte Woche"
|
152 |
|
153 |
-
#:
|
154 |
msgid "Counter starts at"
|
155 |
msgstr "gezählt ab"
|
156 |
|
157 |
-
#:
|
158 |
msgid "Reads per day"
|
159 |
msgstr "Besucher pro Tag"
|
160 |
|
161 |
-
#:
|
162 |
msgid "Reads per month"
|
163 |
msgstr "Besucher pro Monat"
|
164 |
|
165 |
-
#:
|
166 |
msgid "Reads per post"
|
167 |
msgstr "Besucher pro Artikel"
|
168 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Count per Day\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-11-02 12:13+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Tom Braider <post@tomsdimension.de>\n"
|
8 |
"Language-Team: \n"
|
15 |
"X-Poedit-Basepath: P:\\xampp\\htdocs\\wp\\wp-content\\plugins\\count-per-day\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
+
#: counter-options.php:20
|
19 |
msgid "Options updated"
|
20 |
msgstr "Einstellungen aktualisiert"
|
21 |
|
22 |
+
#: counter-options.php:25
|
23 |
#, php-format
|
24 |
msgid "Database cleaned. %s rows deleted."
|
25 |
msgstr "Datenbank aufgeräumt. %s Datensätze gelöscht."
|
26 |
|
27 |
+
#: counter-options.php:28
|
28 |
+
#: counter-options.php:129
|
29 |
msgid "UNINSTALL Count per Day"
|
30 |
msgstr "DEINSTALLIERE Count per Day"
|
31 |
|
32 |
+
#: counter-options.php:40
|
33 |
+
#: counter-options.php:42
|
34 |
#, php-format
|
35 |
msgid "Table %s deleted"
|
36 |
msgstr "Tabelle %s gelöscht"
|
37 |
|
38 |
+
#: counter-options.php:44
|
39 |
msgid "Options deleted"
|
40 |
msgstr "Einstellungen gelöscht"
|
41 |
|
42 |
+
#: counter-options.php:60
|
43 |
+
#: counter-options.php:114
|
44 |
msgid "Uninstall"
|
45 |
msgstr "Deinstallation"
|
46 |
|
47 |
+
#: counter-options.php:61
|
48 |
msgid "Click here"
|
49 |
msgstr "Klick hier"
|
50 |
|
51 |
+
#: counter-options.php:61
|
52 |
msgid "to finish the uninstall and to deactivate \"Count per Day\"."
|
53 |
msgstr "um die Deinstallation zu beenden und \"Count per Day\" zu deaktivieren."
|
54 |
|
55 |
+
#: counter-options.php:68
|
56 |
msgid "Options"
|
57 |
msgstr "Einstellungen"
|
58 |
|
59 |
+
#: counter-options.php:73
|
60 |
msgid "Online time"
|
61 |
msgstr "Onlinezeit"
|
62 |
|
63 |
+
#: counter-options.php:74
|
64 |
msgid "Seconds for online counter. Used for \"Visitors online\" on dashboard page."
|
65 |
msgstr "Sekunden für Onlinecounter. Wird für die Anzeige der \"Besucher momentan online\" im Dashboard verwendet."
|
66 |
|
67 |
+
#: counter-options.php:76
|
68 |
msgid "Loged on Users"
|
69 |
msgstr "Angemeldete Benutzer"
|
70 |
|
71 |
+
#: counter-options.php:77
|
72 |
msgid "count too"
|
73 |
msgstr "auch mit zählen"
|
74 |
|
75 |
+
#: counter-options.php:79
|
76 |
msgid "Auto counter"
|
77 |
msgstr "Auto-Counter"
|
78 |
|
79 |
+
#: counter-options.php:80
|
80 |
msgid "Counts automatically single-posts and pages, no changes on template needed."
|
81 |
msgstr "Zählt automatisch Besuche auf Single-Posts und Seiten ohne Änderungen am Template."
|
82 |
|
83 |
+
#: counter-options.php:82
|
84 |
msgid "Bots to ignore"
|
85 |
msgstr "Bots ignorieren"
|
86 |
|
87 |
+
#: counter-options.php:88
|
88 |
msgid "Update options"
|
89 |
msgstr "Einstellungen aktualisieren"
|
90 |
|
91 |
+
#: counter-options.php:96
|
92 |
+
#: counter-options.php:105
|
93 |
msgid "Clean the database"
|
94 |
msgstr "Datenbank aufräumen"
|
95 |
|
96 |
+
#: counter-options.php:99
|
97 |
msgid "You can clean the counter table by delete the \"spam data\".<br />If you add new bots above the old \"spam data\" keeps in the database.<br />Here you can run the bot filter again and delete the visits of the bots."
|
98 |
msgstr "Du kannst die Counter-Tabelle von \"Spam-Daten\" befreien.<br />Wenn du neue Bots zu der Liste oben hinzufügst bleiben die alten \"Spam-Daten\" erhalten.<br />Hier kannst du den Filter erneut laufen lassen und die Besuche von Bots nachträglich löschen."
|
99 |
|
100 |
+
#: counter-options.php:116
|
101 |
+
msgid "Since WP 2.7 you can delete the plugin directly after deactivation on the plugins page."
|
102 |
+
msgstr "Ab WP 2.7 kannst du das Plugin direkt nach der Deaktivierung auf der Pluginseite löschen."
|
103 |
+
|
104 |
+
#: counter-options.php:117
|
105 |
msgid "If \"Count per Day\" only disabled the tables in the database will be preserved."
|
106 |
msgstr "Wenn \"Count per Day\" nur deaktiviert wird, bleiben die Tabellen in der Datenbank erhalten."
|
107 |
|
108 |
+
#: counter-options.php:118
|
109 |
msgid "Here you can delete the tables and disable \"Count per Day\"."
|
110 |
msgstr "Hier kannst du \"Count per Day\" deinstallieren und die Tabellen löschen."
|
111 |
|
112 |
+
#: counter-options.php:121
|
113 |
msgid "WARNING"
|
114 |
msgstr "WARNUNG"
|
115 |
|
116 |
+
#: counter-options.php:122
|
117 |
msgid "These tables (with ALL counter data) will be deleted."
|
118 |
msgstr "Diese Tabellen werden mit ALLEN Zählerdaten gelöscht."
|
119 |
|
120 |
+
#: counter-options.php:124
|
121 |
msgid "If \"Count per Day\" re-installed, the counter starts at 0."
|
122 |
msgstr "Wenn \"Count per Day\" erneut installiert wird, beginnt der Zähler bei 0."
|
123 |
|
124 |
+
#: counter-options.php:128
|
125 |
msgid "Yes"
|
126 |
msgstr "Ja, los!"
|
127 |
|
128 |
+
#: counter-options.php:129
|
129 |
msgid "You are sure to disable Count per Day and delete all data?"
|
130 |
msgstr "Bist du sicher, dass du Count per Day deaktivieren und alle Daten löschen willst?"
|
131 |
|
132 |
+
#: counter.php:165
|
133 |
msgid "Statistics"
|
134 |
msgstr "Statistiken"
|
135 |
|
136 |
+
#: counter.php:170
|
137 |
+
#: counter.php:172
|
138 |
msgid "Reads at all"
|
139 |
msgstr "Besucher gesamt"
|
140 |
|
141 |
+
#: counter.php:173
|
142 |
msgid "Visitors currently online"
|
143 |
msgstr "Besucher momentan online"
|
144 |
|
145 |
+
#: counter.php:174
|
146 |
msgid "Reads today"
|
147 |
msgstr "Besucher heute"
|
148 |
|
149 |
+
#: counter.php:175
|
150 |
msgid "Reads yesterday"
|
151 |
msgstr "Besucher gestern"
|
152 |
|
153 |
+
#: counter.php:176
|
154 |
msgid "Reads last week"
|
155 |
msgstr "Besucher letzte Woche"
|
156 |
|
157 |
+
#: counter.php:177
|
158 |
msgid "Counter starts at"
|
159 |
msgstr "gezählt ab"
|
160 |
|
161 |
+
#: counter.php:178
|
162 |
msgid "Reads per day"
|
163 |
msgstr "Besucher pro Tag"
|
164 |
|
165 |
+
#: counter.php:183
|
166 |
msgid "Reads per month"
|
167 |
msgstr "Besucher pro Monat"
|
168 |
|
169 |
+
#: counter.php:186
|
170 |
msgid "Reads per post"
|
171 |
msgstr "Besucher pro Artikel"
|
172 |
|
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.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
|
10 |
|
@@ -115,6 +115,11 @@ _cpdGetUserPerPost( $limit = 0 )_
|
|
115 |
|
116 |
**Changelog**
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
_Version 1.3_
|
119 |
|
120 |
+ New: you can delete old data if you add a new bot string
|
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.7b1
|
7 |
+
Stable tag: 1.4
|
8 |
|
9 |
Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
|
10 |
|
115 |
|
116 |
**Changelog**
|
117 |
|
118 |
+
_Version 1.4_
|
119 |
+
|
120 |
+
+ NEW: uninstall function of WP 2.7 implemented
|
121 |
+
+ litle changes on layout to be suitable for WP 2.7
|
122 |
+
|
123 |
_Version 1.3_
|
124 |
|
125 |
+ New: you can delete old data if you add a new bot string
|