Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-26T01:20:54-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15162 2011-09-26T01:20:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15162&p=39176#p39176 <![CDATA[Re: Help With Displaying Additional Data On Profiles]]> http://codex.wordpress.org/Function_Ref ... t_userdata

Statistics: Posted by Cristián Lávaque — September 26th, 2011, 1:20 am


]]>
2011-09-16T04:48:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15162&p=37303#p37303 <![CDATA[Help With Displaying Additional Data On Profiles]]>
What I am trying to achieve is to display additional data on members buddypress profile pages.

I am using the code below in my themes functions file:

Code:
function ShowInfo() {

echo "Username:         " . S2MEMBER_CURRENT_USER_LOGIN . "<br>";
echo "Membership Level: " . S2MEMBER_CURRENT_USER_ACCESS_LABEL . "<br>";
echo "Registration IP:  " . S2MEMBER_CURRENT_USER_REGISTRATION_IP . "<br>";
echo "Current IP:       " . S2MEMBER_CURRENT_USER_IP . "<br>";
echo "Logins:           " . S2MEMBER_CURRENT_USER_LOGIN_COUNTER . "<br>";

}
add_action( 'bp_before_member_header_meta', 'ShowInfo' ); // show additional profile info


The problem is, that this displays the logged in users details as opposed the members profile that is being displayed. For example, I am 'admin', looking at members 'fayes' profile. Instead of 'fayes' additional details being echoed, I get mine.

Any help please?

Thanks
Rob

Statistics: Posted by godrob — September 16th, 2011, 4:48 am


]]>