WP-UserOnline - Version 2.73

Version Description

  • fixed "0 users" problem
  • fixed "%MOSTONLINE_DATE% problem
Download this release

Release Info

Developer scribu
Plugin Icon WP-UserOnline
Version 2.73
Comparing to
See all releases

Code changes from version 2.72 to 2.73

admin.php CHANGED
@@ -26,14 +26,15 @@ class UserOnline_Admin_Integration extends scbAdminPage {
26
  $total_users, 'wp-useronline'
27
  );
28
 
29
- echo '<p>';
30
- printf($str, add_query_arg('page', $this->args['page_slug'], admin_url('index.php')), number_format_i18n($total_users));
31
-
32
- echo '<br />';
33
- users_browsing_site();
34
- echo '.<br />';
35
- echo UserOnline_Template::format_most_users();
36
- echo '</p>'."\n";
 
37
  }
38
 
39
  function page_content() {
26
  $total_users, 'wp-useronline'
27
  );
28
 
29
+ $out = sprintf($str, add_query_arg('page', $this->args['page_slug'], admin_url('index.php')), number_format_i18n($total_users));
30
+ $out .= '<br>';
31
+
32
+ if ( $tmp = get_users_browsing_site() )
33
+ $out .= $tmp . '<br>';
34
+
35
+ $out .= UserOnline_Template::format_most_users();
36
+
37
+ echo html('p', $out);
38
  }
39
 
