Closed (fixed)
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Nov 2008 at 17:43 UTC
Updated:
20 Nov 2010 at 08:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex.k commentedCommitted to CVS. This is off by default, controlled by a checkbox in /admin/user/relationships/settings.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
michaeldrupal commentedHi alex, how did you configured the content profile/ user profile? 'Cause I tried the same but it doesn't work out for me. any advice?
Comment #4
alex.k commentedThis feature doesn't use content profile or profile.module. It's the standard drupal user picture that gets shown.
Comment #5
drupalmind commentedAdd user pictures to My relationships block it works only on my relationship pages, how it will also work my relationship block ...could u have any track???
Comment #6
venusrising commentedHas anyone figured how to do this yet so it can be added to a panel.
Comment #7
nimzie commentedI used some theming tricks to do this. basically, I added the UID to the view, then in a theme override file for the field, I use that UID to load information, get the picture and display it through imagecache.
Effective and an excellent trick for getting things done if you want to have a manual handle on your code.
[code]
[/code]
Comment #8
ajayg commented@nimzie
are you saying that for each UID in the list, you are using user_load? Isn't user_load very expensive from load perspective? There may be simpler/less expensive ways to get user pictures?
Comment #9
nimzie commented@ajayg - I'm sure there is - but i'm not sure of the best way to do that. The user object is quite large, and I'm sure Drupal has to do some extensive work to build it. Any advice would be great, thanks.
Comment #10
ajayg commentedOG (organic groups) module handles pictures of group members using view and view has builtin field to display pictures in block. So I am hoping some code there could be leveraged or the view reused/repurposed.
Comment #11
alex.k commentedComment #13
sotiris commentedHi there and sorry for opening this again,
In order to show user pictures in User Relationships: friends block, can we use code from #7 to achieve this?
And as ajayg said, do we have any other solution more efficient than using user_load?
Comment #14
sotiris commentedComment #15
haopei commentedHey alex,
Are you saying there is currently no way to display a user's picture from a content_profile instead of the default user image?
Comment #16
alex.k commentedWhy, you can show pictures from content_profile if you build the block in Views. It's more of a content_profile question than a UR one.