Skip to:
Content
Pages
Categories
Search
Top
Bottom

buddypress usernames only

  • Avatar of intimez
    intimez
    Participant

    @intimez

    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 111

    Several 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 );`

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

You must be logged in to reply to this topic.