WordPress.org

Ready to get started?Download WordPress

Forums

WP-UserOnline
[resolved] Minor Feature Request (+solution) (3 posts)

  1. justin_k
    Member
    Posted 1 year ago #

    Hey Scribu/Gamerz,

    Just a minor feature request: it would be great if the detailed useronline page included the useragent as well; that would make it easier to identify who your visitors are, as well as potentially miscategorized visitors (bot/nonbot) for forwards-compatibility.

    It's a one-line change; template-tags.php, line 220 from:

    $output .= "<p><strong>#$nr - $name</strong> $user_ip $_on $date<br/>$page_title $current_link $referral_link</p>\n";

    to:

    $output .= "<p><strong>#$nr - $name</strong> $user_ip $_on $date<br/>$page_title $current_link $referral_link<br/>$user->user_agent</p>\n";

    http://wordpress.org/extend/plugins/wp-useronline/

  2. justin_k
    Member
    Posted 1 year ago #

    (For example, I've had it in there for about 5 minutes and I've already identified a few bots being misidentified as users: 'rogerbot' and 'Sosospider') :)

  3. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    You know, that's exactly what I was thinking a few days ago.

    In the development version (2.83-alpha), when you hover over the user IP, you'll see the user agent, instead of the hostname.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.