I’m using the user module on a site and I’ve currently got a login page, registration page, and forgot password page set up. What I’m looking to do is create a very basic “profile” page and “edit-profile” page similar to what Jambor-ee did when their site was live as I know they used the user module for their member functionality.
Can anyone maybe give me an idea where to start on this? I’m thinking that I need to do something with the exp:user:edit tag? It looks like the edit page in the docs just displays how to develop a page where members can edit their profile but not how to simply display this information? I’m really looking to display this exact information on a member “profile” page only without the input fields. This would just be a page that shows the members name, email on file, photo, url, screenname, etc.,
Any thoughts on this? I’m sure I’m just overlooking something in the docs…
Thanks I’ll check that out. I didn’t realize that. I guess I overlooked that “stats” page as I just didn’t put two and two together. I kept looking for something that said “profile” in the docs.
I’m wondering how I can lock the member profiles down so that are not publish and only the current logged in member can access their profile? Is that possible?
At first glance, I’m afraid I’m confused on how I’m suppose to use the is_mine function.
Do I simply need to write out the {if mine}{/if} conditional and place my profile template (from above) between that conditional and then below that have the {if not_mine}{/if} conditional displaying some text or a login form if that profile doesn’t below to the person viewing it?
I see the member_id = “{author_id}“ parameter too… looks like that’s required to make this work. Can I place anything else in that parameter or does it have to be {author_id}? Where do I find the {author_id}‘s?
PieMan was just telling me that he couldn’t get the is_mine to work in his testing. So I need to double check it before telling you what and how to do.
If it helps you out at all in your testing, I received this error message when I tried to view my profile:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/eh6420/public_html/kygolfing/system_name/core/core.functions.php(637) : eval()‘d code on line 10
Still not working. I logged out and tried to manually browse to my member profile and it still came up just as if I were logged in. If I understand this correctly, with the is_mine in place, anyone logged out shouldn’t be able to view profiles by manually typing them in the address field of the browser?
In my header I have a “profile” link that will take members to their profile and I had the anchor set up to point to “/members/profile/{username}“ so that’s the reason I used the is_mine username=“{segment_3}“
I just changed the anchor in my header to “/members/profile/{member_id}“ and that works too.
Is the “member_id” way of doing it more secure or something or just the recommended way of displaying a member profile so the username is out of the URL?