My app is functioning well. However, I want to add this. Just like in Facebook , one should be able to visit another user’s page through the URL https://www.appname.com/username (both first name and last name that are in the profile page.
Currently, when I give the above URL, I get an error page. How can I fix this? As of now when I log in I am able to clearly see another user’s profile page but I want a public URL also as above. Can anyone help me with this?
There is another catch - What if more than one user have the same name?
One cannot have the same URL for more than one user.
Perhaps I can use the unique id but is too big. Is there any small part of the unique id which is also unique so that I can generate a unique URL for every member.
In order to get a unique URL for each user of your app you can use the slug feature: Bubble manual
To properly display data to logged in users or not, you should check your privacy rules settings: Privacy rules doc
What do I do for the users who have already registered. When I give https://www.appname/username , I still get an error page plus the bubble icon and brand name appears in the title so how can I get rid of it.
In the profile page I have given the username as a backup for the url.
You can’t use that URL structure for this in Bubble… there might be some complicated workarounds you can try (you can search the forum for info on that), but the standard Bubble URL structure is: www.appname.com/pagename/slug
So you need to include the pagename in the URL path, then the slug of the Thing.
Regarding the page titles and metadata, you can set all of that in your app settings (the favicon can be set on the General tab, the rest is set on the SEO tab, although each page can also have it’s own setting which can be defined in the properties editor for the page).
For user’s who have already registered but don’t have a slug you’ll need to run a workflow to set one for them.
Hi earlier I thought of that only. Please see the image. This part in Bubble always confuses me…manipulating lists. What should I write here now? There is a list but it gives option for the first item, second item…I need to roll on a list.
Hi thanks. I did what you said and learned about backend workflows (no idea till now). The slug is however working only when I am logged in. I want that even when the user is logged out his or her profile page should appear with the slug…just like a public profile. How can I do that?
It is all working now. However, for my own knowledge I have a couple of questions.
There are 2 profile pages I have made one is for the user to update his/her profile and the other is seeprofile with only text fields. The link appname.com works only for the seeprofile page in public mode (just as for FB, linkedin) but not for updateprofile. Although this is how it should be, I still want to know why it does not work for updateprofile page. Is it due to the presence of a button or input fields? I don’t think this could be the reason as there are buttons on the seeprofile page also.
In the seeprofile there are a couple of buttons that I do not want to be seen in public view. How can I disable those…are there any privacy settings that need to be done? Please help.
I don’t fully understand your question or the issues you’ve described…
but just a few things to consider…
Firstly, there’s no need to use two separate pages to do what you’ve described (although there’s nothing wrong with doing so) - you can just set up the edit details UX on the profile page, and only allow users to update their own profiles with the appropriate conditionals and privacy rules (i.e. when the Current User is the Current Page’s User).
I don’t understand the second part of your first question… maybe some screenshots or links would help make it clearer…
To answer your second question, just add conditional formatting on the buttons so they only show for certain Users.
thanks Adam, I think your suggestion for 1 is right. I was also earlier thinking of keeping only 1 profile page with conditional controls. Now that my Bubble knowledge has vastly improved, I will do this.
Regarding my second question - If on a public profile page that is seen by anyone on the internet (not necessarily logged into my site), I do not want to show certain buttons what should I do. Will using the ‘Current User’’ not logged in solve the problem?
One more thing on this topic - If I want the page to be not visible at all to public when the person is logged out, what should I do. Instead I would want the person to be redirected to the Error Page.