I am creating a social media app and clicking on social profile takes you to the last profile you viewed, not the users social profile.
Additionally when you click on the name of another individual it takes you to the logged in user profile but displays the name of the person you clicked on.
How do I make it so that if you click on “profile” it takes you to your profile but if you click on the name of another individual, it takes you to their profile? I am quite new to this so please explain it using simple language haha
It’s better to create 2 separate screens in your case. One screen is for My profile, and you display data from Logged-in User (Logged-in User → Name, Logged in User → picture, …).
Another screen is for viewing profiles of others, say, “View profile”. And there you will use Current user (Current User → Name, Current User → picture, …). Of course before that screen you need to have a screen with a list of Users, and this list links to View profile screen.
You’re asking a question about Social Media app. Usually these apps have users which have their profiles and can create content (posts).
The easiest way in Adalo is to store user data in Users collection. This means that if you would like to allow your user to view other users, you will have to create a list of all users on some screen).
BTW, if you’d like to access user-creator’s profile from user post, you might need yet another screen for viewing user profile and use relationship Current Post → User-Author to get data.
Seems that it might be a good idea for you to read some documentation before starting to create an app. Lists are discussed here: Lists | Adalo Resources, and this includes explanation how to put a list on a screen.
Also searching in Google with the string “creating social apps with adalo” will give you some useful results, including blogposts on the subject and youtube tutorials. I would highly recommend watching them to understand the principles.
Hi Victor, I have set up two version of profiles as you suggested, this worked well (thank you) only question I have is when an individual clicks on their own name, it takes them to the “view profile” version, I would either want this to simply not happen e.g. only be visible to others, or to remove the buttons within the profile e.g. follow.unfollow, message etc for the individual (otherwise they’ll be following or messaging themselves) - any suggestions?
You can use conditional action or conditional visibility for this. Condition will be smth like “Current User → Email” is equal to “Logged-in User → Email”.