For sites using Profile 2 it would be useful to be able to configure the user images etc to come from that model, mostly becuase in most use cases images and info get pushed into the Profile 2 module.
I dont see any way to edit a view to bring outside enities in from other modules.

Comments

IceCreamYou’s picture

Version: 7.x-1.0-unstable4 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

It's probably possible to add a relationship on the sender to pull in their Profile2 entities. Even if not, it should be feasible to write a handler explicitly for Profile2 integration. But if code needs to be added to Statuses let's postpone this until after the 1.0 release

elmadah’s picture

Issue summary: View changes

I came into this issue than I wrote some code to replace the User Profile picture with a photo field from Profile2, And it work fine

function MYTHEME_preprocess_user_picture(&$vars) {
	global $user;
	$uid = user_load($user->uid);
	$profile_main = profile2_load_by_user($uid, 'PROFILE-NAME');
	$vars['user_picture'] = drupal_render(field_view_field('profile2', $profile_main, 'PHOTO-Field Name', 'value'));
}
mikejuic3’s picture

To show a profile 2 profile image just add a relationship to user:profile then add a field for it. Turn off the display for the field and adjust Global: Custom text to have the token for the profile picture instead of [sender:picture]

IceCreamYou’s picture

Category: Feature request » Support request
Status: Postponed (maintainer needs more info) » Fixed

Marking as fixed per #3

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.