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.
By noizyboy on
is there a way to add user icons to the recent comments block?
I've tried a few tweaks of the SQL query so as to pull in the relevant users picture field, but this seems to add a whole lot of overhead to the process, and significantly slows things down.
there must be a more efficient way - any help appreciated.
Comments
In 4.6 if you go to admin >
In 4.6 if you go to admin > themes >settings (curious place to put it),
You can check the User pictures in posts and User pictures in comments
I believe if an image exists, it will add it automatically if I remember correct from the node template. Hope that helps.
yeah, that works for
yeah, that works for comments and posts, but not the 'recent comments block'.
currently using this thread for a few ideas.
You're quite correct, you'd
You're quite correct, you'd have to write a custom query like what drupal does for its other blocks.