Problem with creating a members profile

Hi,

You can get the current user ID by calling currentUser()
https://www.wix.com/code/reference/wix-users.html#currentUser

To get the current dynamic page id, use wix-location

If the two are identical, it means that the owner is currently viewing his own page.