joemelt101 / gamer-net

Provides a place for people to find others to play their favorite games with.
GNU General Public License v3.0
0 stars 3 forks source link

other user profile page needs logic for how to query database #152

Open HomerGaidarski opened 8 years ago

HomerGaidarski commented 8 years ago

When one wants to view the profile of another user, they click on their username and the website takes them to a dashboard page populated with that user's info. The most efficient way to do this would be to save the user's uid to a post variable and then query the database with that id. If user goes to link directly just by typing gamer-net/user/usernameGoesHere, need to query database with the username to get the user data.

HomerGaidarski commented 8 years ago

Just realized dashboard page requires login to view but doesn't really have sensitive functionality; yes it shows location info but i can change the backend logic so that it only displays that if you are viewing your own dashboard page or if you are allowing your friends/certain friends to view it.