View Single Post
Old 03-22-2007, 11:19 AM
  herbj's Avatar 
herbj herbj is offline

Advanced Member
Join Date: Feb 2007
Location: Florida
Posts: 62

Default Re: IP Addresses in Users Online for all users

I have this working in 4.0.19. The only thing I do not understand is that I have 2 entries for each visitor.
1 shows the IP and the other does not.

Any Suggestions.

Oh. This originally did not work for me but then I realized I had missed a piece of code that belongs in the "auth.php" file. (in red) Hope this helps...

if(!empty($active_modules['Users_online'])) {
$current_url_page = $php_url['url'].($php_url['query_string']?"?".$php_url['query_string']:"");
$session_create_date = time();
$current_date = time();
$session_ip = getenv('REMOTE_ADDR');
Reply With Quote