Description
The plugin helps you to track any visitor\’s login details with the following attributes:
- Login – Login Date-Time
- Logout – Logout Date-Time
- Last Seen – Last Seen Date-Time
- Login Status – Logged in/Logged out/Failed/Blocked
- Online Status – Online/Offline/Idle
- Session Duration – How long the user stayed on your website per session.
- User ID
- Username
- Current Role
- Old Role – The role while user gets logged in into your website.
- Browser
- Operating System
- IP Address
- Country Name and Country Code (Based on IP Address)
- Timezone (Based on IP Address)
Some More Useful Features
- Preferable Timezone (Depreciated since 2.0.0) – You can select your preferred timezone to be used for the listing table.
- Shortcode – The plugin comes with a customizable shortcode that you can use in your template or content to view the login history of current logged in user only.
- Multisite Network – On the network admin area, you can see the listing table which shows all the records fetched from all the blogs of the current network.
- Advanced Search Filter
- CSV Export
Compatible With
- WooCommerce
- BuddyPress
- UserPro
- Ultimate Member
- Loginizer
- Theme My Login
- Admin Custom Login
- Login No Captcha reCAPTCHA
- Force Login
- WPS Hide Login
Translations
Currently, this plugin is available in the following two languages i.e.
- English
- Italian
You can download the language files from here.
Do you want to translate this plugin to another language?
I recommend using POEdit or if you prefer to do it straight from the WordPress admin interface use Loco Translate.
When you’re done, post your file on this issue.
.
You can also translate the plugin online.
How to use the plugin?
-
To see all the tracked records in admin, click on the plugin menu shown in the left sidebar.
-
To see all the tracked records of current logged in users in frontend, use the following shortcode:
Basic Usage of Shortcode:
In your template file:
<?php echo do_shortcode('[user_login_history]'); ?>
In your content:
[user_login_history]
Advanced Usage of Shortcode:
In your template file:
<?php echo do_shortcode("[user_login_history limit='20' reset_link='custom-uri' columns='ip_address,time_login' date_format='Y-m-d' time_format='H:i:s']"); ?>
In your content:
[user_login_history limit='20' reset_link='custom-uri' columns='ip_address,time_login' date_format='Y-m-d' time_format='H:i:s']
Shortcode Parameters
Here is the list of all the parameters that you can use in the shortcode. All the parameters are optional.
-
title – Title of the listing table. Default is: empty string
-
limit – Number of records per page. Default is: 20
-
reset_link – Custom URI of the listing page. For the input “my-login-history”, it will render a reset link with the following URL:
www.example.com/my-login-history
Default is the full permalink of the current post or page. -
date_format – A valid date format. Default is:
Y-m-d
-
time_format – A valid time format. Default is:
H:i:s
-
show_timezone_selector – Whether you want to show timezone selector or not. Any value other than “true” will be treated as “false”. Default is:
true -
columns – List of column keys used to render columns on the listing table. Default keys are:
operating_system, browser, time_login, time_logout
-
Available Column Keys:
user_id, username, role, old_role, ip_address, country_name, browser, operating_system, timezone, user_agent, duration, time_last_seen, time_login, time_logout, login_status
Geo Tracking
The plugin uses a free third party service to detect country and timezone based on IP address. Many projects are using this free service due to which sometimes the server of the service provider becomes slow. This may affect the login functionality of your website. Hence it is recommended that you do not enable this functionallity unless you have paid service or reliable service. If you have a paid service, you can contact us to integrate it.
Login Statuses
-
Logged in – If user gets logged in successfully.
-
Logged out – If user clicks on logout button and gets logged out successfully.
-
Failed – If user enters invalid credentials.
-
Blocked – This is used for multisite network. By default, a user can login to any blog and then wordpress redirects to the blog on which the user is associated. The plugin saves login info at the blog on which the user logged in but cannot not save the information of the blog on which wordpress redirects the user. You can prevent this behavior by using the plugin setting.
-
Unknown – Since we have added a new column “Login Status” in the version 1.7.0, its value will be empty in the database table after upgrading to 1.7.0. To filter such records, you can use this status.
Note – In case, a user logs in with “Remember Me” and then closes his browser without doing logout, it will show the login status as “Logged in”.
Bug Fixes
If you find any bug, please create a topic with a step by step description to reproduce the bug.
Please search the forum before creating a new topic.
Keywords
user log, log, logger, detector, tracker, membership,
register, sign up, admin, subscriber, editor, contributor, geo location,
profile, front end registration, manager, report, statistics, activity, user role editor
Screenshots
User login list table for backend Screen options to customize the user login list table Advanced search form to filter the records of user logins Settings - Basics settings Settings - Advanced settings Settings - Preferred timezone setting on user profile page Shortcode - User login list table for frontend
Installation
- Upload the plugin files to the
/wp-content/plugins/user-login-history
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- (Optional) Use the Settings->User Login History screen to configure the plugin.
FAQ
-
Can this plugin track the info of guest users?
-
No.
-
Is it compatible with WordPress multisite network?
-
Yes.
-
Where to see login list in admin?
-
After activating the plugin, just re-login and then click on “User Login History” menu on the left sidebar to see the login list.
-
What does the setting “online/idle minutes” actually do?
-
There is a “Last Seen” column in the admin listing page.
There you will see a circle with different colors:
red is for offline users
grey is for idle users
green is for online usersYou can change its settings.
The default setting is as follows:
online: 2 min
idle: 30 minIt means that:
1)the column “last seen” will show green color for the users who are active for 0-2 minutes.
2)the column “last seen” will show grey color for the users who are inactive for 2-30 minutes.
3)the column “last seen” will show red color for the users who are inactive for at-least 30 minutes.
Reviews
Contributors & Developers
“User Login History” is open source software. The following people have contributed to this plugin.
Contributors“User Login History” has been translated into 2 locales. Thank you to the translators for their contributions.
Translate “User Login History” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.0.0 (10th June 2020)
- Improved UI/UX of the listing table in admin panel.
- Code refactoring.
- Minor bugs fixes.
1.7.4(3rd April, 2020)
- Fixed some permission issue on dashboard menu
- Implemented horizontal scroll bar on the listing table in backend
- Replaced role key with role name on the listing table
1.7.3(25th August, 2019)
- Fixed index size limit issue
1.7.2(18th August, 2019)
- Fixed some performance issues
1.7.1(16th March, 2019)
- Fixed SQL bug in order by clause
1.7.0(4th June, 2018)
- Compatible with Multisite Network – Now this plugin supports WordPress Multisite with multi-networks and multi-blogs.
- Added the column Login Status – This is used to check whether the user is logged in, logged out, failed login or blocked login.
- Added the option Last Seen Time in the filter forms.
- Added the column Super Admin – This is used only for multisite network.
- Deprecated the shortcode [user-login-history].
- Added new shortcode [user_login_history] with customizable parameters.
- Date range validation on the filter forms.
- Date and Time format of the user login listing table can be changed from the general settings.
- Improved design of the listing tables.