Hello I have created a dynamic page for user profiles. It contains ad Edit button, that should be visible and clickable ONLY if the page is opened by the user of that account.
It should disappear when a user visits another user’s profile page.
How can i achieve this?
Thank you in advance.
Can you elaborate? I know the currentuser option but it only tells me who is using the website… how do i check if the profile i visit is mine or anyone’s else?
@ademontis
Depends on your project, doesn’t it?
-How does look the user’profile page?
Dynamic page?
Member-Page?
Own database-profile?
Where are all the needed informations to work with?
There are several ways how to generate it. So how is the structure of your project?
What is the structure of your DB ?
- First you get the USER-ID.
- Then you surely have a DATABASE, where you have all the users-profiles.
- And this profiles have surely some IDs to identify them (_owner?) (item-ID) what-ever.
- Making a query of this DB, comparing/filtering with the User-Owner-Item-ID what ever.
- After filtering-process you should have your results with the profile you were looking for and all its DATA.
Right? —> Just quick theoretical thoughts!