Need some help with php

I have a plugin that displaysa widget of who is online and and the links to their profiles however since the wordpress site is now a buddypress site the links that point to members profiles from the widget are now broken because now the link needs to be /members/membersname/ . The current link is linking to /author/membersname/

The plugin developer said in the updates that he added a filter to change the link displayed but unfortunately I do not understand it as my php knowledge is slim to none. Here is the code.

* Return HTML for a single blog user for the widget.
 *
 * @uses apply_filters() Calls 'wpwhosonline_author_link' on the author link element
 * @return string HTML for the user row
 */
function wpwhosonline_user( $last_online_ts, $user ) {
	$avatar = get_avatar( $user->user_email, 32 );
	$name = $user->display_name;
	$link = '<a href="' . get_author_posts_url( $user->ID, $user->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $user->display_name) ) . '">' . $name . '</a>';

	$link = apply_filters( 'wpwhosonline_author_link', $link, $user );

Can anyone please tell me or show me where I have to enter members in this code? I can tell that this outputs a link but everything I have tried has failed miserably :expressionless: