small avatars for activity
drupallogic - September 26, 2009 - 23:37
| Project: | Activity |
| Version: | 6.x-2.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | sirkitree |
| Status: | active |
Jump to:
Description
Would it be possible to add small avatars to main activity page like on Facebook ?

#1
All display is through Views, so yes. Just takes a bit of theming know-how
#2
I would suggest actually Imagecache Profiles. This module now has Views formatters so you can pick an imagecache for the user picture
http://drupal.org/project/imagecache_profiles
#3
If your view has a relationship with the user table (the default one already does) you can just add the user picture as a field.
#4
Right the the key is making the picture small. The default drupal setup will put a large picture there if they uploaded a large picture or a small picture if they uploaded a small picture. D6 user picture handling is virtually non-existant as it doesn't, out of the box resize and reshape.
Sirkitree mentioned that you can theme the specific View field and that will solve it. And I sugguested using that imagecache profiles as it will allow you to select from your imagecache sizes the size you want for your picture.
Thankfully, imagecache has been folded into core for Drupal 7.
#5
thanks guys.
does any one know when activity 2 beta will be released ? it has been under dev. for months.
#6
It will be ready when its ready :-D
this issue still needs to be addressed
#391670: Create an upgrade path
#7
I don't think there needs to be an upgrade from 1 to 2. activities are not things like pics or videos :) so we can never mind.
the dev version doesn't come with pre-defined tokens phrases, will it be on the stable version ?
#8
it will not ship with default phrases.
the upgrade path is proly not going to happen, especially since there is functionality to generate activity records on an existing site.
but this is completely OT
#9
i wonder does anyone have a simple solution to pull in the social avatar as the main user $picture and image cache it? i'd like to do this automatically upon user login, and ideally prompt the user that this pic will be used (box pre-checked, continue). if user un-checks box, then they can either upload a pic or else a default pic will become $picture. i'm using gigya socialize btw and really green on drupal so any guidance here would be greatly appreciated.
cheers -wil
#10
WAYYYYY off topic. Please this issue is closed and Your question has nothing to do with the issue
but i help you out anyways. http://drupal.org/project/avatar_selection
#11
I have image_cache and when I try to add an image field to the default view, the images do not appear.
You mentioned in an earlier post that if the user table relationship exists (which it does) then this should work. With respect to this, when I configure the image field in views, at the top where you have the relationship drop down, only 'node' is available. Could this be the problem?
I also have the problem of the UR_api not being available to the view, this maybe relevant to this problem, but perhaps not so I will start a new thread or find a similar one for that.
#12
image_cache != image_cache profiles. You can't use image_cache for profile pictures, or you are using nodes for profiles (like content_profile module). The field you most likely want to use is User > Picture.
This is most definitely doable so this issue is closed, and not a place for general Views help. If you are still having a serious issue and have in good faith tried hard to create the View following the instructions listed in this thread, please open a new issue and export your View to share with us.
#13
I appologise, I should have mentioned that I am using content profile and therefore user > picture is not adequate.
My avatars are an image content belonging to a content profile node.
#14
I have this working fine on my end with content profile.
You have a relationship Activity: User already assuming you are using the existing view as a starting point. Add a second relationship to Node: Content Profile with a relationship to Activity: User. Check require this relationship, and pick your content type. Then head down to Fields, pick your picture field, and make sure you use a reference back to the Content Profile.
In short, my "Relationships" looks like this:
Activity: Node
Activity: User
(Activity - User) Node: Content Profile
My field looks like:
(Content Profile) Content: Picture MyImageCachePreset
#15
Turning this into a task so that I remember to update the Views documentation for 2.x - Thank you.
#16
Bump. You wanted to document something sirkitree ??
#17
When I get some downtime, yes, definitely.