WordPress.org

Support

Support » Plugins and Hacks » Simple Login Log » [Plugin: Simple Login Log] show failed logins in a table and link to lookup service

[Plugin: Simple Login Log] show failed logins in a table and link to lookup service

Viewing 1 replies (of 1 total)
  • Hi, did you try the option, described in readme? I mean something like the last section of code:

    <?php
    add_filter( 'sll-output-data', 'link_location_by_ip' );
    function link_location_by_ip($item){
    
    	//$item is a single row for columns with their values
    
    	$item['ip'] = sprintf('<a target="_blank"  href="http://infosniper.net/index.php?ip_address=%1$s&map_source=3&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=11">%1$s</a>', $item['ip']);
    	return $item;
    }
    ?>

    I belive that in your case should be something like this:

    foreach($result as $row) {
        echo "<tr><td>sprintf('<a target="_blank"  href="http://whatismyipaddress.com/ip/%1$s#Geolocation-Information">%1$s</a>', $row->IP)</td><td align=right>$row->Failed</td><td align=right>$row->Latest</td></tr>";
    }

    But IP should be in text format, like $item = “85.85.85.85”, and not the number 100.100.100.100.

    Actually, I’m more interesting in logging of the failed passwords together with logins as described here. And the time since last attempt, like here. Now I need to have both plugins activated… It would be great if both functionality will be included into the simple-login-log plugin in next release… Please.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Simple Login Log] show failed logins in a table and link to lookup service’ is closed to new replies.
Skip to toolbar