Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
image style: default
<td><div>
<div class="user-picture"> <a title="View user profile." href="/users/admin" class="views-ajax-processed-processed"><img title="admin's picture" alt="admin's picture" src="/sites/default/files/pictures/no_avatar.gif"></a> </div>
</div></td>
image style: any imagecache presset
<td><div>
</div></td>
can u check it please?
Comments
Comment #1
dawehnerViews doesn't allow you to change the imagecache preset at least in views.
Comment #2
dgastudio CreditAttribution: dgastudio commentedsorry, i'll try to explain myself better.
i want to create view of user names and avatars.
Added fields:
User: Name
User: Picture
i don't have installed imagecache profiles, but look attached screenshot.
i mean, it's possible to select a preset for user avatar. It doesnt work, but it's possible..
Comment #3
dgastudio CreditAttribution: dgastudio commentedComment #4
dgastudio CreditAttribution: dgastudio commentedok, found it. it's works with avatar uploaded by users, but not with default avatar defined by admin in user profile config.
Comment #5
dawehnerI first had the same troubles though you have to setup a path like public://picture/filename.png for the default image.
I know that is confusing but it's the same bug if you choose 'default' as imagestyle and rely on the one provided by core.
Comment #6
dgastudio CreditAttribution: dgastudio commentedok, thanks.
Comment #7
fraweg CreditAttribution: fraweg commentedOh man...THANKS A LOT..I have work the whole day on this and can not solve it. Now everything works fine!
You saved my day..
Best regards
Frank
Comment #8
batigol CreditAttribution: batigol commented@fraweg thanks for letting me know about this topic. @dereine thx for the fix, it's working like a charm.
I try to describe it better:
You need to go Configuration -> Account settings and set Default picture path to something like this: public://user-pictures/no_user_photo.jpg
Comment #10
geerlingguy CreditAttribution: geerlingguy commentedSee also: #1413824: Field description should explain url schema for default user pictures to be example: public://pictures/default.jpg.
Comment #11
weeger CreditAttribution: weeger commented#5 works
My version : public://default_images/logo-blank.png