Log User Access

By Glenn Ansley  |  February 12th, 2009  |  Published in WordPress Plugins  |  20 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:

  1. Upload log-user-access directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to the Users menu in your sidebar and select “User Access Log” to view / clear your report.

Download:

http://wordpress.org/extend/plugins/log-user-access/

Responses

  1. Glenn says:

    February 16th, 2009 at 5:44 am (#)

    That's a great idea Marco. I'll add it as an option along with logging IP addresses to the next version.

  2. Marco says:

    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.

  3. Ant1Xr1st says:

    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.

  4. Mr. Bruce says:

    March 23rd, 2009 at 6: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

  5. inputx says:

    April 1st, 2009 at 3:52 am (#)

    nice plugin, but, how about show login user ip address?

  6. Zhaval says:

    April 5th, 2009 at 11:59 pm (#)

    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!

  7. JohnP says:

    May 19th, 2009 at 1: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

  8. Glenn says:

    May 21st, 2009 at 10:35 am (#)

    Great ideas, everyone. Look for an update before the end of June.

  9. snoogly says:

    May 23rd, 2009 at 6:07 pm (#)

    I got the wrong date and times too.

  10. Glenn says:

    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.

  11. Jeff says:

    June 10th, 2009 at 6:58 am (#)

    Nice plug-in!

    Is it possible to log at least the pages changed by the user, not necessarily the changes made?

  12. Kelly says:

    July 11th, 2009 at 6:39 am (#)

    Thanks so much for a simple, yet useful plugin. It's just what I needed.

  13. Martin says:

    November 23rd, 2009 at 5:33 pm (#)

    hi, can u make possible to log unsuccessful login attemps?

  14. enjoyfrancis says:

    December 6th, 2009 at 6:42 pm (#)

    Is it possible to display the login count of a user?

  15. knokenet says:

    January 2nd, 2010 at 8:03 am (#)

    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) . "
    ";
    @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

  16. rootEth says:

    January 6th, 2010 at 2:51 pm (#)

    Note that the above post won't copy and paste as php has tried to use the strong and table tags

  17. sterr says:

    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.

  18. SFGolfer says:

    April 15th, 2010 at 5:33 am (#)

    The user logs can be accessed by an Author who can also delete the entries. Need to restrict this to Administrators only.

    Is there a new release coming?

  19. lotht says:

    August 26th, 2010 at 3:14 pm (#)

    Hi, this is great, almost exactly what I was looking for.

    Is there any development in progress?

    I'd appreciate at least the IP address logging and a count of logins per user.

    Thanks, Tamás

  20. Glenn Ansley says:

    September 22nd, 2010 at 4:26 am (#)

    @SFGolfer – I have one in the works but have to tend to paying customers first. Not sure how long it will be until release.

Leave a Response