Garywoo
10 years agoGuide
Show core avatars larger on messages
The default core avatars for messages is a little small in my opinion at 64x36 px. I've set the Max. Avatar (Message (px)) size to 128x72 px on the skin properties in the studio and custom avatar...
Sign in to react to this post
- 10 years agoGarywoo How do you plan to insert that custom component in the message list (that's what you're talking about right?) without replacing the whole standard component (which is a bad idea, you will lose all menus kudos etc.)?
If you have a look at the urls for avatars: http://lithosphere.i.lithium.com/t5/image/serverpage/avatar-name/phones/avatar-theme/2delicious/avatar-collection/technology/avatar-display-size/message
you see that "message" at the end, you can just replace that with "profile", then you'll get a bigger version of the avatar, e.g.
http://lithosphere.i.lithium.com/t5/image/serverpage/avatar-name/phones/avatar-theme/2delicious/avatar-collection/technology/avatar-display-size/profile
in your site you'd have to do that via jQuery, basically something like this:
jQuery('.lia-user-avatar-message').each(function() {
var $img = $(this);
$img.attr('src', $img.attr('src').replace('/message', '/profile'));
});