Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Hacks
    In reply to: Update Display Name
    Thread Starter maaggel

    (@maaggel)

    Thank you very very much 😀

    I’ve added your script to bp_core_get_user_displayname in bp-members-functions.php.
    And though it didn’t work right away, it worked when I cleared the cache for the user when changing the name.

    You’re a life saver 🙂

    Forum: Hacks
    In reply to: Update Display Name
    Thread Starter maaggel

    (@maaggel)

    oh, well the problem is that the display name isn’t shown even if I do that. Even if I clear the cache, or even restarts the computer/use a different computer – it’s still that username that is shown.
    Even though it’s shown correctly in the backend :S

    It’s really really strange.. So I was thinking that perhaps it was a “use display name” flag that I needed to set.. But in the backend the display name is already set to “tester”

    Forum: Hacks
    In reply to: Update Display Name
    Thread Starter maaggel

    (@maaggel)

    Hmm, I guess that makes sense.
    But since I havn’t done this before I’m not sure how to do it.

    Ive just tried to do this:

    wp_set_current_user( $current_user->ID, "tester" );
    wp_set_auth_cookie( $current_user->ID );
    do_action( 'wp_login', $current_user->user_login );

    But it doesn’t change anything.
    Can you perhaps send me a like to the function I should use to set the internal variables?

    Forum: Hacks
    In reply to: Update Display Name
    Thread Starter maaggel

    (@maaggel)

    When I set the “user_nicename”, the url to the user acount changes (etc.: /members/tester/). But the name is still shown as the same.

    And the get user part sounds interesting.
    When I retrieve the data, shall I then call another function for it to be reloaded?

    And thank you for the response 🙂

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