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 avatars are showing at that size, however since the core avatars for messages are 64x36 px, they only show at that size. However, the core profile avatar is 128x72 px. How would I go about having that larger image show as the avatar on message posts in topics?
- Garywoo 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'));
});