Setting Site Member's Profile Picture by Default?

Did you find a way of doing this?

I found a thread from 2021 that suggests that it is possible…

but I’m getting an error when I publish it saying

 `ReferenceError: getUserProfile is not defined`

This is the code that was on the thread…



$w.onReady(**function** () {

**const** default_image = 'wix:image://v1/4c497b_98f0451b76d344f19f7b431300bef6e6~mv2.png/_.png#originWidth=400&originHeight=400';

**return** getUserProfile().then((profile) => {

$w('#name').text = $w('#picture').tooltip = $w('#picture').alt = profile.name;

$w('#picture').src = profile.picture || default_image;

})

});