When trying use Views type user field user:avatar imagecache:myimagecache as result I get just picture (looks like something is different than in 6.x-2.0-beta10 where it worked fine). Any of imagcache presets from select list seems not working - I think it's bypassed - my other imagecaches used for cck filds in views works good, except user:avatar from core profile.

Comments

Grzegorz Zbiński’s picture

I've made research for similar stories and... I'm not quite sure it is imagecache bug...maybe imagecache_profile or both or views...
Here is my situation:
1) I got 'avatar' named imagecache preset (when constructing and modyfing drupal drop preview is changing, so I'm pretty sure, that imagecache is working)
2) I have user accounts, some of them using portraits.
I want to show recent users those who has portraits in block.
3) I have customfield module for views - it allows php snippets in views.
My solution:
1) Make user-type view ie. named 'recentuserwithpics'
2) Configure filter User: Portrait Yes
3) Configure sort criteria: User: Created date desc
4) Fields: 4a) User: Portrait with 'Exclude from display' checked
4b) User: Uid with 'Exclude from display' checked
4c) Customfield PHP with 'Exclude from display' checked
print theme('imagecache', 'avatar', $data->users_picture, $alt, $title, $attributes);
4d) Customfield PHP with 'Exclude from display' checked
print drupal_get_path_alias('user/'.$data->uid);
4e) User: Name with 'Rewrite output...' checked
Text: [phpcode]
Linkpath: [phpcode_1]
Alt text: [name]

Maybe there is shorter way to achieve it, but this one worked for me.

Greetings

Grzegorz Zbiński’s picture

Status: Active » Closed (fixed)

I found the reason, why avatars has gone in my case: Imagecache Profile and latest Realname conflict. There is a patch here:
http://drupal.org/node/1070102 (included in latest dev of Realname).

Greets