Show username and picture in elements

Hello, my name is Sylvain, i’m French. I need help, I’ll try to be as clear as possible.
I have browsed the forum and I have not found a sufficiently clear explanation to help me solve this problem. Yet I’m sure it’s not very complicate ^^.

I would like to learn how to make the user’s name appear in a simple text element, their photo in a photo element and if possible other useful information such as email.
Here is my page and the different ones :

Step 1 : I use my dataset : PrivateMembersData. His ID = members.
Its ok ?

Step 2 : I prepare the elements and ID.

  • Picture = #userPhoto
  • E-mail Text = #userEmail
  • Name Text = #userName

Step 3 : I connect dataset to element.

Step 4 : I created Back-end files ?

This code for getMember.jsw :

import wixUsersBackend from ‘wix-users-backend’ ;

export function getMemberDetails(userId) {
return wixUsersBackend.getUser(userId)
}

Step 5 : Front-End Code ?

I don’t know :laughing: :rofl:.

Just i Have import :

import wixAnimations from ‘wix-animations’ ;
import wixLocation from ‘wix-location’ ;
import wixData from ‘wix-data’ ;
import wixWindow from ‘wix-window’ ;
import wixUsersBackend from ‘wix-users-backend’ ;
import { getMemberDetails } from ‘backend/getMember.jsw’ ;
import wixUsers from ‘wix-users’ ;
let debounceTimer;

Can you help me please ? :four_leaf_clover::roll_eyes:


I would just like to show the information of the logged-in user in simple elements. I would just like to know what is missing for it to work Thank you in advance to whoever will help me