As described in #615458: Doesn't work with site_user_list module, site_user_list.module and gravatar.module don't work well together. The gravatar dev explained that site_user_list doesn't use the theme calls for avatars in its avatar output.

Could it please?

Comments

pooneil’s picture

Status: Active » Fixed

Hi turadg,

I am a new co-maintainer of this module. I changed the default settings for the avatar column to use the theme function rather than the picture database column. This will be included in the next release. You can, however, achieve this already by using the following settings:

Template:

    global $user; return theme('user_picture', $user);

Conditional Column:

    @uid

Check the box "use eval for this template".

N.B. In my installation, at least, if I have a user uploaded photo, that will trump the gravatar, even if the box is checked on the user settings page that says "Replace my user picture with the gravatar for my e-mail address." In order for the theme function to display the gravatar, I needed to remove my user uploaded photo. This behaviour appears to happen site-wide (at least in my installation).

Regards,
Anthony

pooneil’s picture

Hi turadg,

There was a mistake in my last message to you. The correct code for the picture is:

$account = user_load($r['@uid']); return theme('user_picture', $account);

Currently, the "$r" array can't be accessed, but I've already committed changes to fix this which will be included in the next release.

Regards,
Anthony

Status: Fixed » Closed (fixed)

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