buddypress usernames only
-
Some members do not use the correct ‘@ mentions’ so trying to use the plugin linked below. Has anyone had success with a different plugin?
http://wordpress.org/extend/plugins/buddypress-usernames-only/
getting error:
Warning: Missing argument 2 for ray_bp_get_activity_action() in /public_html/wp-content/plugins/buddypress-usernames-only/bp-usernames-only.php on line 111Several lines above and below line 111
`/* ACTIVITY OVERRIDES —————— */// used in activity comments
function ray_bp_acomment_name( $name, $comment ) {
return $comment->user_login;
}
add_filter( ‘bp_acomment_name’ , ‘ray_bp_acomment_name’, 1, 2 );// used in parent activity update
// not the best method… especially if the user has changed their display name multiple times
function ray_bp_get_activity_action( $action, $activity ) {
$displayed_user = bp_core_get_core_userdata( $activity->user_id );return str_replace( ‘>’ . $displayed_user->display_name . ” . $displayed_user->user_login . ‘<', $action );
}
add_filter( 'bp_get_activity_action', 'ray_bp_get_activity_action', 1, 2 );`
- The topic ‘buddypress usernames only’ is closed to new replies.