nick_worth
Veteran
Just Getting Started
Member Likes (0)
So fairy simple question I think. Currently I have a popup form on the profile page of members, and I want the dynamic details there to be the details of that member whose page the user is on, but instead right now I'm getting the logged in user's member details.
Using function xprofile_get_field_data() and bp_get_member_profile_data()

Responses (5)
Support Kangaroo (joined March 2011) Likes (0)
Greetings nick,
Thank you so much for bringing humor in to my day so early, it is greatly appreciated.
This obviously is a Buddy Press question and Buddy Presses simple answer is?
Please advise.
Cheers, Joe
Member (joined June 2012) Likes (0)
Not sure I understand your response. There is a simple answer, or like most of the buddypress documentation there's not a simple answer to be found?
Was there something in my question that I left out that you would need?
Member (joined April 2009) Likes (0)
Hiya Nick,
You're right the BuddyPress documentation is a bit lacking. You'll probably want to look at the BuddyPress default theme. Specifically, checkout:
bp-default/members/single/member-header.php and
bp-default/members/single/home.php
You're probably looking for functions like:
bp_displayed_user_fullname();Also you can pass the name of your profile fields like so:
bp_profile_field_data( 'field=About Me' );Does that help?
Member (joined June 2012) Likes (0)
Thanks for the response Mason, I actually tried that along with many others including what seemed promising
$bp->displayed_user->idvs$bp->loggedin_user->idBut for some reason I was still getting the loggedin_user ID, so I ended up passing the displayed user id through the URL and then getting any details I needed like so
Unless there is a better way this seems to work for now so that I can accomplish what I needed to. If you would like specific details or to see an example you would need to PM because it is not something I can share publicly.
Thanks again for the help
Member (joined April 2009) Likes (0)
ah, yep. Passing the displayed_user ID through the URL makes sense. Nice work.
Thanks for posting as well as I'm sure it'll help others who come along here. :)
Become a member