Skip to:
Content
Pages
Categories
Search
Top
Bottom

how can I prevent last name from showing everywhere?

  • I’d prefer to not have last names shown everywhere, instead of bp_user_fullname() is there a bp_user_firstname? Actually, I’d prefer to show just the username… My blog is in Washington DC, so privacy is a real concern.

    So instead of “Vincent Macaluso’s blogs” or “Vincent Macaluso posted a blog entry” it would say “nolageek’s blogs” etc..

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

  • Andy Peatling
    Keymaster

    @apeatling

    This should be an admin option, and will likely be added sometime before the first release. Right now the easiest way to stop this is to modify the bp_user_fullname() function as this will change it everywhere.

    Line 243 of bp-xprofile-templatetags.php

    function bp_fetch_user_fullname( $user_id = false, $echo = true ) {
    global $bp;

    if ( !$user_id )
    $user_id = $bp['current_userid'];

    $ud = get_userdata($user_id);

    if ( $echo )
    echo $ud->user_login;
    else
    return $ud->user_login;
    }

    This is just a temporary solution, and it will break in the future. It should tide you over until a better option is available.

    Perfect! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how can I prevent last name from showing everywhere?’ is closed to new replies.
Skip to toolbar