It would be a nice feature to have is when a user joins their IP is automatically logged as part of their profile, like join date and last login it doesn't have to be visible to anyone but the admin. Can we get a ticket on this:
here's a basic code to get the remote IP, the return $addr can be placed in the profile table and displayed in the Admin>Members>Geeky view for us to have in case we do need to ban a user by IP or if they do somethign illegal we can have their IP for legal reasons. Most sites do log IP for user names to protect themselves.
<?php
function getIPfromXForwarded() {
$ipString=@getenv("HTTP_X_FORWARDED_FOR");
$addr = explode(",",$ipString);
return $addr[sizeof($addr)-1];
}
?>