1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mass change for avatar sizes

Discussion in 'Troubleshooting and Problems' started by Moshe1010, Jun 20, 2013.

  1. Moshe1010

    Moshe1010 Well-Known Member

    Avatars on my vB board were limited to 100X100 pixels, while on XF they should be at least 200X200. Thus, most of my users have small avatars, especially when clicking on their user and getting the profile card pop-up. Is there a way to make user avatars bigger even if it meas to lose image quality?

  2. Martok

    Martok Well-Known Member

    Unless you've changed the size of avatars in forum posts, 100x100 is fine as the post size displayed is 96x96. It's only on profile pages and membercard that you'll notice the small avatar. Personally I'd rather have a small avatar than a larger, pixellated one.
  3. Moshe1010

    Moshe1010 Well-Known Member

    That's my problem, here:
  4. Martok

    Martok Well-Known Member

    Yes and that's like I said, it's only on the membercard (your pic) and the profile page. It's not an issue in forum posts.

    I too have users who haven't updated their avatars since we moved from phpBB, so they have 100x100 ones. I even made a post about it so they all knew. Some updated, some didn't. Yes, I'd like them too but at the end of the day, it's not really a big issue when it's not visible in forum posts. I'd rather see small avatars in membercards and profiles than scaled-up pixellated ones.

    Maybe you could set up a promotion for users who have a 200x200 avatar? You could give them some additional features/permissions/functionality on the forums if they do. You'd have to manually apply it, of course, but presumably you're checking members' avatars anyway to know you have this 'issue'. You could get them to post in a thread to say they've updated their avatar, you can then check and then promote them. You could even set up a notice to remind everyone of your request to update their avatars to larger ones.
    Moshe1010 likes this.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Add this:

    .memberCard .avatar img
    	width: 192px;
    	height: auto;
    .memberCard .avatarCropper img
    	top: 0px !important;
    	left: 0px !important;
    This will inflate small avatars to fill the membercard box, but it has the side effect of defeating the cropping for larger avatars (such as mine) where the avatar is taller than the box and the user has cropped it to display from the middle instead of from the top. But if most of your avatars are small then it doesn't matter so much. Fixing this side effect requires extra effort (template hack or file mod).

    Screen shot 2013-06-20 at 3.13.41 PM.png
    Brandon Sheley and Moshe1010 like this.
  6. Moshe1010

    Moshe1010 Well-Known Member

    Thanks Jake!
  7. russoroni

    russoroni Active Member

    Hey @Jake Bunce can you please tell me how I can fix this...

    Image 5.png

    I'm not sure but I think I messed around with the cropper php files back when I was shrinking the profile page sidebar width but I cant remember. I tried a couple different photos with different dimensions and this keeps happening.

  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page