How can I make custom profile pages public?

Question:
I don´t use the default registration or the “Members Area” app because there are things I don´t like with it. So I created a fully customized registration page, custom accounts and custom profile pages. But that seem to make it impossible to let new members profile pages to be public because you are not allowed to write that they shall be registered in the “PublicData” collection and that they shall be made public. So what shall I do and what code to use? I would appreciate detailed instructions.

Product:
Wix Editor

What are you trying to achieve:
My purpose is that a member can click on another members profile photo and with that be relocated to that members profile page. As it is now the member just come to his own profile page even though the URL digits is related to the clicked member (very strange to me).

What have you already tried:
I have tried in over a year with everything I could imagine but nothing has worked.

Additional information:
The possibility for members to watch other members custom profile pages must be one of the most wanted functions in Wix history but still there are no solution, or am I wrong?

Can you use makeProfilePublic - Velo API Reference - Wix.com to do this? Or are you saying this function doesn’t work with custom profile pages?

I have already tried your suggestion but when I write “import { currentMember } from ‘wix-members-backend’;” in the top of my code the page doesn´t recognize ‘wix-members-backend’ and as you can see in Velo´s description that is connected to the Members Area app which I don´t use because it mess up some of my custom system:

" When a member’s profile is public, they have access to the site’s Members Area features — such as chat, forum, and followers — and their profile is visible to other members and site visitors".

Like I wrote, I use a fully customized registration and custom account and profile pages which have no connection to Members Area.

I don’t see any code pasted or a screenshot. Did you mean to include one? Also is the package being used on the backend? This package wouldn’t be usable in frontend code.

Regardless if you’re not using the Members Area at all then you should be able to set any dynamic page as public: Wix Editor: Applying Page Permissions | Help Center | Wix.com

The pages themselves could be based on a username or similar slug. Here’s an example: https://anthonyl5.wixstudio.io/my-site-226/members-custom

This is using 2 dynamic pages and a custom content collection (ie. not PublicData which belongs to the Wix Members app)

And some documentation on dynamic pages: CMS: About Dynamic Pages | Help Center | Wix.com

First about the backend

Look at the screenshot:

As you can see wix-members-backend is not found and I don´t understand how to “install” it either because I have not found any code to put in a new module file for making it become “wix-members-backend”. Incredible frustrating that such an important thing is so hard to find on the net.

Then about public profiles

My registration page isn´t dynamic. Does it have to be that to make it public? And I can´t see any explanation of how to make even a dynamic page public. The page you linked to only show how to give page-permissions to specific kind of members so I don´t understand what you mean?

Member profile pages are dynamic though and set to be viewed by all members (“public” inside the member base) but still a member becomes relocated to his own profile page if he clicks on another members profile picture. That is the main problem for me.

You also shown examples of profile pages with url´s but not how you connected or coded it to work so I just see profile pages without an explanation. This is really not easy for me so I need a detailed instruction from the beginning to end.

This code is in the website’s frontend. Code designed for the backend cannot run in the frontend. There is an equivalent frontend library that does some of what the backend library does: getMember - Velo API Reference - Wix.com

Examples on the usage and application of backend code is here: Calling Backend Code from the Frontend

The explanation is the link provided in the previous post. These dynamic pages in my example were created without any code.

You linked to makeProfilePublic - Velo API Reference - Wix.com and on that page you see that they have written: “import { currentMember } from ‘wix-members-backend’;” in the top of the code. That does not work for me because Wix can´t find wix-members-backend. And if I skip backend by just writing wix-members I suppose that your suggestion will not work?

Why do I need 2 dynamic pages? Do you mean the original profile page and a copy of that page but with another url? Because when I tried with linking the members profile photo (on a list page) to the members profile page url > the photo-clicking member is relocated to his own profile page <. I think I have tried every possible solution during over a year but with the same frustrating result. So please give me a detailed explanation of how you succeded. My profile pages are allowed for all registered members so I don´t think that the problem lay in restrictions.

To make it a little clearer for you I show the url of one of my members (Marilyn Monroe):

https://www.daddymate.com/members/profile/public/5d111bc7-2e15-485b-996d-499424ab8bde

I really can’t provide more detail beyond implementing the solution myself. I would suggest at this point to get professional support with modifying your site. Try either the Collaboration section of the forum or https://www.wix.com/marketplace for paid support.

But can´t you please just explain what you mean with 2 dynamic pages? Do you mean the original profile page and a copy of it but with another url or do you mean 2 different pages? For me this is really not clear and besides that i am unemployed so I can´t afford paid support.

I mean one page is a list-style dynamic page and lists all of the “members” in the custom collection.

The other page is an individual item-style dynamic page that displays for each “member” in the custom collection.

Then on the list-style page I have a button (or image) that when clicked opens the item-style page in a new window

Okay, thanks but how did you automatically give the members profile pages ordinary urls because my profile pages have this kind of urls?: “5d111bc7-2e15-485b-996d-499424ab8bde”. It looks like if you manually have given the pages new urls :thinking:

That can be set on the options for the Item-based dynamic page

Okay, until now I have put “id” there but I guess that I rather shall use for example “nickname” then? What´s the reason for not using “id”?

Now I tested with nickname instead of id but the clicking member still become relocated to his own profile page so this wasn´t the solution. I really don´t understand how you made it work because I followed your simple instructions.

Here you see that the url belongs to the member Marilyn Monroe which is the owner of the clicked photo (the photo is showing her face) but the content on the page belongs to the clicking member. This is my problem in a nutshell.

I have waited many days now for an answer from you Anthony. You once shown me templates of working custom profile pages without Members Area and also told me that I have to add some kind of code but you didn´t show me what code to add? Both the related collections and pages gives acess to all members but a member who clicks on another members profile photo is relocated to a dynamic profile page with his own information but the URL is still related to the clicked member. That makes me both tired and crazy because its so unlogic (for me). I can´t continue with the rest of my site until I have solved this frustrating problem.

Ps! You first wrote that you didnt use any code but then that I still have to add some kind of code to make it work so I´m confused.