Question:
Hi! I am building a personalized site where I would love to construct the pages so that each page a user goes to, their profile picture is the one automatically shown in the center page. (See attached). So, fo
r example, the boy here (“John”) is shown to John as he navigates between the Learn, Live, and other pages; but if “Jenny” was visiting these pages, her own picture would be shown instead.
Product:
Wix Editor
What are you trying to achieve:
I want to do this to provide as personalized an experience as possible. It’s always lovely seeing your own face, rather than someone else’s!
What have you already tried:
I’m familiar with dynamic pages, but if I used dynamic pages I would need to manually change the images myself for every member, and on every set of dynamic pages, which would be impossible due to the time! I would like to find out if there is a code solution to make the page “auto-populate”, as mentioned, with the user’s profile photo.
If you can use Velo code, you should be able to implement this by retrieving the currently logged-in user’s information after the page loads, then obtaining their profile image URL from that data, and applying the retrieved image URL to the image element on the page.
Hi there, thanks for your help. It’s not working. Please see screenshot. When I run it, it says that there are errors, and this girl (who I just put as the placeholder image and called #memberimage) is supposed to be replaced by the logged-in user’s profile picture (a boy with goggles on, currently).