• Resolved Nickmarshmac

    (@nickmarshmac)


    Hi – I have another issue!

    In UM profile settings I’ve selected a default profile photo for all users, and in the discussion menu selected Avatar Display (default avatar – mystery person). But instead of seeing my profile photo I’ve uploaded, all I see still is the mystery person photo. Have I missed an option?

    https://ww.wp.xz.cn/plugins/ultimate-member/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    Please attach some links or wait until Monday when we open our support forum so we can have a look.

    If you have uploaded a profile photo, surely that custom photo will appear in your profile.

    You have not given any links, so I can’t guess really. 🙂

    Thank you

    Thread Starter Nickmarshmac

    (@nickmarshmac)

    It’s an internal website, so unfortunately can’t give a link. I set the default photo in the admin screens, so I thought it would reflect on the profiles, but it looks like the default gravatar replaces whatever I upload. I could try uploading from the front-end, but I wanted everyone to have a specific default photo.

    Plugin Author Ultimate Member

    (@ultimatemember)

    Default gravatar (if enabled) will be used instead of a user has no photo. If you wish to enforce the default photo, please disable “use gravatars” from settings. Hope that helps 🙂

    Thread Starter Nickmarshmac

    (@nickmarshmac)

    I think I’ve fixed it! I used the following code in my functions file –

    add_filter( ‘avatar_defaults’, ‘new_default_avatar’ );

    function new_default_avatar ( $avatar_defaults ) {
    //Set the URL where the image file for your avatar is located
    $new_avatar_url = get_bloginfo( ‘template_directory’ ) . ‘/images/new_default_avatar.png’;
    //Set the text that will appear to the right of your avatar in Settings>>Discussion
    $avatar_defaults[$new_avatar_url] = ‘Your New Default Avatar’;
    return $avatar_defaults;
    }

    …then linked my profile photo into this. In the discussion menu I can now click on ‘Your New Default Avatar’ and everything shows correct!

    Plugin Author Ultimate Member

    (@ultimatemember)

    Very nice solution. 🙂

    Glad you’ve got it

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

The topic ‘Default profile photo’ is closed to new replies.