• Resolved JK

    (@justin_k)


    Could I request a quick filter addition? For years now, I’ve been modifying the plugin to slightly change the “Users Online Now” page to my needs; a filter would allow me to do this without needing to hack the plugin after each update 🙂

    1) template-tags.php line 220 gets wrapped in a filter, like:
    $output .= apply_filters("useronline_custom_template", "<p><strong>#$nr - $name</strong> $user_ip $_on $date<br/>$page_title $current_link $referral_link</p>\n", $nr, $user);

    2) template-tags.php line 227, remove “private” from format_link (like the other static format_* functions).

    If you’re interested, what I’m doing is adding a 3rd line to each visitor with its useragent, so it’s much easier to see at-a-glance which are valid and which are unrecognized bots (which I then add to useronline_bots). Vs needing to mouseover each visitor to see its useragent 🙂

    https://wordpress.org/plugins/wp-useronline/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Quick Filter Request’ is closed to new replies.