WP-UserOnline

Description

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).

Utilisation (avec widget)

  1. Go to WP-Admin -> Appearance -> Widgets
  2. Le nom du widget est UserOnline.
  3. Scroll down for instructions on how to create a Page UserOnline.

Utilisation (sans widget)

  • Open wp-content/themes/<YOUR THEME NAME>/sidebar.php and add Anywhere:
<?php if (function_exists('users_online')): ?>
    <p>Users online: <div id="useronline-count"><?php users_online(); ?></div></p>
<?php endif; ?>

Développement

https://github.com/lesterchan/wp-useronline

Crédits

Dons

J’ai passé beaucoup de mon temps libre à la création, mise à jour, et support de cette extension. Si vous aimez et pouviez me donner quelques dollars, cela serait appréciable. Si ce n’est pas le cas, n’hésitez pas à l’utiliser sans aucune obligation.

Captures d’écran

  • Admin - Le tableau de bord est maintenant correct
  • Page UserOnline
  • Admin - Page Réglages

FAQ

Creating A UserOnline Page

  1. Go to WP-Admin -> Pages -> Add New
  2. Saisissez le titre de votre choix dans la zone de titre du message
  3. If you ARE using nice permalinks, after typing the title, WordPress will generate the permalink to the page. You will see an ‘Edit’ link just beside the permalink.
  4. Click ‘Edit’ and type in useronline in the text field and click ‘Save’.
  5. Type [page_useronline] in the post’s content area
  6. Click ‘Publish’

If you ARE NOT using nice permalinks, you need to go to WP-Admin -> Settings -> UserOnline and under ‘UserOnline URL’, you need to fill in the URL to the UserOnline Page you created above.

To Display Most Number Of Users Online

  • Utilisation :
<?php if (function_exists('get_most_users_online')): ?>
   <p>Most Users Ever Online Is <?php echo get_most_users_online(); ?> On <?php echo get_most_users_online_date(); ?></p>
<?php endif; ?>

Pour afficher les utilisateurs naviguant sur le site

  • Utilisation :
<?php if (function_exists('get_users_browsing_site')): ?>
   <div id="useronline-browsing-site"><?php echo get_users_browsing_site(); ?></div>
<?php endif; ?>

To Display Users Browsing A Page

  • Utilisation :
<?php if (function_exists('get_users_browsing_page')): ?>
   <div id="useronline-browsing-page"><?php echo get_users_browsing_page(); ?></div>
<?php endif; ?>

Error on activation: « Parse error: syntax error, unexpected… »

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):

var_dump(PHP_VERSION);

Avis

9 mai 2023
Installed, activated widget, and the Divi Theme broke. Widget not shown on front end I'm looking everywhere for at widget or anything to display live users on my site. The internet is almost comlpetely empty on the subject. Was standard in HTML ffrom the early beginnings of the internet. Please fix, and I'll rate anew.
11 août 2021
This is exactly what I was looking for. Quick and simple way to see if there are users connected. No complicated setup, no 3rd party accounts needed. All in the Backend. Perfect
18 mai 2021
I install this plugin on all the sites I set up, so that I can get a quick view if anyone is online before I put each site into maintenance for updates. A simple function, but works well.
Lire les 37 avis

Contributeurs/contributrices & développeurs/développeuses

« WP-UserOnline » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“WP-UserOnline” a été traduit dans 18 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « WP-UserOnline » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

2.88.3

  • FIXED: Strip all tags before inserting data into the DB.

2.88.2

  • FIXED: Fixed XS. Props Alex.

2.88.1

  • FIXED: Fixed XSS. Props Juampa Rodriguez.

2.88.0

  • NEW: Bump to WordPress 6.0.
  • FIXED: Fixed XSS. Props @steffinstanly.

2.85.6

  • NEW: Bump to WordPress 5.6
  • NEW: Added more bots
  • NEW: Remove hardcoded Archive text in page title
  • FIXED: Update SCB Framework to support PHP 8

2.85.5

  • NEW: Bump to WordPress 5.4
  • NEW: Added more bots

2.87.4

  • NEW: Bump to WordPress 5.3
  • NEW: Added more bots
  • FIXED: Update SCB Framework To Remove contextual_help

2.87.3

  • FIXED: Duplicated Settings Saved admin_notices
  • FIXED: Missing arrow
  • FIXED: Updated bots list

2.87.2

  • NEW: Bump to 4.9
  • FIXED: Notices in SCB Framework

2.87.1

  • NEW: Bump to 4.7
  • NEW: New useronline_custom_template filter

2.87

  • NEW: Remove po/mo files from the plugin
  • NEW: Use translate.wordpress.org to translate the plugin
  • FIXED: Update SCB Framework
  • FIXED: Incompatible scbAdminPage::validate()

2.86

  • FIXED: Notices in Widget Constructor for WordPress 4.3

2.85

  • NEW: Uses WordPress native uninstall.php

2.84

  • NEW: Bump to 4.0

2.83

  • Show user agent when hovering over IP, instead of address lookup
  • Use local time for UserOnline Page
  • Fixed ‘Strict Standards: Non-static method’ warnings
  • Mettre à jour le framework scb

2.82

  • afficher les visiteurs les plus récents en premier
  • corriger les erreurs de doublons de saisie
  • corriger les requêtes ajax pour SSL

2.81

  • page des paramètres corrigés
  • boutons « Retour à la valeur par défaut » corrigés
  • show user list in admin only to users with ‘manage_options’ capability
  • added ‘useronline_bots’ filter

2.80

  • don’t show url and referral links for users in the admin area
  • détection plus intelligente via requêtes ajax
  • corrige des erreurs SQL

2.72

  • corrige une erreur fatale lors de la mise à niveau

2.71

  • corrige le problème de % USERONLINE_COUNT%

2.70

  • added option to link user names to their author page
  • allow displaying online users from a different page than the current page
  • regrouper les fichiers de langue
  • more info

2.62 (2010-03-07)

  • fix integration with WP-Stats
  • fix error with get_admin_page_title()