Log User Access
By Glenn | February 12th, 2009 | Published in Projects, WordPress Plugins | 14 Comments
Description:
This plugin logs the username and the date/time of every WordPress login. Records are displayed in the ‘Users’ menu item. The plugin is released as a minimal project and will require user feedback for future development / added functionality.
Installation:
- Upload
log-user-accessdirectory to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Navigate to the Users menu in your sidebar and select “User Access Log” to view / clear your report.
Download:
February 16th, 2009 at 6:17 am (#)
A beautiful plugin.
A idea (if it’s possible) can be send email to admin when user login.
February 16th, 2009 at 9:44 am (#)
That’s a great idea Marco. I’ll add it as an option along with logging IP addresses to the next version.
March 5th, 2009 at 10:25 pm (#)
Glenn, e-mail sending will be great.
Something like “Time/Date, Nickname, Name(from wp db), and Email” of a user.
March 23rd, 2009 at 10:46 am (#)
Nice plugin
Maybe you can extend it in this way, that the admin of a blog can activate or deactivate logging of logins on a per user basis.
BR
Mr. Bruce
April 1st, 2009 at 7:52 am (#)
nice plugin, but, how about show login user ip address?
April 6th, 2009 at 3:59 am (#)
Would logging all user activity be much more trouble? There is a plugin (Admin Log) that supposedly does the job but does not work properly. Thanks and continue the good work!
May 19th, 2009 at 5:00 am (#)
I’m logging usernames OK, but the dates are all random days in Feb or March 2013 and the times are all exactly on an hour eg: 12.00.00
May 21st, 2009 at 10:35 am (#)
Great ideas, everyone. Look for an update before the end of June.
May 23rd, 2009 at 6:07 pm (#)
I got the wrong date and times too.
May 23rd, 2009 at 6:53 pm (#)
@snoogly
The plugin takes the date from your server’s time.
In the next release I’ll pull in the settings you give WordPress in the admin panel for timezone.
June 10th, 2009 at 10:58 am (#)
Nice plug-in!
Is it possible to log at least the pages changed by the user, not necessarily the changes made?
July 11th, 2009 at 10:39 am (#)
Thanks so much for a simple, yet useful plugin. It’s just what I needed.
January 2nd, 2010 at 12:03 pm (#)
Hi,
To email admin when a user logs in I’ve added on line 162, just after:
$wpdb->query($sql);
Add:
$message .= __(’Username: ‘) . $wpdb->prepare($username) . “\r\n”;
@wp_mail(get_option(’admin_email’), sprintf(__(’Login Detected’), get_option(’blogname’)), $message);
I’m not a PHP wizard, so I don’t know if that’s the best way to code it, but it works for me.
Didn’t know how to add a time stamp, so if anyone can add this, that would be great.
Cheers!
Knokenet
February 3rd, 2010 at 9:23 am (#)
Plug-in works great.
A couple suggestions:
-Show total number of logins by a user
-Offer option to list by user instead of date: I’m thinking just a list of all users, how many times they have logged in and when their most recent login was.