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:

  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/

Bookmark and Share

Responses

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

  2. Glenn says:

    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.

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

  5. inputx says:

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

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

  6. Zhaval says:

    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!

  7. JohnP says:

    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

  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 10: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 10:39 am (#)

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

  13. knokenet says:

    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

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

Leave a Response