40
  function page_content() {
lang/wp-useronline-ar.mo ADDED
Binary file
lang/wp-useronline-ar.po ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP-UserOnline 2.73\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-05-08 15:28+0200\n"
6
+ "PO-Revision-Date: 2010-07-22 12:24+0200\n"
7
+ "Last-Translator: scribu <scribu@gmail.com>\n"
8
+ "Language-Team: anas ismail <anas1982@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-Country: PALESTINIAN TERRITORY, OCCUPIED\n"
13
+ "X-Poedit-KeywordsList: __;_e;_c;_n:1,2;__ngettext_noop:1,2\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-Language: Arabic\n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: admin.php:9
20
+ msgid "Users Online Now"
21
+ msgstr "المتواجدين الان"
22
+
23
+ #: admin.php:10
24
+ #: wp-stats.php:14
25
+ #: wp-stats.php:31
26
+ msgid "WP-UserOnline"
27
+ msgstr "WP-UserOnline"
28
+
29
+ #: admin.php:24
30
+ #, php-format
31
+ msgid "There is <strong><a href='%s'>%s user</a></strong> online now."
32
+ msgid_plural "There are a total of <strong><a href='%s'>%s users</a></strong> online now."
33
+ msgstr[0] "يوجد الان ما مجموعه <strong><a href=\"%s\">%s زائر</a></strong> يتصفح الموقع."
34
+ msgstr[1] "يوجد الان <strong><a href=\"%s\">%s زائر</a></strong> يتصفح الموقع."
35
+
36
+ #: admin.php:51
37
+ msgid "UserOnline Options"
38
+ msgstr "UserOnline Options"
39
+
40
+ #: admin.php:52
41
+ #: widget.php:6
42
+ #: widget.php:49
43
+ msgid "UserOnline"
44
+ msgstr "UserOnline"
45
+
46
+ #: admin.php:109
47
+ msgid "Time Out"
48
+ msgstr "انتهت المهلة"
49
+
50
+ #: admin.php:112
51
+ msgid "How long until it will remove the user from the database (In seconds)."
52
+ msgstr "كم من الوقت تحتاج لازالة الزوار من قاعدة البيانات ( بالثواني)"
53
+
54
+ #: admin.php:117
55
+ msgid "UserOnline URL"
56
+ msgstr "رابط المتواجدين الان"
57
+
58
+ #: admin.php:120
59
+ msgid "URL To UserOnline Page<br />Example: http://www.yoursite.com/useronline/<br />Example: http://www.yoursite.com/?page_id=2"
60
+ msgstr "رابط صفحة المتواجدين الان( اتركه فارغا في حال لم ترغب بعرض رابط)<br />مثال: http://www.yoursite.com/blogs/useronline/<br /> مثال : http://www.yoursite.com/blogs/?page_id=2"
61
+
62
+ #: admin.php:124
63
+ msgid "User Names"
64
+ msgstr "اسماء الزوار"
65
+
66
+ #: admin.php:127
67
+ msgid "Link user names to their author page"
68
+ msgstr "اربط اسم المستخدم بصفحته الشخصية"
69
+
70
+ #: admin.php:144
71
+ msgid "Useronline Templates"
72
+ msgstr "قوالب المتواجدين الان"
73
+
74
+ #: admin.php:156
75
+ msgid "User(s) Browsing Site:"
76
+ msgstr "زائر يتصفح الموقع :"
77
+
78
+ #: admin.php:157
79
+ msgid "User(s) Browsing Page:"
80
+ msgstr "زائر يتصفح هه الصفحة :"
81
+
82
+ #: admin.php:170
83
+ #: scb/AdminPage.php:180
84
+ #: scb/AdminPage.php:191
85
+ msgid "Save Changes"
86
+ msgstr "احفظ التغييرات"
87
+
88
+ #: admin.php:180
89
+ msgid "Naming Conventions:"
90
+ msgstr "المصطلحات والتسميات :"
91
+
92
+ #: admin.php:181
93
+ #: admin.php:221
94
+ #: admin.php:243
95
+ msgid "Allowed Variables:"
96
+ msgstr "المتغيرات المسموحة :"
97
+
98
+ #: admin.php:183
99
+ msgid "Restore Defaults"
100
+ msgstr "استعد القوالب للافتراضيات"
101
+
102
+ #: admin.php:189
103
+ msgid "Singular Form"
104
+ msgstr "بصيغة المفرد"
105
+
106
+ #: admin.php:190
107
+ msgid "Plural Form"
108
+ msgstr "بصيغة الجمع"
109
+
110
+ #: admin.php:220
111
+ msgid "User(s) Online:"
112
+ msgstr "المتواجدون الان"
113
+
114
+ #: admin.php:226
115
+ #: admin.php:251
116
+ msgid "Restore Default Template"
117
+ msgstr "استعد القوالب الافتراضية"
118
+
119
+ #: admin.php:257
120
+ msgid "Member Names Separator"
121
+ msgstr "فواصل اسماء الاعضاء"
122
+
123
+ #: admin.php:258
124
+ msgid "Guests Separator"
125
+ msgstr "فواصل الضيف"
126
+
127
+ #: admin.php:259
128
+ msgid "Bots Separator"
129
+ msgstr "فاصل العنكب"
130
+
131
+ #: template-tags.php:79
132
+ #, php-format
133
+ msgid "There is <strong>%s</strong> online now: <strong>%s</strong>, <strong>%s</strong> and <strong>%s</strong>."
134
+ msgid_plural "There are a total of <strong>%s</strong> online now: <strong>%s</strong>, <strong>%s</strong> and <strong>%s</strong>."
135
+ msgstr[0] "يوجد <strong>%s</strong> يتصفح الموقع الان: <strong>%s</strong>, <strong>%s</strong> و <strong>%s</strong>."
136
+ msgstr[1] "يوجد <strong>%s</strong> يتصفح الموقع الان : <strong>%s</strong>, <strong>%s</strong> و <strong>%s</strong>."
137
+
138
+ #: template-tags.php:181
139
+ msgid "No one is online now."
140
+ msgstr "لا يوجد متواجدين الان"
141
+
142
+ #: template-tags.php:183
143
+ msgid "on"
144
+ msgstr "على"
145
+
146
+ #: template-tags.php:184
147
+ msgid "url"
148
+ msgstr "العنوان"
149
+
150
+ #: template-tags.php:185
151
+ msgid "referral"
152
+ msgstr "المحيل"
153
+
154
+ #: template-tags.php:196
155
+ msgid "Online Now"
156
+ msgstr "متواجد الان"
157
+
158
+ #: template-tags.php:227
159
+ #, php-format
160
+ msgid "%s @ %s"
161
+ msgstr "%s @ %s"
162
+
163
+ #: template-tags.php:247
164
+ #, php-format
165
+ msgid "Most users ever online were <strong>%s</strong>, on <strong>%s</strong>"
166
+ msgstr "اكبر تواجد للزوار في وقت واحد كان <strong>%s</strong>, في <strong>%s</strong>"
167
+
168
+ #: widget.php:5
169
+ msgid "WP-UserOnline users online statistics"
170
+ msgstr "WP-UserOnline احصائيات الحالة"
171
+
172
+ #: widget.php:56
173
+ msgid "Title:"
174
+ msgstr "العنوان"
175
+
176
+ #: widget.php:59
177
+ msgid "Statistics Type:"
178
+ msgstr "نوع الاحصائيات"
179
+
180
+ #: widget.php:61
181
+ msgid "Users Online Count"
182
+ msgstr "عدد المتواجدين الان"
183
+
184
+ #: widget.php:62
185
+ msgid "Users Browsing Current Page"
186
+ msgstr "زائر يتصفح هذه الصفحة"
187
+
188
+ #: widget.php:63
189
+ msgid "Users Browsing Site"
190
+ msgstr "زائر يتصفح الموقع"
191
+
192
+ #: widget.php:65
193
+ msgid "Users Online Count & Users Browsing Current Page"
194
+ msgstr "عدد المتواجدين الان & عدد المتصفحين لهذه الصفحة"
195
+
196
+ #: widget.php:66
197
+ msgid "Users Online Count & Users Browsing Site"
198
+ msgstr "عدد المتواجدين الان & عدد المتصفحين للموقع"
199
+
200
+ #: wp-stats.php:24
201
+ #, php-format
202
+ msgid "<strong>%s</strong> user online now."
203
+ msgid_plural "<strong>%s</strong> users online now."
204
+ msgstr[0] "<strong>%s</strong> زائر يتواجد الأن."
205
+ msgstr[1] "<strong>%s</strong> زائر يتواجد الأن."
206
+
207
+ #: wp-useronline.php:83
208
+ msgid "1 User"
209
+ msgstr "مستخدم 1"
210
+
211
+ #: wp-useronline.php:84
212
+ msgid "%COUNT% Users"
213
+ msgstr "%USERONLINE_COUNT% زوار "
214
+
215
+ #: wp-useronline.php:85
216
+ msgid "1 Member"
217
+ msgstr "عضو 1"
218
+
219
+ #: wp-useronline.php:86
220
+ msgid "%COUNT% Members"
221
+ msgstr "%USERONLINE_COUNT% اعضاء "
222
+
223
+ #: wp-useronline.php:87
224
+ msgid "1 Guest"
225
+ msgstr "ضيف 1"
226
+
227
+ #: wp-useronline.php:88
228
+ msgid "%COUNT% Guests"
229
+ msgstr "%USERONLINE_COUNT% ضيوف "
230
+
231
+ #: wp-useronline.php:89
232
+ msgid "1 Bot"
233
+ msgstr "عنكب 1"
234
+
235
+ #: wp-useronline.php:90
236
+ msgid "%COUNT% Bots"
237
+ msgstr "%USERONLINE_COUNT% عنكب"
238
+
239
+ #: wp-useronline.php:94
240
+ msgid "Online"
241
+ msgstr "متواجد الان"
242
+
243
+ #: wp-useronline.php:98
244
+ #: wp-useronline.php:99
245
+ #: wp-useronline.php:100
246
+ #: wp-useronline.php:107
247
+ #: wp-useronline.php:108
248
+ #: wp-useronline.php:109
249
+ msgid ","
250
+ msgstr ","
251
+
252
+ #: wp-useronline.php:111
253
+ msgid "Browsing This Page."
254
+ msgstr "يتصفح هذه الصفحة"
255
+
256
+ #: wp-useronline.php:210
257
+ msgid "Guest"
258
+ msgstr "ضيف"
259
+
260
+ #: wp-useronline.php:217
261
+ msgid "Admin"
262
+ msgstr "المدير"
263
+
264
+ #: wp-useronline.php:223
265
+ msgid "Archive"
266
+ msgstr "الارشيف"
267
+
268
+ #: scb/AdminPage.php:167
269
+ msgid "Settings <strong>saved</strong>."
270
+ msgstr "<strong>تم الحفظ </strong>."
271
+
272
+ #: scb/AdminPage.php:377
273
+ msgid "Settings"
274
+ msgstr "الاعدادات"
275
+
276
+ #~ msgid "Users|Template Element"
277
+ #~ msgstr "الزوار| عناصر القالب"
278
+ #~ msgid "Settings updated."
279
+ #~ msgstr "تم حفظ الاعدادات"
280
+ #~ msgid "Bots Name/User Agent"
281
+ #~ msgstr "اسماء العناكب والمسميات العامة"
282
+ #~ msgid ""
283
+ #~ "Here are a list of bots and their partial browser agents.<br />On the "
284
+ #~ "left column will be the <strong>Bot's Name</strong> and on the right "
285
+ #~ "column will be their <strong>Partial Browser Agent</strong>.<br />Start "
286
+ #~ "each entry on a new line."
287
+ #~ msgstr ""
288
+ #~ "هنا قائمة باسماء العناكب واشهر العملاء المتصفحة للموقع.<br />على العمود "
289
+ #~ "اليسار تجد <strong>اسماء العناكب</strong> وعلى العمود اليمين تجد "
290
+ #~ "<strong>عملاء المواقع الشهيرة</strong>.<br />كل ادخال في سطر جديد في حال "
291
+ #~ "رغبت بالاضافة."
292
+ #~ msgid "guest"
293
+ #~ msgstr "ضيف"
294
+ #~ msgid "User"
295
+ #~ msgstr "زائر"
296
+ #~ msgid "Member"
297
+ #~ msgstr "عضو"
298
+ #~ msgid "Members"
299
+ #~ msgstr "اعضاء"
300
+ #~ msgid "Guests"
301
+ #~ msgstr "ضيوف"
302
+ #~ msgid "Bot"
303
+ #~ msgstr "عنكب"
304
+ #~ msgid "Bots"
305
+ #~ msgstr "عناكب"
306
+ #~ msgid "Useronline Timeout"
307
+ #~ msgstr "مهلة الحساب"
308
+ #~ msgid "Useronline Bots"
309
+ #~ msgstr "العناكب المتواجدة"
310
+ #~ msgid "Useronline URL"
311
+ #~ msgstr "روابط المتواجدين الان"
312
+ #~ msgid "Useronline Naming Conventions"
313
+ #~ msgstr "مصطلحات التسمية للمتواجدين الان"
314
+ #~ msgid "User(s) Online Template"
315
+ #~ msgstr "قوالب المتواجدين الان"
316
+ #~ msgid "User(s) Browsing Site Template"
317
+ #~ msgstr "قالب الزوار الذين يتصفحون الموقع"
318
+ #~ msgid "User(s) Browsing Page Template"
319
+ #~ msgstr "قالب الزوار الذين يتصفحون هذه الصفحة"
320
+ #~ msgid "Updated"
321
+ #~ msgstr "تحديث"
322
+ #~ msgid "No Useronline Option Updated"
323
+ #~ msgstr "لا يوجد اعدادات لاضافة المتواجدين الان للتحديث"
324
+ #~ msgid "UNINSTALL WP-UserOnline"
325
+ #~ msgstr "ازالة WP-UserOnline"
326
+ #~ msgid "Table '%s' has been deleted."
327
+ #~ msgstr " جدول '%s' تم حذفه ."
328
+ #~ msgid "Setting Key '%s' has been deleted."
329
+ #~ msgstr "مفتاح الاعداد '%s' تم حذفه ."
330
+ #~ msgid "Uninstall WP-UserOnline"
331
+ #~ msgstr "ازالة WP-UserOnline"
332
+ #~ msgid ""
333
+ #~ "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-"
334
+ #~ "UserOnline Will Be Deactivated Automatically."
335
+ #~ msgstr ""
336
+ #~ "<a href=\"%s\">اضغط هنا</a> لاكمال ازالة اضافة WP-UserOnline والغاء "
337
+ #~ "تفعيلها تلقائيا."
338
+ #~ msgid ""
339
+ #~ "Deactivating WP-UserOnline plugin does not remove any data that may have "
340
+ #~ "been created, such as the useronline options. To completely remove this "
341
+ #~ "plugin, you can uninstall it here."
342
+ #~ msgstr ""
343
+ #~ "تعطيل الاضافة يوقف الاضافة عن العمل ولا تظهر خياراتها ولا استعلاماتها في "
344
+ #~ "الصفحات ولا يتم ايضا حذف جداولها من قاعدة البيانات , ولازالتها نهائيا "
345
+ #~ "يلزم ان تقوم بازالتها من الخيار في الاسفل"
346
+ #~ msgid "WARNING:"
347
+ #~ msgstr "تحذير : "
348
+ #~ msgid ""
349
+ #~ "Once uninstalled, this cannot be undone. You should use a Database Backup "
350
+ #~ "plugin of WordPress to back up all the data first."
351
+ #~ msgstr ""
352
+ #~ "بمجرد البدء بعملية الازالة فان اي تغير ناتج لا يمكن عكسه لذلك ننصح باخذ "
353
+ #~ "نسخة احتياطية من قاعدة البيانات قبل القيام بلك"
354
+ #~ msgid "The following WordPress Options/Tables will be DELETED:"
355
+ #~ msgstr "الخيارات والجداول التالية سيتم حذفها من القاعدة :"
356
+ #~ msgid "WordPress Options"
357
+ #~ msgstr "خيارات الووردبريس"
358
+ #~ msgid "WordPress Tables"
359
+ #~ msgstr "جداول الووردبريس"
360
+ #~ msgid "Yes"
361
+ #~ msgstr "نعم"
362
+ #~ msgid ""
363
+ #~ "You Are About To Uninstall WP-UserOnline From WordPress.\\nThis Action Is "
364
+ #~ "Not Reversible.\\n\\n Choose [Cancel] To Stop, [OK] To Uninstall."
365
+ #~ msgstr ""
366
+ #~ "انت الان بصدد ازالة WP-UserOnline من موقعك.\\nهذا التصرف غير قابل للعكس."
367
+ #~ "\\n\\n اختر (الغاء) للتوقف أو , [موافق] للازالة."
368
+ #~ msgid "No User Is Browsing This Site"
369
+ #~ msgstr "لا يوجد متصفحين للموقع الان"
370
+ #~ msgid "No User Is Browsing This Page"
371
+ #~ msgstr "لا يوجد متصفحين لهذه الصفحة"
372
+ #~ msgid ""
373
+ #~ "There are a total of <strong><a href=\"%s\">%s users</a></strong> online "
374
+ #~ "now."
375
+ #~ msgstr ""
376
+ #~ "هناك ما مجموعه <strong><a href=\"%s\">%s زائر</a></strong> يتواجد الان."
377
+ #~ msgid ""
378
+ #~ "There are a total of <strong>%s</strong> online now: <strong>%s</strong>, "
379
+ #~ "<strong>%s</strong> and <strong>%s</strong>."
380
+ #~ msgstr ""
381
+ #~ "هناك ما مجموعه <strong>%s</strong> متواجدين الان: <strong>%s</strong>, "
382
+ #~ "<strong>%s</strong>&nbsp; و <strong>%s</strong>."
383
+ #~ msgid "On"
384
+ #~ msgstr "في"
385
+
lang/wp-useronline.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Translation of the WordPress plugin WP-UserOnline 2.70-beta by Lester 'GaMerZ' Chan & scribu.
2
  # Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
3
  # This file is distributed under the same license as the WP-UserOnline package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: WP-UserOnline 2.70-beta\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-useronline\n"
11
- "POT-Creation-Date: 2010-05-07 16:14+0300\n"
12
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -21,7 +21,7 @@ msgstr ""
21
  msgid "Users Online Now"
22
  msgstr ""
23
 
24
- #. #-#-#-#-# wp-useronline.pot (WP-UserOnline 2.70-beta) #-#-#-#-#
25
  #. Plugin Name of the plugin/theme
26
  #: admin.php:10 wp-stats.php:14 wp-stats.php:31
27
  msgid "WP-UserOnline"
@@ -35,101 +35,101 @@ msgid_plural ""
35
  msgstr[0] ""
36
  msgstr[1] ""
37
 
38
- #: admin.php:51
39
  msgid "UserOnline Options"
40
  msgstr ""
41
 
42
- #: admin.php:52 widget.php:6 widget.php:49
43
  msgid "UserOnline"
44
  msgstr ""
45
 
46
- #: admin.php:107
47
  msgid "Time Out"
48
  msgstr ""
49
 
50
- #: admin.php:110
51
  msgid "How long until it will remove the user from the database (In seconds)."
52
  msgstr ""
53
 
54
- #: admin.php:115
55
  msgid "UserOnline URL"
56
  msgstr ""
57
 
58
- #: admin.php:118
59
  msgid ""
60
  "URL To UserOnline Page<br />Example: http://www.yoursite.com/useronline/<br /"
61
  ">Example: http://www.yoursite.com/?page_id=2"
62
  msgstr ""
63
 
64
- #: admin.php:122
65
  msgid "User Names"
66
  msgstr ""
67
 
68
- #: admin.php:125
69
  msgid "Link user names to their author page"
70
  msgstr ""
71
 
72
- #: admin.php:142
73
  msgid "Useronline Templates"
74
  msgstr ""
75
 
76
- #: admin.php:154
77
  msgid "User(s) Browsing Site:"
78
  msgstr ""
79
 
80
- #: admin.php:155
81
  msgid "User(s) Browsing Page:"
82
  msgstr ""
83
 
84
- #: admin.php:168 scb/AdminPage.php:179 scb/AdminPage.php:190
85
  msgid "Save Changes"
86
  msgstr ""
87
 
88
- #: admin.php:178
89
  msgid "Naming Conventions:"
90
  msgstr ""
91
 
92
- #: admin.php:179 admin.php:219 admin.php:241
93
  msgid "Allowed Variables:"
94
  msgstr ""
95
 
96
- #: admin.php:181
97
  msgid "Restore Defaults"
98
  msgstr ""
99
 
100
- #: admin.php:187
101
  msgid "Singular Form"
102
  msgstr ""
103
 
104
- #: admin.php:188
105
  msgid "Plural Form"
106
  msgstr ""
107
 
108
- #: admin.php:218
109
  msgid "User(s) Online:"
110
  msgstr ""
111
 
112
- #: admin.php:224 admin.php:249
113
  msgid "Restore Default Template"
114
  msgstr ""
115
 
116
- #: admin.php:255
117
  msgid "Member Names Separator"
118
  msgstr ""
119
 
120
- #: admin.php:256
121
  msgid "Guests Separator"
122
  msgstr ""
123
 
124
- #: admin.php:257
125
  msgid "Bots Separator"
126
  msgstr ""
127
 
128
- #: scb/AdminPage.php:166
129
  msgid "Settings <strong>saved</strong>."
130
  msgstr ""
131
 
132
- #: scb/AdminPage.php:376
133
  msgid "Settings"
134
  msgstr ""
135
 
@@ -164,12 +164,12 @@ msgstr ""
164
  msgid "Online Now"
165
  msgstr ""
166
 
167
- #: template-tags.php:227
168
  #, php-format
169
  msgid "%s @ %s"
170
  msgstr ""
171
 
172
- #: template-tags.php:247
173
  #, php-format
174
  msgid "Most users ever online were <strong>%s</strong>, on <strong>%s</strong>"
175
  msgstr ""
@@ -263,15 +263,15 @@ msgstr ""
263
  msgid "Browsing This Page."
264
  msgstr ""
265
 
266
- #: wp-useronline.php:210
267
  msgid "Guest"
268
  msgstr ""
269
 
270
- #: wp-useronline.php:217
271
  msgid "Admin"
272
  msgstr ""
273
 
274
- #: wp-useronline.php:223
275
  msgid "Archive"
276
  msgstr ""
277
 
@@ -280,10 +280,7 @@ msgid "http://wordpress.org/extend/plugins/wp-useronline/"
280
  msgstr ""
281
 
282
  #. Description of the plugin/theme
283
- msgid ""
284
- "Enable you to display how many users are online on your Wordpress blog with "
285
- "detailed statistics of where they are and who there are(Members/Guests/"
286
- "Search Bots)."
287
  msgstr ""
288
 
289
  #. Author of the plugin/theme
1
+ # Translation of the WordPress plugin WP-UserOnline 2.73 by Lester 'GaMerZ' Chan & scribu.
2
  # Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
3
  # This file is distributed under the same license as the WP-UserOnline package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: WP-UserOnline 2.73\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-useronline\n"
11
+ "POT-Creation-Date: 2010-05-13 16:18+0000\n"
12
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
21
  msgid "Users Online Now"
22
  msgstr ""
23
 
24
+ #. #-#-#-#-# plugin.pot (WP-UserOnline 2.73) #-#-#-#-#
25
  #. Plugin Name of the plugin/theme
26
  #: admin.php:10 wp-stats.php:14 wp-stats.php:31
27
  msgid "WP-UserOnline"
35
  msgstr[0] ""
36
  msgstr[1] ""
37
 
38
+ #: admin.php:52
39
  msgid "UserOnline Options"
40
  msgstr ""
41
 
42
+ #: admin.php:53 widget.php:6 widget.php:49
43
  msgid "UserOnline"
44
  msgstr ""
45
 
46
+ #: admin.php:110
47
  msgid "Time Out"
48
  msgstr ""
49
 
50
+ #: admin.php:113
51
  msgid "How long until it will remove the user from the database (In seconds)."
52
  msgstr ""
53
 
54
+ #: admin.php:118
55
  msgid "UserOnline URL"
56
  msgstr ""
57
 
58
+ #: admin.php:121
59
  msgid ""
60
  "URL To UserOnline Page<br />Example: http://www.yoursite.com/useronline/<br /"
61
  ">Example: http://www.yoursite.com/?page_id=2"
62
  msgstr ""
63
 
64
+ #: admin.php:125
65
  msgid "User Names"
66
  msgstr ""
67
 
68
+ #: admin.php:128
69
  msgid "Link user names to their author page"
70
  msgstr ""
71
 
72
+ #: admin.php:145
73
  msgid "Useronline Templates"
74
  msgstr ""
75
 
76
+ #: admin.php:157
77
  msgid "User(s) Browsing Site:"
78
  msgstr ""
79
 
80
+ #: admin.php:158
81
  msgid "User(s) Browsing Page:"
82
  msgstr ""
83
 
84
+ #: admin.php:171 scb/AdminPage.php:180 scb/AdminPage.php:191
85
  msgid "Save Changes"
86
  msgstr ""
87
 
88
+ #: admin.php:181
89
  msgid "Naming Conventions:"
90
  msgstr ""
91
 
92
+ #: admin.php:182 admin.php:222 admin.php:244
93
  msgid "Allowed Variables:"
94
  msgstr ""
95
 
96
+ #: admin.php:184
97
  msgid "Restore Defaults"
98
  msgstr ""
99
 
100
+ #: admin.php:190
101
  msgid "Singular Form"
102
  msgstr ""
103
 
104
+ #: admin.php:191
105
  msgid "Plural Form"
106
  msgstr ""
107
 
108
+ #: admin.php:221
109
  msgid "User(s) Online:"
110
  msgstr ""
111
 
112
+ #: admin.php:227 admin.php:252
113
  msgid "Restore Default Template"
114
  msgstr ""
115
 
116
+ #: admin.php:258
117
  msgid "Member Names Separator"
118
  msgstr ""
119
 
120
+ #: admin.php:259
121
  msgid "Guests Separator"
122
  msgstr ""
123
 
124
+ #: admin.php:260
125
  msgid "Bots Separator"
126
  msgstr ""
127
 
128
+ #: scb/AdminPage.php:167
129
  msgid "Settings <strong>saved</strong>."
130
  msgstr ""
131
 
132
+ #: scb/AdminPage.php:377
133
  msgid "Settings"
134
  msgstr ""
135
 
164
  msgid "Online Now"
165
  msgstr ""
166
 
167
+ #: template-tags.php:228 template-tags.php:230
168
  #, php-format
169
  msgid "%s @ %s"
170
  msgstr ""
171
 
172
+ #: template-tags.php:250
173
  #, php-format
174
  msgid "Most users ever online were <strong>%s</strong>, on <strong>%s</strong>"
175
  msgstr ""
263
  msgid "Browsing This Page."
264
  msgstr ""
265
 
266
+ #: wp-useronline.php:233
267
  msgid "Guest"
268
  msgstr ""
269
 
270
+ #: wp-useronline.php:240
271
  msgid "Admin"
272
  msgstr ""
273
 
274
+ #: wp-useronline.php:246
275
  msgid "Archive"
276
  msgstr ""
277
 
280
  msgstr ""
281
 
282
  #. Description of the plugin/theme
283
+ msgid "Enable you to display how many users are online on your Wordpress site"
 
 
 
284
  msgstr ""
285
 
286
  #. Author of the plugin/theme
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://lesterchan.net/wordpress
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
  Requires at least: 2.9
6
  Tested up to: 3.0
7
- Stable tag: 2.72
8
 
9
  Enable you to display how many users are online on your Wordpress blog with detailed statistics.
10
 
@@ -14,7 +14,7 @@ Enable you to display how many users are online on your Wordpress blog with deta
14
 
15
  This plugin enables you to display how many users are online on your Wordpress site, with detailed statistics of where they are and who they are (Members/Guests/Search Bots).
16
 
17
- [Translations](http://scribu.net/wordpress/translating-plugins.html)
18
 
19
  == Installation ==
20
 
@@ -89,18 +89,22 @@ To Display *Users Browsing A Page* use:
89
 
90
  = Error on activation: "Parse error: syntax error, unexpected..." =
91
 
92
- Make sure your host is running PHP 5. The only foolproof way to do this is to add this line to wp-config.php:
93
 
94
  `var_dump(PHP_VERSION);`
95
  <br>
96
 
97
  == Changelog ==
98
 
 
 
 
 
99
  = 2.72 =
100
- * fix fatal error on upgrade
101
 
102
  = 2.71 =
103
- * fix %USERONLINE_COUNT% problem
104
 
105
  = 2.70 =
106
  * added option to link user names to their author page
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
  Requires at least: 2.9
6
  Tested up to: 3.0
7
+ Stable tag: 2.73
8
 
9
  Enable you to display how many users are online on your Wordpress blog with detailed statistics.
10
 
14
 
15
  This plugin enables you to display how many users are online on your Wordpress site, with detailed statistics of where they are and who they are (Members/Guests/Search Bots).
16
 
17
+ Links: [Plugin News](http://scribu.net/wordpress/wp-useronline) | [Translating](http://scribu.net/wordpress/translating-plugins.html)
18
 
19
  == Installation ==
20
 
89
 
90
  = Error on activation: "Parse error: syntax error, unexpected..." =
91
 
92
+ Make sure your host is running PHP 5. The only foolproof way to do this is to add this line to wp-config.php (after the opening `<?php` tag):
93
 
94
  `var_dump(PHP_VERSION);`
95
  <br>
96
 
97
  == Changelog ==
98
 
99
+ = 2.73 =
100
+ * fixed "0 users" problem
101
+ * fixed "%MOSTONLINE_DATE% problem
102
+
103
  = 2.72 =
104
+ * fixed fatal error on upgrade
105
 
106
  = 2.71 =
107
+ * fixed %USERONLINE_COUNT% problem
108
 
109
  = 2.70 =
110
  * added option to link user names to their author page
template-tags.php CHANGED
@@ -200,7 +200,7 @@ class UserOnline_Template {
200
  $nr = number_format_i18n($i++);
201
  $name = self::format_name($user);
202
  $user_ip = self::format_ip($user->user_ip);
203
- $date = self::format_date($user->timestamp);
204
  $page_title = esc_html($user->page_title);
205
  $current_link = '[' . html_link(esc_url($user->page_url), $_url) . ']';
206
 
@@ -223,21 +223,24 @@ class UserOnline_Template {
223
  return '<span dir="ltr">(<a href="http://whois.domaintools.com/' . $ip . '" title="' . gethostbyaddr($ip) . '">' . $ip . '</a>)</span>';
224
  }
225
 
226
- function format_date($date) {
227
- return mysql2date(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $date, true);
 
 
 
228
  }
229
 
230
  function format_name($user) {
231
  return apply_filters('useronline_display_user', esc_html($user->user_name), $user);
232
  }
233
 
234
- function format_count($count, $user_type, $template = '') {
235
  $i = ($count == 1) ? '' : 's';
236
  $string = UserOnline_Core::$options->naming[$user_type . $i];
237
 
238
  $output = str_ireplace('%COUNT%', number_format_i18n($count), $string);
239
 
240
- if ( empty($template) )
241
  return $output;
242
 
243
  return str_ireplace('%USERS%', $output, $template);
200
  $nr = number_format_i18n($i++);
201
  $name = self::format_name($user);
202
  $user_ip = self::format_ip($user->user_ip);
203
+ $date = self::format_date($user->timestamp, true);
204
  $page_title = esc_html($user->page_title);
205
  $current_link = '[' . html_link(esc_url($user->page_url), $_url) . ']';
206
 
223
  return '<span dir="ltr">(<a href="http://whois.domaintools.com/' . $ip . '" title="' . gethostbyaddr($ip) . '">' . $ip . '</a>)</span>';
224
  }
225
 
226
+ function format_date($date, $mysql = false) {
227
+ if ( $mysql )
228
+ return mysql2date(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $date, true);
229
+
230
+ return date_i18n(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $date);
231
  }
232
 
233
  function format_name($user) {
234
  return apply_filters('useronline_display_user', esc_html($user->user_name), $user);
235
  }
236
 
237
+ function format_count($count, $user_type, $template = false) {
238
  $i = ($count == 1) ? '' : 's';
239
  $string = UserOnline_Core::$options->naming[$user_type . $i];
240
 
241
  $output = str_ireplace('%COUNT%', number_format_i18n($count), $string);
242
 
243
+ if ( false === $template )
244
  return $output;
245
 
246
  return str_ireplace('%USERS%', $output, $template);
wp-useronline.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-UserOnline
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-useronline/
5
  Description: Enable you to display how many users are online on your Wordpress site
6
- Version: 2.72
7
  Author: Lester 'GaMerZ' Chan & scribu
8
 
9
 
@@ -66,12 +66,12 @@ class UserOnline_Core {
66
  page_title text NOT NULL default '',
67
  page_url varchar(255) NOT NULL default '',
68
  referral varchar(255) NOT NULL default '',
69
- UNIQUE KEY useronline_id (timestamp, user_ip, user_agent)
70
  ");
71
 
72
  self::$most = new scbOptions('useronline_most', __FILE__, array(
73
  'count' => 1,
74
- 'date' => current_time('mysql')
75
  ));
76
 
77
  self::$options = new scbOptions('useronline', __FILE__, array(
@@ -119,10 +119,17 @@ class UserOnline_Core {
119
 
120
  // WP >= 2.70
121
  if ( $options = get_option('useronline') ) {
122
- $options['naming'] = scbUtil::array_map_recursive(array(__CLASS__, '_update_template'), $options['naming']);
123
 
124
  update_option('useronline', $options);
125
 
 
 
 
 
 
 
 
126
  return;
127
  }
128
 
@@ -136,7 +143,7 @@ class UserOnline_Core {
136
  add_option('useronline_most', compact('count', 'date'));
137
 
138
  $naming = self::get_and_delete_option('useronline_naming');
139
- $naming = scbUtil::array_map_recursive(array(__CLASS__, '_update_template'), $naming);
140
 
141
  $templates['useronline'] = str_replace('%USERONLINE_', '%', self::get_and_delete_option('useronline_template_useronline'));
142
 
@@ -159,8 +166,8 @@ class UserOnline_Core {
159
  $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}useronline");
160
  }
161
 
162
- function _update_template($text) {
163
- return str_replace('%USERONLINE_', '%', $text);
164
  }
165
 
166
  private function get_and_delete_option($key) {
@@ -258,7 +265,7 @@ class UserOnline_Core {
258
  if ( self::$useronline > self::$most->count )
259
  self::$most->update(array(
260
  'count' => self::$useronline,
261
- 'date' => current_time('mysql')
262
  ));
263
  }
264
 
@@ -309,7 +316,7 @@ function _useronline_init() {
309
  require_once dirname(__FILE__) . '/template-tags.php';
310
  require_once dirname(__FILE__) . '/deprecated.php';
311
 
312
- load_plugin_textdomain('wp-useronline', '', basename(dirname(__FILE__)));
313
 
314
  UserOnline_Core::init();
315
 
3
  Plugin Name: WP-UserOnline
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-useronline/
5
  Description: Enable you to display how many users are online on your Wordpress site
6
+ Version: 2.73
7
  Author: Lester 'GaMerZ' Chan & scribu
8
 
9
 
66
  page_title text NOT NULL default '',
67
  page_url varchar(255) NOT NULL default '',
68
  referral varchar(255) NOT NULL default '',
69
+ UNIQUE KEY useronline_id (timestamp, user_type, user_ip)
70
  ");
71
 
72
  self::$most = new scbOptions('useronline_most', __FILE__, array(
73
  'count' => 1,
74
+ 'date' => current_time('timestamp')
75
  ));
76
 
77
  self::$options = new scbOptions('useronline', __FILE__, array(
119
 
120
  // WP >= 2.70
121
  if ( $options = get_option('useronline') ) {
122
+ array_walk(&$options['naming'], array(__CLASS__, '_update_template'));
123
 
124
  update_option('useronline', $options);
125
 
126
+ $most = get_option('useronline_most');
127
+
128
+ if ( !is_int($most['date']) )
129
+ $most['date'] = strtotime($most['date']);
130
+
131
+ update_option('useronline_most', $most);
132
+
133
  return;
134
  }
135
 
143
  add_option('useronline_most', compact('count', 'date'));
144
 
145
  $naming = self::get_and_delete_option('useronline_naming');
146
+ array_walk($naming, array(__CLASS__, '_update_template'));
147
 
148
  $templates['useronline'] = str_replace('%USERONLINE_', '%', self::get_and_delete_option('useronline_template_useronline'));
149
 
166
  $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}useronline");
167
  }
168
 
169
+ function _update_template(&$text) {
170
+ $text = str_replace('%USERONLINE_', '%', $text);
171
  }
172
 
173
  private function get_and_delete_option($key) {
265
  if ( self::$useronline > self::$most->count )
266
  self::$most->update(array(
267
  'count' => self::$useronline,
268
+ 'date' => current_time('timestamp')
269
  ));
270
  }
271
 
316
  require_once dirname(__FILE__) . '/template-tags.php';
317
  require_once dirname(__FILE__) . '/deprecated.php';
318
 
319
+ load_plugin_textdomain('wp-useronline', '', dirname(plugin_basename(__FILE__)) . '/lang');
320
 
321
  UserOnline_Core::init();
322