How to display the default picture or user avatars in site user list module of drupal?

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


I was using default pictures for the users that doesn't upload any, but they don't get displayed by the site user list moduleof drupal.

Actualy What the template is doing is creating a URL based on what is in the database. If you look at the picture column of your users table, that is the value that is being substituted for @picture.

In my case the problem was the default template which was loading : <img src="/@_base/@picture" alt="" />, but @_base was empty, so i changed the template to <img src="/@picture" alt="" /> and it works well for me.

th euser list gets displayed along with the pictures. 

                                     

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.