• Resolved jglazer63

    (@jglazer63)


    I have imported a ton of users and now want to assign them their profile photos. I have uploaded them to the ../uploads/ultimatemember/### folder with the names

    profile_photo-190×190.jpg
    ..
    ..
    profile_photo.jpg

    I have also updated the “profile_photo” meta for each user to reflect “profile_photo.jpg”. But their profiles still do not show the image. What am I missing? I am doing this all through php.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @jglazer63

    Please try uploading images as profile_photo.jpg and generate different thumbnail sizes using this plugin.

    So, you will have to upload images to uploads/ultimatemember/{user_id}/profile_photo.jpg, regenerate the thumbnail and see if that fixes the issues for you.

    Thread Starter jglazer63

    (@jglazer63)

    I have all the images in place. I just need to modify the database to tell it that a profile picture is there and to start using it. I don’t want to upload hundreds of profile photos one at a time. They are already in the correct locations.

    What modifications do I need to make to the database to get it to start displaying them?

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @jglazer63

    UM stores the profile photo filename in wp_usermeta table with the meta key profile_photo.

    For example, If the profile photo filename is profile_photo.png, you need to insert that in the usermeta of a user. Here’s an example:

    update_user_meta( $user_id, 'profile_photo', 'profile_photo.png');

    Regards,

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable profile photo by PHP’ is closed to new replies.