Showing default pictures inside the profile page

taroza - October 6, 2008 - 09:02
Project:ImageCache Profiles
Version:5.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I want to show a block with user pictures (let's say random users) on a user page. This will cause the large images to be shown inside the block, whereas I'd expect the default ones.

See comment http://drupal.org/node/225816#comment-1041610 for some more info.

#1

dbirider - November 12, 2008 - 11:37

I'm having this same problem. Has anyone come across a solution?

#2

steve22 - November 15, 2008 - 19:53

I ran into same problem when i tried to show avatars from user relationship in the user page.

#3

Gabriel Radic - November 28, 2008 - 09:13

Same problem here: a block with a list of users with their avatars shows the profile image instead of the default.

#4

dbirider - December 6, 2008 - 01:26

I came up with a potential solution. I still a bit clueless with drupal, but this seems to work. If you have your own profile template page, you can display the avatar using the following snippit:

<?php if ($account->picture) { print theme('imagecache', 'Your custom image cache name', $account->picture, $alt, $alt, '', false); } ?>

 
 

Drupal is a registered trademark of Dries Buytaert.