• Hi,

    I have a problem, I’ve created the registration form, and in that one, people can upload profile picture. But when i click on the “Upload Picture” Button (“Télécharger l’image” in french) nothing happens, just a back to top like an href=”#”, what I have to do please ?

    Sorry for my bad english.
    Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @martinlebettre,

    Unfortunately, Ultimate member doesn’t support image uploads upon registration in the current version of the plugin.

    Regards.

    Hi.
    @martinlebettre

    Please use this code in function.php file in your theme directory

    so you can upload profile pic from registration form..

    but one think

    your registration form field asign meta key

    meta key is — ( userphoto )

    ————————————————-

    add_filter(“um_user_pre_updating_files_array”,”um_custom_user_pre_updating_files_array”, 10, 1);
    function um_custom_user_pre_updating_files_array( $arr_files ){

    if( is_array( $arr_files ) ){
    foreach( $arr_files as $key => $details ){
    if( $key == “userphoto” ){
    unset( $arr_files[ $key ] );
    $arr_files[ “profile_photo” ] = $details;
    }
    }
    }

    return $arr_files;
    }

    add_filter(“um_allow_frontend_image_uploads”,”um_custom_allow_frontend_image_uploads”,10, 3);
    function um_custom_allow_frontend_image_uploads( $allowed, $user_id, $key ){

    if( $key == “profile_photo” ){
    return true;
    }

    return $allowed; // false
    }
    —————————————-

    Thank you.

    • This reply was modified 7 years, 1 month ago by Anil Patidar.
    Thread Starter martinlebettre

    (@martinlebettre)

    Sorry but when i put that code on my functions.php the website is not working, just a blank page….

    And how the people can edit profile because it’s the same, when I click on the settings icon, nothing happens, just back to top #.

    Maybe you no something about that ?

    Thank you very much !

    Anil Patidar

    (@anilpatidar138)

    Please set you permalink in dashboard…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t upload (profile) picture’ is closed to new replies.