WordPress.org

Ready to get started?Download WordPress

Forums

Simple Login Log
Feature Suggestion (8 posts)

  1. Vezado
    Member
    Posted 2 years ago #

    It would be nice to have a feature to allow the ip addresses shown in the log to be clickable URLs. Along the top of the page with the "View" and "User Filter" you could add a IP URL field, with "OFF" (current behavior) or "Enter URL" selector, with a place for the URL variable, for example:

    I'd like to use:

    http://infosniper.net/index.php?ip_address=<IPADDRESS>&map_source=3&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=11

    So i could get results like this:

    209.85.175.147

    Full URL would not be shown in the table of course, just the IP

  2. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    Some one emailed me about a week ago asking to add geo-location tracking as well... this is something I'll look into, but right now I don't really want to hard-code anything... there are many resources that provide location by IP - some are free (but limited), others are commercial and could be more accurate. I thing it would be better to add a few hooks, so users could add their own geo-location services.

    On a side note - an update is on its way. I added a bunch of enhancements and I might add a couple of hooks, so you could achieve the functionality you described. I'll try to get it out today or in the next couple of days.

  3. Vezado
    Member
    Posted 2 years ago #

    I thing it would be better to add a few hooks, so users could add their own geo-location services.

    That's what I mean by the URL field, users can use any geolocation service they want provided they know the format used for the URL. I agree that hard coding it would be a bad idea.

  4. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    @Vezado - I have released an update where you can hook in and add your geo-location service. Take a look at the code example here http://wordpress.org/extend/plugins/simple-login-log/other_notes/

  5. Vezado
    Member
    Posted 2 years ago #

    Thanks for you effort, but it's not clear to me how to use this, my PHP skills are limited. Also, the new version seems to have removed all the user agent info which was quite useful to me.

    It still seems to me that the best way to implement a feature like this is having a URL field setting on the simple login log page. This could be stored in the db and the plugin could be updated without losing the geolocation link.

  6. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    @Vezado - you can copy and paste the example code that I linked to into your theme's functions.php file. The IP addresses will be linked to the service you mentioned.

    As for User Agent data - it's all there, nothing was removed. Take a look at my demo video http://www.screenr.com/kfEs

  7. Vezado
    Member
    Posted 2 years ago #

    Ooops, my fault. Twice.

    I was not seeing the User Agent because the plugin switched from excerpt view to list and i hadn't noticed that function before.

    I understand the code now, i was trying to place it in the plugin itself. Works very well! Thanks, that's a great feature.

  8. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    Not a problem :) All those features are new that's why you didn't notice them.

    As for the "code" - that's what the hooks are for. This means you can have your own custom code that hooks into the plugin and does whatever your personal needs are. This makes it very flexible and gives other users opportunity to customize things in their own way. At the same time it keep the main plugin lean, mean and simple :) That's how the whole WordPress is built.

    Anyway, hope the plugin will be useful and easy to use.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic