WP-UserOnline - Version 2.11

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-UserOnline
Version 2.11
Comparing to
See all releases

Code changes from version 2.10 to 2.11

readme.html CHANGED
@@ -2,7 +2,7 @@
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
- <title>WP-UserOnline 2.10 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
@@ -204,7 +204,7 @@
204
  <body>
205
  <div id="Container">
206
  <!-- Title -->
207
- <div id="Title">WP-UserOnline 2.10&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
@@ -222,62 +222,62 @@
222
  <div class="SubTitle">&raquo; Index</div>
223
  <div class="SubSubTitle">Plugin Information</div>
224
  <p>
225
- <b>Author:</b><br />
226
- <b>&raquo;</b> Lester 'GaMerZ' Chan
227
  </p>
228
  <p>
229
- <b>EMail:</b><br />
230
- <b>&raquo;</b>
231
  <script type="text/javascript">
232
  /* <![CDATA[*/
233
- document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-UserOnline%202.10%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
234
  /* ]]> */
235
  </script>
236
  </p>
237
  <p>
238
- <b>Website:</b><br />
239
- <b>&raquo;</b> <a href="http://www.lesterchan.net/" title="http://www.lesterchan.net/">http://www.lesterchan.net/</a>
240
  </p>
241
  <p>
242
- <b>Features:</b><br />
243
- <b>&raquo;</b> Enable you to display how many users are online on your Wordpress blog with detailed statistics of where they are and who there are(Members/Guests/Search Bots).
244
  </p>
245
  <p>
246
- <b>Download:</b><br />
247
- <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads.php?id=14" title="http://www.lesterchan.net/others/downloads.php?id=14">WP-UserOnline 2.10 For WordPress 2.1.x</a><br />
248
- <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads/wp-useronline206.zip" title="http://www.lesterchan.net/others/downloads/wp-useronline206.zip">WP-UserOnline 2.06 For WordPress 2.0.x</a><br />
249
- <b>&raquo;</b> <a href="http://www.lesterchan.net/others/downloads/wp-useronline.zip" title="http://www.lesterchan.net/others/downloads/wp-useronline.zip">WP-UserOnline 1.00 For WordPress 1.5.2</a>
250
  </p>
251
  <p>
252
- <b>Demo:</b><br />
253
- <b>&raquo;</b> <a href="http://www.lesterchan.net/wordpress/useronline/" title="http://www.lesterchan.net/wordpress/useronline/">http://www.lesterchan.net/wordpress/useronline/</a>
254
  </p>
255
  <p>
256
- <b>Development:</b><br />
257
- <b>&raquo;</b> <a href="http://dev.wp-plugins.org/browser/wp-useronline/" title="http://dev.wp-plugins.org/browser/wp-useronline/">http://dev.wp-plugins.org/browser/wp-useronline/</a>
258
  </p>
259
  <p>
260
- <b>Translations:</b><br />
261
- <b>&raquo;</b> <a href="http://dev.wp-plugins.org/browser/wp-useronline/i18n/" title="http://dev.wp-plugins.org/browser/wp-useronline/i18n/">http://dev.wp-plugins.org/browser/wp-useronline/i18n/</a>
262
  </p>
263
  <p>
264
- <b>Support Forums:</b><br />
265
- <b>&raquo;</b> <a href="http://forums.lesterchan.net/index.php?board=21.0" title="http://forums.lesterchan.net/index.php?board=21.0">http://forums.lesterchan.net/index.php?board=21.0</a>
266
  </p>
267
  <p>
268
- <b>Updated:</b><br />
269
- <b>&raquo;</b> 1st February 2007
270
  </p>
271
  <p>
272
- <b>Note:</b><br />
273
- <b>&raquo;</b> The <b>Changelog</b>, <b>Installation</b>, <b>Upgrade</b>, <b>Usage</b> Tab at the top of the page.
274
  </p>
275
  <p>
276
- <b>Donations:</b><br />
277
- <b>&raquo;</b> I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks as my school allowance, I will really appericiate it. If not feel free to use it without any obligations. Thank You. My Paypal account is
278
  <script type="text/javascript">
279
  /* <![CDATA[*/
280
- document.write(' <b>gamerz84@hotmail.com</b>.');
281
  /* ]]> */
282
  </script>
283
  </p>
@@ -288,14 +288,22 @@
288
  <div class="SubTitle">&raquo; Changelog</div>
289
  <ul>
290
  <li>
291
- <b>Version 2.10 (01-02-2007)</b>
 
 
 
 
 
 
 
 
292
  <ul>
293
  <li>NEW: Works For WordPress 2.1 Only</li>
294
  <li>NEW: Renamed useronline-js.js to useronline-js.php To Enable PHP Parsing</li>
295
  </ul>
296
  </li>
297
  <li>
298
- <b>Version 2.06 (02-01-2007)</b>
299
  <ul>
300
  <li>NEW: useronline.php Now Handles The AJAX Processing Instead Of index.php</li>
301
  <li>NEW: Localize WP-UserOnline</li>
@@ -305,7 +313,7 @@
305
  </ul>
306
  </li>
307
  <li>
308
- <b>Version 2.05 (01-10-2006)</b>
309
  <ul>
310
  <li>NEW: UserOnline Is Now Embedded Into A Page, And Hence No More Integrating Of UserOnline Page (Removed wp-useronline.php)</li>
311
  <li>NEW: Changed In WP-UserOnline Structure: Members Mean Registered Users and Guests Mean Comment Authors</li>
@@ -316,7 +324,7 @@
316
  </ul>
317
  </li>
318
  <li>
319
- <b>Version 2.04 (01-07-2006)</b>
320
  <ul>
321
  <li>NEW: AJAX Is Now Used For Updating Users Online Every 1 Minute Without Refreshing The Page</li>
322
  <li>NEW: You Can Now Place Users Online Count And Users Browsing Site Data On The Sidebar As A Widget</li>
@@ -326,7 +334,7 @@
326
  </ul>
327
  </li>
328
  <li>
329
- <b>Version 2.03 (01-04-2006)</b>
330
  <ul>
331
  <li>NEW: Added get_users_browsing_site(); To Display Users Browsing The Site</li>
332
  <li>FIXED: wp-stats.php Link</li>
@@ -334,7 +342,7 @@
334
  </ul>
335
  </li>
336
  <li>
337
- <b>Version 2.02 (01-03-2006)</b>
338
  <ul>
339
  <li>NEW: No More Install/Upgrade File, It Will Install/Upgrade When You Activate The Plugin.</li>
