WordPress.org

Forums

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

  1. Justin_K
    Member
    Posted 7 months 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 7 months 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 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.