@enrons
10 years, 11 months ago
Hi .. ,
for over 6 months i search for this function.
I need a function to display: “bp_get_member_profile_data” in activity-stream for each invidually user in activity-stream !!!!!!!!!!!!!
Yes, I know the different with bp_get_member_profile_data and xprofile_get_field_data ! It´s all crazy, but whatever.
If i put the this in custom-function.php, in example:
————————- function show_extra_profile_fields() { global $bp; $myfield = xprofile_get_field_data( ‘City’, $bp->loggedin_user->id ); echo $myfield; } add_action( ‘my_test_action’, ‘show_extra_profile_fields’ );
—————–
And put this Code in activty – entry.php
<?php do_action( ‘my_test_action’, ‘show_extra_profile_fields’ ); ?>
——————–
It shows the City, but in all activies it shows my City ! Also logically, because i say: –>loggedin_user
But I need the function to display the invidually City for User in entry.php !!
Please Help!