340
  <li>FIXED: IP 'Unknown' Error, Credit To Brian Layman (http://www.knitchat.com/)</li>
@@ -343,7 +351,7 @@
343
  </ul>
344
  </li>
345
  <li>
346
- <b>Version 2.01 (01-02-2006)</b>
347
  <ul>
348
  <li>NEW: Added Users Browsing Page</li>
349
  <li>NEW: Added Most Users Ever Online</li>
@@ -352,7 +360,7 @@
352
  </ul>
353
  </li>
354
  <li>
355
- <b>Version 2.00 (01-01-2006)</b>
356
  <ul>
357
  <li>NEW: Compatible With Only WordPress 2.0</li>
358
  <li>NEW: Better Installer</li>
@@ -370,17 +378,17 @@
370
  <div class="SubTitle">&raquo; Installation Instructions</div>
371
  <ol>
372
  <li>
373
- Open <b>wp-content/plugins</b> Folder
374
  </li>
375
  <li>
376
  Put:
377
  <blockquote>Folder: useronline</blockquote>
378
  </li>
379
  <li>
380
- <b>Activate</b> WP-UserOnline Plugin
381
  </li>
382
  <li>
383
- Refer To <b>Usage</b> For Further Instructions
384
  </li>
385
  </ol>
386
  </div>
@@ -388,13 +396,13 @@
388
  <!-- Upgrade Instructions -->
389
  <div id="Upgrade" style="display: none;">
390
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
391
- <div class="SubSubTitle">From v1.0x To v2.10</div>
392
  <ol>
393
  <li>
394
- <b>Deactivate</b> WP-UserOnline Plugin
395
  </li>
396
  <li>
397
- Open <b>wp-content/plugins</b> Folder
398
  </li>
399
  <li>
400
  Put/Overwrite:
@@ -410,10 +418,10 @@
410
  </blockquote>
411
  </li>
412
  <li>
413
- <b>Activate</b> WP-UserOnline Plugin
414
  </li>
415
  <li>
416
- Refer To <b>Usage</b> For Further Instructions
417
  </li>
418
  </ol>
419
  </div>
@@ -424,7 +432,7 @@
424
  <div class="SubSubTitle">General Usage (Without Widget)</div>
425
  <ol>
426
  <li>
427
- Open <b>wp-content/themes/&lt;YOUR THEME NAME&gt;/sidebar.php</b>
428
  </li>
429
  <li>
430
  Add Anywhere:
@@ -443,47 +451,47 @@
443
  <div class="SubSubTitle">General Usage (With Widget)</div>
444
  <ol>
445
  <li>
446
- <b>Activate</b> WP-UserOnline Widget Plugin
447
  </li>
448
  <li>
449
- Go to 'WP-Admin -> Presentation -> Sidebar Widgets'
450
  </li>
451
  <li>
452
- <b>Drag</b> the UserOnline Widget to your sidebar
453
  </li>
454
  <li>
455
- You can <b>configure</b> the UserOnline Widget by clicking on the configure icon
456
  </li>
457
  <li>
458
  Click 'Save changes'
459
  </li>
460
  <li>
461
- Scroll down for instructions on how to create a <b>UserOnline Page</b>.
462
  </li>
463
  </ol>
464
  <div class="SubSubTitle">UserOnline Page</div>
465
  <ol>
466
  <li>
467
- Go to 'WP-Admin -> Write -> Write Page'
468
  </li>
469
  <li>
470
  Type any title you like in the post's title area
471
  </li>
472
  <li>
473
- Type '<b>[page_useronline]</b>' in the post's content area (without the quotes)
474
  </li>
475
  <li>
476
- Type '<b>useronline</b>' in the post's slug area (without the quotes)
477
  </li>
478
  <li>
479
  Click 'Publish'
480
  </li>
481
- <li>If you <b>ARE NOT</b> using nice permalinks, you need to go to 'WP-Admin -> Options -> Useronline' and under '<b>UserOnline URL</b>', you need to fill in the URL to the UserOnline Page you created above.</li>
482
  </ol>
483
  <div class="SubSubTitle">UserOnline Stats (Outside WP Loop)</div>
484
  <ul>
485
  <li>
486
- To Display <b>Most Number Of Users Online</b>
487
  </li>
488
  <li>
489
  Use:
@@ -494,7 +502,7 @@
494
  </blockquote>
495
  </li>
496
  <li>
497
- To Display <b>Users Browsing Site</b>
498
  </li>
499
  <li>
500
  Use:
@@ -505,7 +513,7 @@
505
  </blockquote>
506
  </li>
507
  <li>
508
- To Display <b>Users Browsing A Page</b>
509
  </li>
510
  <li>
511
  Use:
@@ -519,6 +527,6 @@
519
  </div>
520
  </div>
521
  </div>
522
- <p id="Copyright">WP-UserOnline 2.10<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
523
  </body>
524
  </html>
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-UserOnline 2.11 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
204
  <body>
205
  <div id="Container">
206
  <!-- Title -->
207
+ <div id="Title">WP-UserOnline 2.11&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
222
  <div class="SubTitle">&raquo; Index</div>
223
  <div class="SubSubTitle">Plugin Information</div>
224
  <p>
225
+ <strong>Author:</strong><br />
226
+ <strong>&raquo;</strong> Lester 'GaMerZ' Chan
227
  </p>
228
  <p>
229
+ <strong>EMail:</strong><br />
230
+ <strong>&raquo;</strong>
231
  <script type="text/javascript">
232
  /* <![CDATA[*/
233
+ document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-UserOnline%202.11%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
234
  /* ]]> */
235
  </script>
236
  </p>
237
  <p>
238
+ <strong>Website:</strong><br />
239
+ <strong>&raquo;</strong> <a href="http://www.lesterchan.net/" title="http://www.lesterchan.net/">http://www.lesterchan.net/</a>
240
  </p>
241
  <p>
242
+ <strong>Features:</strong><br />
243
+ <strong>&raquo;</strong> Enable you to display how many users are online on your Wordpress blog with detailed statistics of where they are and who there are(Members/Guests/Search Bots).
244
  </p>
245
  <p>
246
+ <strong>Download:</strong><br />
247
+ <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=14" title="http://www.lesterchan.net/others/downloads.php?id=14">WP-UserOnline 2.11 For WordPress 2.1.x And Above</a><br />
248
+ <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-useronline206.zip" title="http://www.lesterchan.net/others/downloads/wp-useronline206.zip">WP-UserOnline 2.06 For WordPress 2.0.x</a><br />
249
+ <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-useronline.zip" title="http://www.lesterchan.net/others/downloads/wp-useronline.zip">WP-UserOnline 1.00 For WordPress 1.5.2</a>
250
  </p>
251
  <p>
252
+ <strong>Demo:</strong><br />
253
+ <strong>&raquo;</strong> <a href="http://www.lesterchan.net/wordpress/useronline/" title="http://www.lesterchan.net/wordpress/useronline/">http://www.lesterchan.net/wordpress/useronline/</a>
254
  </p>
255
  <p>
256
+ <strong>Development:</strong><br />
257
+ <strong>&raquo;</strong> <a href="http://dev.wp-plugins.org/browser/wp-useronline/" title="http://dev.wp-plugins.org/browser/wp-useronline/">http://dev.wp-plugins.org/browser/wp-useronline/</a>
258
  </p>
259
  <p>
260
+ <strong>Translations:</strong><br />
261
+ <strong>&raquo;</strong> <a href="http://dev.wp-plugins.org/browser/wp-useronline/i18n/" title="http://dev.wp-plugins.org/browser/wp-useronline/i18n/">http://dev.wp-plugins.org/browser/wp-useronline/i18n/</a>
262
  </p>
263
  <p>
264
+ <strong>Support Forums:</strong><br />
265
+ <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=21.0" title="http://forums.lesterchan.net/index.php?board=21.0">http://forums.lesterchan.net/index.php?board=21.0</a>
266
  </p>
267
  <p>
268
+ <strong>Updated:</strong><br />
269
+ <strong>&raquo;</strong> 1st June 2007
270
  </p>
271
  <p>
272
+ <strong>Note:</strong><br />
273
+ <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.
274
  </p>
275
  <p>
276
+ <strong>Donations:</strong><br />
277
+ <strong>&raquo;</strong> I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks as my school allowance, I will really appericiate it. If not feel free to use it without any obligations. Thank You. My Paypal account is
278
  <script type="text/javascript">
279
  /* <![CDATA[*/
280
+ document.write(' <strong>gamerz84@hotmail.com</strong>.');
281
  /* ]]> */
282
  </script>
283
  </p>
288
  <div class="SubTitle">&raquo; Changelog</div>
289
  <ul>
290
  <li>
291
+ <strong>Version 2.11 (01-06-2007)</strong>
292
+ <ul>
293
+ <li>NEW: Referral Link Is Now Shown On The UserOnline Page</li>
294
+ <li>FIXED: Uses WordPress's Default Date And Time Format</li>
295
+ <li>FIXED: Able To Leave Blank For 'UserOnline URL' Option To Disable Link To UserOnline Page</li>
296
+ </ul>
297
+ </li>
298
+ <li>
299
+ <strong>Version 2.10 (01-02-2007)</strong>
300
  <ul>
301
  <li>NEW: Works For WordPress 2.1 Only</li>
302
  <li>NEW: Renamed useronline-js.js to useronline-js.php To Enable PHP Parsing</li>
303
  </ul>
304
  </li>
305
  <li>
306
+ <strong>Version 2.06 (02-01-2007)</strong>
307
  <ul>
308
  <li>NEW: useronline.php Now Handles The AJAX Processing Instead Of index.php</li>
309
  <li>NEW: Localize WP-UserOnline</li>
313
  </ul>
314
  </li>
315
  <li>
316
+ <strong>Version 2.05 (01-10-2006)</strong>
317
  <ul>
318
  <li>NEW: UserOnline Is Now Embedded Into A Page, And Hence No More Integrating Of UserOnline Page (Removed wp-useronline.php)</li>
319
  <li>NEW: Changed In WP-UserOnline Structure: Members Mean Registered Users and Guests Mean Comment Authors</li>
324
  </ul>
325
  </li>
326
  <li>
327
+ <strong>Version 2.04 (01-07-2006)</strong>
328
  <ul>
329
  <li>NEW: AJAX Is Now Used For Updating Users Online Every 1 Minute Without Refreshing The Page</li>
330
  <li>NEW: You Can Now Place Users Online Count And Users Browsing Site Data On The Sidebar As A Widget</li>
334
  </ul>
335
  </li>
336
  <li>
337
+ <strong>Version 2.03 (01-04-2006)</strong>
338
  <ul>
339
  <li>NEW: Added get_users_browsing_site(); To Display Users Browsing The Site</li>
340
  <li>FIXED: wp-stats.php Link</li>
342
  </ul>
343
  </li>
344
  <li>
345
+ <strong>Version 2.02 (01-03-2006)</strong>
346
  <ul>
347
  <li>NEW: No More Install/Upgrade File, It Will Install/Upgrade When You Activate The Plugin.</li>
348
  <li>FIXED: IP 'Unknown' Error, Credit To Brian Layman (http://www.knitchat.com/)</li>
351
  </ul>
352
  </li>
353
  <li>
354
+ <strong>Version 2.01 (01-02-2006)</strong>
355
  <ul>
356
  <li>NEW: Added Users Browsing Page</li>
357
  <li>NEW: Added Most Users Ever Online</li>
360
  </ul>
361
  </li>
362
  <li>
363
+ <strong>Version 2.00 (01-01-2006)</strong>
364
  <ul>
365
  <li>NEW: Compatible With Only WordPress 2.0</li>
366
  <li>NEW: Better Installer</li>
378
  <div class="SubTitle">&raquo; Installation Instructions</div>
379
  <ol>
380
  <li>
381
+ Open <strong>wp-content/plugins</strong> Folder
382
  </li>
383
  <li>
384
  Put:
385
  <blockquote>Folder: useronline</blockquote>
386
  </li>
387
  <li>
388
+ <strong>Activate</strong> WP-UserOnline Plugin
389
  </li>
390
  <li>
391
+ Refer To <strong>Usage</strong> For Further Instructions
392
  </li>
393
  </ol>
394
  </div>
396
  <!-- Upgrade Instructions -->
397
  <div id="Upgrade" style="display: none;">
398
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
399
+ <div class="SubSubTitle">From v1.0x To v2.11</div>
400
  <ol>
401
  <li>
402
+ <strong>Deactivate</strong> WP-UserOnline Plugin
403
  </li>
404
  <li>
405
+ Open <strong>wp-content/plugins</strong> Folder
406
  </li>
407
  <li>
408
  Put/Overwrite:
418
  </blockquote>
419
  </li>
420
  <li>
421
+ <strong>Activate</strong> WP-UserOnline Plugin
422
  </li>
423
  <li>
424
+ Refer To <strong>Usage</strong> For Further Instructions
425
  </li>
426
  </ol>
427
  </div>
432
  <div class="SubSubTitle">General Usage (Without Widget)</div>
433
  <ol>
434
  <li>
435
+ Open <strong>wp-content/themes/&lt;YOUR THEME NAME&gt;/sidebar.php</strong>
436
  </li>
437
  <li>
438
  Add Anywhere:
451
  <div class="SubSubTitle">General Usage (With Widget)</div>
452
  <ol>
453
  <li>
454
+ <strong>Activate</strong> WP-UserOnline Widget Plugin
455
  </li>
456
  <li>
457
+ Go to '<strong>WP-Admin -> Presentation -> Widgets</strong>'
458
  </li>
459
  <li>
460
+ <strong>Drag</strong> the UserOnline Widget to your sidebar
461
  </li>
462
  <li>
463
+ You can <strong>configure</strong> the UserOnline Widget by clicking on the configure icon
464
  </li>
465
  <li>
466
  Click 'Save changes'
467
  </li>
468
  <li>
469
+ Scroll down for instructions on how to create a <strong>UserOnline Page</strong>.
470
  </li>
471
  </ol>
472
  <div class="SubSubTitle">UserOnline Page</div>
473
  <ol>
474
  <li>
475
+ Go to '<strong>WP-Admin -> Write -> Write Page</strong>'
476
  </li>
477
  <li>
478
  Type any title you like in the post's title area
479
  </li>
480
  <li>
481
+ Type '<strong>[page_useronline]</strong>' in the post's content area (without the quotes)
482
  </li>
483
  <li>
484
+ Type '<strong>useronline</strong>' in the post's slug area (without the quotes)
485
  </li>
486
  <li>
487
  Click 'Publish'
488
  </li>
489
+ <li>If you <strong>ARE NOT</strong> using nice permalinks, you need to go to 'WP-Admin -> Options -> Useronline' and under '<strong>UserOnline URL</strong>', you need to fill in the URL to the UserOnline Page you created above.</li>
490
  </ol>
491
  <div class="SubSubTitle">UserOnline Stats (Outside WP Loop)</div>
492
  <ul>
493
  <li>
494
+ To Display <strong>Most Number Of Users Online</strong>
495
  </li>
496
  <li>
497
  Use:
502
  </blockquote>
503
  </li>
504
  <li>
505
+ To Display <strong>Users Browsing Site</strong>
506
  </li>
507
  <li>
508
  Use:
513
  </blockquote>
514
  </li>
515
  <li>
516
+ To Display <strong>Users Browsing A Page</strong>
517
  </li>
518
  <li>
519
  Use:
527
  </div>
528
  </div>
529
  </div>
530
+ <p id="Copyright">WP-UserOnline 2.11<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
531
  </body>
532
  </html>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: GamerZ
3
  Donate link: http://www.lesterchan.net/wordpress
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
  Requires at least: 2.1.0
6
- Stable tag: 2.10
7
 
8
  Enable you to display how many users are online on your Wordpress blog with detailed statistics.
9
 
3
  Donate link: http://www.lesterchan.net/wordpress
4
  Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
5
  Requires at least: 2.1.0
6
+ Stable tag: 2.11
7
 
8
  Enable you to display how many users are online on your Wordpress blog with detailed statistics.
9
 
useronline/useronline-js.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-UserOnline 2.10 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-UserOnline 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
useronline/useronline-options.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-UserOnline 2.10 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -82,7 +82,7 @@ $useronline_options_bots_agent = trim($useronline_options_bots_agent);
82
  <tr valign="top">
83
  <th align="left" width="30%"><?php _e('UserOnline URL', 'wp-useronline'); ?></th>
84
  <td align="left">
85
- <input type="text" name="useronline_url" value="<?php echo get_option('useronline_url'); ?>" size="50" /><br /><?php _e('URL To UserOnline Page<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-useronline'); ?>
86
  </td>
87
  </tr>
88
  <tr valign="top">
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-UserOnline 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
82
  <tr valign="top">
83
  <th align="left" width="30%"><?php _e('UserOnline URL', 'wp-useronline'); ?></th>
84
  <td align="left">
85
+ <input type="text" name="useronline_url" value="<?php echo get_option('useronline_url'); ?>" size="50" /><br /><?php _e('URL To UserOnline Page (leave blank if you do not want to link it to the UserOnline Page)<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-useronline'); ?>
86
  </td>
87
  </tr>
88
  <tr valign="top">
useronline/useronline-widget.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: WP-UserOnline Widget
4
  Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
- Description: Adds a UserOnline Widget To Display Users Online From WP-UserOnline Plugin. Please Activate WP-UserOnline First.
6
- Version: 2.10
7
  Author: GaMerZ
8
  Author URI: http://www.lesterchan.net
9
  */
2
  /*
3
  Plugin Name: WP-UserOnline Widget
4
  Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
+ Description: Adds a UserOnline Widget to display users online from WP-UserOnline Plugin. You need to activate WP-UserOnline first.
6
+ Version: 2.11
7
  Author: GaMerZ
8
  Author URI: http://www.lesterchan.net
9
  */
useronline/useronline.php CHANGED
@@ -3,8 +3,8 @@
3
  Plugin Name: WP-UserOnline
4
  Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
  Description: Enable you to display how many users are online on your Wordpress blog with detailed statistics of where they are and who there are(Members/Guests/Search Bots).
6
- Version: 2.10
7
- Author: GaMerZ
8
  Author URI: http://www.lesterchan.net
9
  */
10
 
@@ -57,10 +57,10 @@ function useronline_menu() {
57
  ### Function: Displays UserOnline Header
58
  add_action('wp_head', 'useronline_header');
59
  function useronline_header() {
60
- echo "\n".'<!-- Start Of Script Generated By WP-UserOnline 2.10 -->'."\n";
61
- wp_register_script('wp-useronline', '/wp-content/plugins/useronline/useronline-js.php', false, '2.10');
62
  wp_print_scripts(array('sack', 'wp-useronline'));
63
- echo '<!-- End Of Script Generated By WP-UserOnline 2.10 -->'."\n";
64
  }
65
 
66
 
@@ -75,9 +75,12 @@ function useronline() {
75
  $timeout = ($timestamp-$timeoutseconds);
76
  $ip = get_ipaddress();
77
  $url = addslashes(urlencode($_SERVER['REQUEST_URI']));
 
78
  $useragent = $_SERVER['HTTP_USER_AGENT'];
79
  $current_user = wp_get_current_user();
80
-
 
 
81
  // Check For Bot
82
  $bots = get_option('useronline_bots');
83
  foreach ($bots as $name => $lookfor) {
@@ -136,7 +139,7 @@ function useronline() {
136
  $delete_users = $wpdb->query("DELETE FROM $wpdb->useronline $where OR (timestamp < $timeout)");
137
 
138
  // Insert Users
139
- $insert_user = $wpdb->query("INSERT INTO $wpdb->useronline VALUES ('$timestamp', '$user_id', '$user_name', '$display_name', '$useragent', '$ip', '$make_page', '$url', '$type')");
140
 
141
  // Count Users Online
142
  $useronline = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->useronline"));
@@ -156,6 +159,7 @@ function useronline() {
156
  if(!function_exists('get_useronline')) {
157
  function get_useronline($user = '', $users = '', $display = true) {
158
  global $useronline;
 
159
  if(empty($user)) {
160
  $user = __('User', 'wp-useronline');
161
  }
@@ -166,10 +170,14 @@ if(!function_exists('get_useronline')) {
166
  // Display User Online
167
  if($display) {
168
  if($useronline > 1) {
169
- echo '<a href="'.$useronline_url.'"><strong>'.number_format($useronline).'</strong> '.$users.' '.__('Online', 'wp-useronline').'</a>'."\n";
170
  } else {
171
- echo '<a href="'.$useronline_url.'"><strong>'.$useronline.'</strong> '.$user.' '.__('Online', 'wp-useronline').'</a>'."\n";
172
  }
 
 
 
 
173
  } else {
174
  return number_format($useronline);
175
  }
@@ -192,18 +200,48 @@ if(!function_exists('get_most_useronline')) {
192
 
193
  ### Function: Display Max UserOnline Date
194
  if(!function_exists('get_most_useronline_date')) {
195
- function get_most_useronline_date($display = true, $date_format = 'jS F Y, H:i') {
196
  $most_useronline_timestamp = get_option('useronline_most_timestamp');
197
- $most_useronline_date = gmdate($date_format, $most_useronline_timestamp);
198
  if($display) {
199
  echo $most_useronline_date;
200
  } else {
201
- return$most_useronline_date;
202
  }
203
  }
204
  }
205
 
206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  ### Function: Display Users Browsing The Site
208
  function get_users_browsing_site($display = true) {
209
  global $wpdb;
@@ -411,14 +449,6 @@ function check_ip($ip) {
411
  }
412
 
413
 
414
- ### Function Check If User Is Online
415
- function is_online($user_login) {
416
- global $wpdb;
417
- $is_online = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->useronline WHERE username = '$user_login' LIMIT 1");
418
- return intval($is_online);
419
- }
420
-
421
-
422
  ### Function: Output User's Country Flag/Name
423
  function ip2nation_country($ip, $display_countryname = 0) {
424
  if(function_exists('wp_ozh_ip2nation')) {
@@ -453,7 +483,7 @@ function display_useronline() {
453
  }
454
 
455
 
456
- ### Function: Place Polls Archive In Content
457
  add_filter('the_content', 'place_useronlinepage', '7');
458
  function place_useronlinepage($content){
459
  $content = preg_replace( "/\[page_useronline\]/ise", "useronline_page()", $content);
@@ -487,15 +517,15 @@ function useronline_page() {
487
  foreach($usersonline as $useronline) {
488
  switch($useronline->type) {
489
  case 'member':
490
- $members[] = array('timestamp' => $useronline->timestamp, 'user_id' => $useronline->userid, 'user_name' => stripslashes($useronline->username), 'display_name' => stripslashes($useronline->displayname), 'user_agent' => stripslashes($useronline->useragent), 'ip' => $useronline->ip, 'location' => stripslashes($useronline->location), 'url' => $url_front.stripslashes(urldecode($useronline->url)));
491
  $total_members++;
492
  break;
493
  case 'guest':
494
- $guests[] = array('timestamp' => $useronline->timestamp, 'user_id' => $useronline->userid, 'user_name' => stripslashes($useronline->username), 'display_name' => stripslashes($useronline->displayname), 'user_agent' => stripslashes($useronline->useragent), 'ip' => $useronline->ip, 'location' => stripslashes($useronline->location), 'url' => $url_front.stripslashes(urldecode($useronline->url)));
495
  $total_guests++;
496
  break;
497
  case 'bot':
498
- $bots[] = array('timestamp' => $useronline->timestamp, 'user_id' => $useronline->userid, 'user_name' => stripslashes($useronline->username), 'display_name' => stripslashes($useronline->displayname), 'user_agent' => stripslashes($useronline->useragent), 'ip' => $useronline->ip, 'location' => stripslashes($useronline->location), 'url' => $url_front.stripslashes(urldecode($useronline->url)));
499
  $total_bots++;
500
  break;
501
  }
@@ -552,10 +582,14 @@ function useronline_page() {
552
  $no=1;
553
  if($members) {
554
  foreach($members as $member) {
 
 
 
 
555
  if($wp_stats) {
556
- $useronline_output .= '<p><strong>#'.$no.' - <a href="'.useronline_stats_page_link($member['display_name']).'">'.$member['display_name'].'</a></strong> '.ip2nation_country($member['ip']).check_ip($member['ip']).' '.__('on', 'wp-useronline').' '.gmdate('d.m.Y @ H:i', $member['timestamp']).'<br />'.$member['location'].' [<a href="'.$member['url'].'">'.__('url', 'wp-useronline').'</a>]</p>'."\n";
557
  } else {
558
- $useronline_output .= '<p><strong>#'.$no.' - '.$member['user_name'].'</strong> '.ip2nation_country($member['ip']).check_ip($member['ip']).' '.__('on', 'wp-useronline').' '.gmdate('d.m.Y @ H:i', $member['timestamp']).'<br />'.$member['location'].' [<a href="'.$member['url'].'">'.__('url', 'wp-useronline').'</a>]</p>'."\n";
559
  }
560
  $no++;
561
  }
@@ -568,10 +602,14 @@ function useronline_page() {
568
  $no=1;
569
  if($guests) {
570
  foreach($guests as $guest) {
 
 
 
 
571
  if($wp_stats) {
572
- $useronline_output .= '<p><strong>#'.$no.' - <a href="'.useronline_stats_page_link($guest['display_name']).'">'.$guest['display_name'].'</a></strong> '.ip2nation_country($guest['ip']).check_ip($guest['ip']).' '.__('on', 'wp-useronline').' '.gmdate('d.m.Y @ H:i', $guest['timestamp']).'<br />'.$guest['location'].' [<a href="'.$guest['url'].'">'.__('url', 'wp-useronline').'</a>]</p>'."\n";
573
  } else {
574
- $useronline_output .= '<p><strong>#'.$no.' - '.$guest['user_name'].'</strong> '.ip2nation_country($guest['ip']).check_ip($guest['ip']).' '.__('on', 'wp-useronline').' '.gmdate('d.m.Y @ H:i', $guest['timestamp']).'<br />'.$guest['location'].' [<a href="'.$guest['url'].'">'.__('url', 'wp-useronline').'</a>]</p>'."\n";
575
  }
576
  $no++;
577
  }
@@ -584,7 +622,7 @@ function useronline_page() {
584
  $no=1;
585
  if($bots) {
586
  foreach($bots as $bot) {
587
- $useronline_output .= '<p><strong>#'.$no.' - '.$bot['display_name'].'</strong> '.check_ip($bot['ip']).' '.__('on', 'wp-useronline').' '.gmdate('d.m.Y @ H:i', $bot['timestamp']).'<br />'.$bot['location'].' [<a href="'.$bot['url'].'">'.__('url', 'wp-useronline').'</a>]</p>'."\n";
588
  $no++;
589
  }
590
  }
@@ -647,14 +685,15 @@ function create_useronline_table() {
647
  $create_table = "CREATE TABLE $wpdb->useronline (".
648
  " timestamp int(15) NOT NULL default '0',".
649
  " userid int(10) NOT NULL default '0',".
650
- " username varchar(50) NOT NULL default '',".
651
  " displayname varchar(255) NOT NULL default '',".
652
  " useragent varchar(255) NOT NULL default '',".
653
  " ip varchar(40) NOT NULL default '',".
654
  " location varchar(255) NOT NULL default '',".
655
- " url varchar(255) NOT NULL default '',".
656
  " type enum('member','guest','bot') NOT NULL default 'guest',".
657
- " UNIQUE KEY useronline_id (timestamp,username,ip,useragent)) ENGINE=MyISAM;";
 
658
  maybe_create_table($wpdb->useronline, $create_table);
659
  // Add In Options
660
  add_option('useronline_most_users', 1, 'Most Users Ever Online Count');
3
  Plugin Name: WP-UserOnline
4
  Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
  Description: Enable you to display how many users are online on your Wordpress blog with detailed statistics of where they are and who there are(Members/Guests/Search Bots).
6
+ Version: 2.11
7
+ Author: Lester 'GaMerZ' Chan
8
  Author URI: http://www.lesterchan.net
9
  */
10
 
57
  ### Function: Displays UserOnline Header
58
  add_action('wp_head', 'useronline_header');
59
  function useronline_header() {
60
+ echo "\n".'<!-- Start Of Script Generated By WP-UserOnline 2.11 -->'."\n";
61
+ wp_register_script('wp-useronline', '/wp-content/plugins/useronline/useronline-js.php', false, '2.11');
62
  wp_print_scripts(array('sack', 'wp-useronline'));
63
+ echo '<!-- End Of Script Generated By WP-UserOnline 2.11 -->'."\n";
64
  }
65
 
66
 
75
  $timeout = ($timestamp-$timeoutseconds);
76
  $ip = get_ipaddress();
77
  $url = addslashes(urlencode($_SERVER['REQUEST_URI']));
78
+ $referral = '';
79
  $useragent = $_SERVER['HTTP_USER_AGENT'];
80
  $current_user = wp_get_current_user();
81
+ if(!empty($_SERVER['HTTP_REFERER'])) {
82
+ $referral = addslashes(urlencode($_SERVER['HTTP_REFERER']));
83
+ }
84
  // Check For Bot
85
  $bots = get_option('useronline_bots');
86
  foreach ($bots as $name => $lookfor) {
139
  $delete_users = $wpdb->query("DELETE FROM $wpdb->useronline $where OR (timestamp < $timeout)");
140
 
141
  // Insert Users
142
+ $insert_user = $wpdb->query("INSERT INTO $wpdb->useronline VALUES ('$timestamp', '$user_id', '$user_name', '$display_name', '$useragent', '$ip', '$make_page', '$url', '$type', '$referral')");
143
 
144
  // Count Users Online
145
  $useronline = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->useronline"));
159
  if(!function_exists('get_useronline')) {
160
  function get_useronline($user = '', $users = '', $display = true) {
161
  global $useronline;
162
+ $output = '';
163
  if(empty($user)) {
164
  $user = __('User', 'wp-useronline');
165
  }
170
  // Display User Online
171
  if($display) {
172
  if($useronline > 1) {
173
+ $output = '<a href="'.$useronline_url.'"><strong>'.number_format($useronline).'</strong> '.$users.' '.__('Online', 'wp-useronline').'</a>'."\n";
174
  } else {
175
+ $output = '<a href="'.$useronline_url.'"><strong>'.$useronline.'</strong> '.$user.' '.__('Online', 'wp-useronline').'</a>'."\n";
176
  }
177
+ if(empty($useronline_url)) {
178
+ $output = strip_tags($output, '<strong>');
179
+ }
180
+ echo $output;
181
  } else {
182
  return number_format($useronline);
183
  }
200
 
201
  ### Function: Display Max UserOnline Date
202
  if(!function_exists('get_most_useronline_date')) {
203
+ function get_most_useronline_date($display = true) {
204
  $most_useronline_timestamp = get_option('useronline_most_timestamp');
205
+ $most_useronline_date = gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $most_useronline_timestamp);
206
  if($display) {
207
  echo $most_useronline_date;
208
  } else {
209
+ return $most_useronline_date;
210
  }
211
  }
212
  }
213
 
214
 
215
+ ### Function Check If User Is Online
216
+ function is_online($user_login) {
217
+ global $wpdb;
218
+ $is_online = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->useronline WHERE username = '$user_login' LIMIT 1");
219
+ return intval($is_online);
220
+ }
221
+
222
+
223
+
224
+ ### Function: Update Member last Visit
225
+ //add_action('wp_head', 'update_memberlastvisit');
226
+ function update_memberlastvisit() {
227
+ global $current_user, $user_ID;
228
+ if(!empty($current_user) && intval($user_ID) > 0) {
229
+ update_user_option($user_ID, 'member_last_login', current_time('timestamp'));
230
+ }
231
+ }
232
+
233
+
234
+ ### Function: Get Member last Visit
235
+ function get_memberlastvisit($user_id = 0) {
236
+ $date_format = sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format'));
237
+ if($user_id == 0) {
238
+ return gmdate($date_format, get_user_option('member_last_login'));
239
+ } else {
240
+ return gmdate($date_format, get_user_option('member_last_login',$user_id));
241
+ }
242
+ }
243
+
244
+
245
  ### Function: Display Users Browsing The Site
246
  function get_users_browsing_site($display = true) {
247
  global $wpdb;
449
  }
450
 
451
 
 
 
 
 
 
 
 
 
452
  ### Function: Output User's Country Flag/Name
453
  function ip2nation_country($ip, $display_countryname = 0) {
454
  if(function_exists('wp_ozh_ip2nation')) {
483
  }
484
 
485
 
486
+ ### Function: Place Useronline In Content
487
  add_filter('the_content', 'place_useronlinepage', '7');
488
  function place_useronlinepage($content){
489
  $content = preg_replace( "/\[page_useronline\]/ise", "useronline_page()", $content);
517
  foreach($usersonline as $useronline) {
518
  switch($useronline->type) {
519
  case 'member':
520
+ $members[] = array('timestamp' => $useronline->timestamp, 'user_id' => $useronline->userid, 'user_name' => stripslashes($useronline->username), 'display_name' => stripslashes($useronline->displayname), 'user_agent' => stripslashes($useronline->useragent), 'ip' => $useronline->ip, 'location' => stripslashes($useronline->location), 'url' => $url_front.stripslashes(urldecode($useronline->url)), 'referral' => stripslashes(urldecode($useronline->referral)));
521
  $total_members++;
522
  break;
523
  case 'guest':
524
+ $guests[] = array('timestamp' => $useronline->timestamp, 'user_id' => $useronline->userid, 'user_name' => stripslashes($useronline->username), 'display_name' => stripslashes($useronline->displayname), 'user_agent' => stripslashes($useronline->useragent), 'ip' => $useronline->ip, 'location' => stripslashes($useronline->location), 'url' => $url_front.stripslashes(urldecode($useronline->url)), 'referral' => stripslashes(urldecode($useronline->referral)));
525
  $total_guests++;
526
  break;
527
  case 'bot':
528
+ $bots[] = array('timestamp' => $useronline->timestamp, 'user_id' => $useronline->userid, 'user_name' => stripslashes($useronline->username), 'display_name' => stripslashes($useronline->displayname), 'user_agent' => stripslashes($useronline->useragent), 'ip' => $useronline->ip, 'location' => stripslashes($useronline->location), 'url' => $url_front.stripslashes(urldecode($useronline->url)), 'referral' => stripslashes(urldecode($useronline->referral)));
529
  $total_bots++;
530
  break;
531
  }
582
  $no=1;
583
  if($members) {
584
  foreach($members as $member) {
585
+ $referral_output = '';
586
+ if(!empty($member['referral'])) {
587
+ $referral_output = ' [<a href="'.$member['referral'].'">'.__('referral', 'wp-useronline').'</a>]';
588
+ }
589
  if($wp_stats) {
590
+ $useronline_output .= '<p><strong>#'.$no.' - <a href="'.useronline_stats_page_link($member['display_name']).'">'.$member['display_name'].'</a></strong> '.ip2nation_country($member['ip']).check_ip($member['ip']).' '.__('on', 'wp-useronline').' '.gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $member['timestamp']).'<br />'.$member['location'].' [<a href="'.$member['url'].'">'.__('url', 'wp-useronline').'</a>]'.$referral_output.'</p>'."\n";
591
  } else {
592
+ $useronline_output .= '<p><strong>#'.$no.' - '.$member['user_name'].'</strong> '.ip2nation_country($member['ip']).check_ip($member['ip']).' '.__('on', 'wp-useronline').' '.gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $member['timestamp']).'<br />'.$member['location'].' [<a href="'.$member['url'].'">'.__('url', 'wp-useronline').'</a>]'.$referral_output.'</p>'."\n";
593
  }
594
  $no++;
595
  }
602
  $no=1;
603
  if($guests) {
604
  foreach($guests as $guest) {
605
+ $referral_output = '';
606
+ if(!empty($member['referral'])) {
607
+ $referral_output = '[<a href="'.$guest['referral'].'">'.__('referral', 'wp-useronline').'</a>]';
608
+ }
609
  if($wp_stats) {
610
+ $useronline_output .= '<p><strong>#'.$no.' - <a href="'.useronline_stats_page_link($guest['display_name']).'">'.$guest['display_name'].'</a></strong> '.ip2nation_country($guest['ip']).check_ip($guest['ip']).' '.__('on', 'wp-useronline').' '.gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $guest['timestamp']).'<br />'.$guest['location'].' [<a href="'.$guest['url'].'">'.__('url', 'wp-useronline').'</a>]'.$referral_output.'</p>'."\n";
611
  } else {
612
+ $useronline_output .= '<p><strong>#'.$no.' - '.$guest['user_name'].'</strong> '.ip2nation_country($guest['ip']).check_ip($guest['ip']).' '.__('on', 'wp-useronline').' '.gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $guest['timestamp']).'<br />'.$guest['location'].' [<a href="'.$guest['url'].'">'.__('url', 'wp-useronline').'</a>]'.$referral_output.'</p>'."\n";
613
  }
614
  $no++;
615
  }
622
  $no=1;
623
  if($bots) {
624
  foreach($bots as $bot) {
625
+ $useronline_output .= '<p><strong>#'.$no.' - '.$bot['display_name'].'</strong> '.check_ip($bot['ip']).' '.__('on', 'wp-useronline').' '.gmdate(sprintf(__('%s @ %s', 'wp-useronline'), get_option('date_format'), get_option('time_format')), $bot['timestamp']).'<br />'.$bot['location'].' [<a href="'.$bot['url'].'">'.__('url', 'wp-useronline').'</a>]</p>'."\n";
626
  $no++;
627
  }
628
  }
685
  $create_table = "CREATE TABLE $wpdb->useronline (".
686
  " timestamp int(15) NOT NULL default '0',".
687
  " userid int(10) NOT NULL default '0',".
688
+ " username varchar(20) NOT NULL default '',".
689
  " displayname varchar(255) NOT NULL default '',".
690
  " useragent varchar(255) NOT NULL default '',".
691
  " ip varchar(40) NOT NULL default '',".
692
  " location varchar(255) NOT NULL default '',".
693
+ " url varchar(255) NOT NULL default '',".
694
  " type enum('member','guest','bot') NOT NULL default 'guest',".
695
+ " referral varchar(255) NOT NULL default '',".
696
+ " UNIQUE KEY useronline_id (timestamp,username,ip,useragent));";
697
  maybe_create_table($wpdb->useronline, $create_table);
698
  // Add In Options
699
  add_option('useronline_most_users', 1, 'Most Users Ever Online Count');
useronline/wp-useronline.mo ADDED
Binary file
useronline/wp-useronline.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-UserOnline 2.10\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-01-27 15:08+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -52,7 +52,7 @@ msgid "UserOnline URL"
52
  msgstr ""
53
 
54
  #: useronline-options.php:85
55
- msgid "URL To UserOnline Page<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2"
56
  msgstr ""
57
 
58
  #: useronline-options.php:89
@@ -99,123 +99,139 @@ msgstr ""
99
  msgid "Useronline"
100
  msgstr ""
101
 
102
- #: useronline.php:108
103
  msgid "guest"
104
  msgstr ""
105
 
106
- #: useronline.php:114
107
- #: useronline.php:255
108
- #: useronline.php:354
109
- #: useronline.php:523
110
  msgid "Guest"
111
  msgstr ""
112
 
113
- #: useronline.php:129
114
  msgid "Blog Archive"
115
  msgstr ""
116
 
117
- #: useronline.php:160
118
- #: useronline.php:508
119
  msgid "User"
120
  msgstr ""
121
 
122
- #: useronline.php:163
123
- #: useronline.php:286
124
- #: useronline.php:510
125
  msgid "Users"
126
  msgstr ""
127
 
128
- #: useronline.php:169
129
- #: useronline.php:171
130
  msgid "Online"
131
  msgstr ""
132
 
133
- #: useronline.php:257
134
- #: useronline.php:356
135
- #: useronline.php:525
 
 
 
 
 
 
 
 
 
 
 
136
  msgid "Guests"
137
  msgstr ""
138
 
139
- #: useronline.php:261
140
- #: useronline.php:360
141
- #: useronline.php:530
142
  msgid "Bot"
143
  msgstr ""
144
 
145
- #: useronline.php:263
146
- #: useronline.php:362
147
- #: useronline.php:532
148
  msgid "Bots"
149
  msgstr ""
150
 
151
- #: useronline.php:289
152
  msgid "No User Is Browsing This Site"
153
  msgstr ""
154
 
155
- #: useronline.php:348
156
- #: useronline.php:515
157
  msgid "Member"
158
  msgstr ""
159
 
160
- #: useronline.php:350
161
- #: useronline.php:377
162
- #: useronline.php:517
163
  msgid "Members"
164
  msgstr ""
165
 
166
- #: useronline.php:366
167
  msgid "Users Browsing This Page"
168
  msgstr ""
169
 
170
- #: useronline.php:366
171
- #: useronline.php:546
172
  msgid "and"
173
  msgstr ""
174
 
175
- #: useronline.php:381
176
  msgid "No User Is Browsing This Page"
177
  msgstr ""
178
 
179
- #: useronline.php:542
180
  msgid "There is"
181
  msgstr ""
182
 
183
- #: useronline.php:544
184
  msgid "There are a total of"
185
  msgstr ""
186
 
187
- #: useronline.php:546
188
  msgid "online now"
189
  msgstr ""
190
 
191
- #: useronline.php:547
192
  msgid "Most users ever online were"
193
  msgstr ""
194
 
195
- #: useronline.php:547
196
- #: useronline.php:556
197
- #: useronline.php:558
198
- #: useronline.php:572
199
- #: useronline.php:574
200
- #: useronline.php:587
201
  msgid "on"
202
  msgstr ""
203
 
204
- #: useronline.php:550
205
- #: useronline.php:566
206
- #: useronline.php:582
207
  msgid "Online Now"
208
  msgstr ""
209
 
210
- #: useronline.php:556
211
- #: useronline.php:558
212
- #: useronline.php:572
213
- #: useronline.php:574
214
  #: useronline.php:587
 
 
 
 
 
 
 
 
 
215
  msgid "url"
216
  msgstr ""
217
 
218
- #: useronline.php:594
219
  msgid "No One Is Online Now"
220
  msgstr ""
221
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-UserOnline 2.11\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-05-31 19:48+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
8
  "MIME-Version: 1.0\n"
52
  msgstr ""
53
 
54
  #: useronline-options.php:85
55
+ msgid "URL To UserOnline Page (leave blank if you do not want to link it to the UserOnline Page)<br />Example: http://www.yoursite.com/blogs/useronline/<br />Example: http://www.yoursite.com/blogs/?page_id=2"
56
  msgstr ""
57
 
58
  #: useronline-options.php:89
99
  msgid "Useronline"
100
  msgstr ""
101
 
102
+ #: useronline.php:111
103
  msgid "guest"
104
  msgstr ""
105
 
106
+ #: useronline.php:117
107
+ #: useronline.php:293
108
+ #: useronline.php:392
109
+ #: useronline.php:553
110
  msgid "Guest"
111
  msgstr ""
112
 
113
+ #: useronline.php:132
114
  msgid "Blog Archive"
115
  msgstr ""
116
 
117
+ #: useronline.php:164
118
+ #: useronline.php:538
119
  msgid "User"
120
  msgstr ""
121
 
122
+ #: useronline.php:167
123
+ #: useronline.php:324
124
+ #: useronline.php:540
125
  msgid "Users"
126
  msgstr ""
127
 
128
+ #: useronline.php:173
129
+ #: useronline.php:175
130
  msgid "Online"
131
  msgstr ""
132
 
133
+ #: useronline.php:205
134
+ #: useronline.php:236
135
+ #: useronline.php:590
136
+ #: useronline.php:592
137
+ #: useronline.php:610
138
+ #: useronline.php:612
139
+ #: useronline.php:625
140
+ #, php-format
141
+ msgid "%s @ %s"
142
+ msgstr ""
143
+
144
+ #: useronline.php:295
145
+ #: useronline.php:394
146
+ #: useronline.php:555
147
  msgid "Guests"
148
  msgstr ""
149
 
150
+ #: useronline.php:299
151
+ #: useronline.php:398
152
+ #: useronline.php:560
153
  msgid "Bot"
154
  msgstr ""
155
 
156
+ #: useronline.php:301
157
+ #: useronline.php:400
158
+ #: useronline.php:562
159
  msgid "Bots"
160
  msgstr ""
161
 
162
+ #: useronline.php:327
163
  msgid "No User Is Browsing This Site"
164
  msgstr ""
165
 
166
+ #: useronline.php:386
167
+ #: useronline.php:545
168
  msgid "Member"
169
  msgstr ""
170
 
171
+ #: useronline.php:388
172
+ #: useronline.php:415
173
+ #: useronline.php:547
174
  msgid "Members"
175
  msgstr ""
176
 
177
+ #: useronline.php:404
178
  msgid "Users Browsing This Page"
179
  msgstr ""
180
 
181
+ #: useronline.php:404
182
+ #: useronline.php:576
183
  msgid "and"
184
  msgstr ""
185
 
186
+ #: useronline.php:419
187
  msgid "No User Is Browsing This Page"
188
  msgstr ""
189
 
190
+ #: useronline.php:572
191
  msgid "There is"
192
  msgstr ""
193
 
194
+ #: useronline.php:574
195
  msgid "There are a total of"
196
  msgstr ""
197
 
198
+ #: useronline.php:576
199
  msgid "online now"
200
  msgstr ""
201
 
202
+ #: useronline.php:577
203
  msgid "Most users ever online were"
204
  msgstr ""
205
 
206
+ #: useronline.php:577
207
+ #: useronline.php:590
208
+ #: useronline.php:592
209
+ #: useronline.php:610
210
+ #: useronline.php:612
211
+ #: useronline.php:625
212
  msgid "on"
213
  msgstr ""
214
 
215
+ #: useronline.php:580
216
+ #: useronline.php:600
217
+ #: useronline.php:620
218
  msgid "Online Now"
219
  msgstr ""
220
 
 
 
 
 
221
  #: useronline.php:587
222
+ #: useronline.php:607
223
+ msgid "referral"
224
+ msgstr ""
225
+
226
+ #: useronline.php:590
227
+ #: useronline.php:592
228
+ #: useronline.php:610
229
+ #: useronline.php:612
230
+ #: useronline.php:625
231
  msgid "url"
232
  msgstr ""
233
 
234
+ #: useronline.php:632
235
  msgid "No One Is Online Now"
236
  msgstr ""
237