Display on my site who is login

HI,
I created a customised login and profile page and would like to show on my page a message showing “Hello userid… is logged in”. Similar to the Login button does.

How can I code this? I do not want to use the Login button since if the user click it, it will bypass my customer Login/Profile process.

Thank you

Pierre Lacasse

Hi Pierre.

Just to clarify, your intention is to have the Text element and populate it with data “Hello ” or something like that?

If so, please take a look for the wix-users API: http://www.wix.com/code/reference/wix-users.html#currentUser

You can take a look at the following how to set properties for various elements: Velo Tutorial: Adding Custom Interactivity with Events | Help Center | Wix.com

Regards,
Genry.