Announcement

Collapse
No announcement yet.

How to make round avatars in vB5

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NumNum
    replied
    Any clear instruction on making the postbit avatar bigger like you have on this site?

    I thought I had it from the vB site, but founds various css code, config.php changes, but really just a debacle of ideas.

    Leave a comment:


  • NumNum
    commented on 's reply
    editing

  • glennrocksvb
    replied
    That's what I was trying to avoid to disproportionate the avatar size. But if that's fine with anyone, then forcing a fixed square size like Mark.B did should resolve the oval avatar issue.

    Leave a comment:


  • Mark.B
    replied
    I'm pretty sure I got round the oval avatar thing by changing the max-width and max-height values in css to just width and height.

    Obviously you then stretching and skewing going on but I think it looks good with a uniform size despite that.

    Leave a comment:


  • glennrocksvb
    replied
    Oval avatars will occur if the avatars are not square. Rectangular avatars will never be perfectly round unless you dynamically clip it but you don't want to do that and lose parts of the avatar just to make it square.

    Leave a comment:


  • FatGuyInALittleCoat
    replied
    Would someone be so kind to help me with this round avatar trick? I'd like to keep the default avatar size, so I added Glenn's css from his first post and it worked great but the avatars are not all the same circumference on desktop (see screenshots #1 - #3). The postbit avatars are different sizes along with Who's Online and Last Post. Any ideas how this can be fixed? Css is below as well.

    #1 (NoPantsChico has round avatar in Postbit)


    #2 (multiple images different sizes)


    #3 (Last Post avatar on Channel page)



    .avatar img,
    .avatar:not(.medium) > img,
    .b-avatar:not(.b-avatar--m) > img,
    .b-avatar--thread > img,
    .b-avatar--s > img,
    .b-comment .b-avatar img,
    .b-comp-menu-dropdown__trigger-avatar,
    .profile-sidebar-widget .profileContainer .profile-photo-wrapper .profile-photo,
    .b-avatar--pmchat,
    .b-pmchat__participants-avatar,
    img.avatar,
    img.b-avatar {
    border-radius: 100%;
    }

    .avatar,
    .b-avatar,
    .b-userinfo .b-avatar--thread {
    border: 0;
    }


    Thanks so much for your assistance.

    Leave a comment:


  • GeirS
    replied
    I've added the code provided, and now I've got rounded Avatars! Looks really great. Once again: TY very much!

    Cheers!!

    Leave a comment:


  • GeirS
    replied
    Yes, I do!
    And FINALLY I saw how to upload my avatar: Suddenly an "Edit avatar" emerged in that same (empty) position.

    Rounded avatars, here I come !!

    Thanks (again!)


    Cheers!

    Leave a comment:


  • glennrocksvb
    replied
    Don't you see Edit Avatar button when you hover on your avatar in the Profile page?

    Leave a comment:


  • GeirS
    replied

    Picture Uploading Permissions
    Can Upload Custom Avatars (yes)
    Yes No
    Can Upload Animated Avatar (yes)
    Yes No
    Custom Avatar Maximum Width (pixels)
    200
    Custom Avatar Maximum Height (pixels)
    200
    Custom Avatar Maximum File Size (bytes)1KB = 1024 bytes
    100000
    Can Upload Images for Signature (yes)
    Yes No
    Can Upload Animated GIF for Signature (yes)
    Yes No
    Signature Image Maximum Width (pixels)
    500
    Signature Image Maximum Height (pixels)
    100
    Signature Image Maximum File-size (bytes)
    10000
    YES on all acounts.
    Can't even find the place where you're allowed to upload an avatar when joining the forum

    Cheers!

    Leave a comment:


  • glennrocksvb
    replied
    In the Usergroup Manager in AdminCP, enable "Can Upload Custom Avatars" permission.

    Leave a comment:


  • GeirS
    replied
    I'd love to have the rounded avatars for my members-to-be ... but I just can't find any option to allow upload avatars in the first place!
    I know vb5 (I've got 5.3.2.) has a ton of settings, and I've searched in vain both high and low to find a setting that denies/allows to upload avatars.

    Any last-resource help?

    Cheers!

    Leave a comment:


  • glennrocksvb
    replied
    Originally posted by Mark.B View Post
    Looks like this fixes it:
    Code:
    .avatar.xx-small {
    border-radius: 100%;
    }
    Thanks, Mark.B! I've updated the first post with your fix. I made it more generic by using img.avatar and img.b-avatar selectors to cover all <img> tags (now and in the future) with avatar classes regardless of the avatar size (x-small, xx-small, etc.)

    Leave a comment:


  • Mark.B
    replied
    Looks like this fixes it:
    Code:
    .avatar.xx-small {
      border-radius: 100%;
    }

    Leave a comment:


  • Mark.B
    replied
    I found another area where they remain square...oddly....guest avatars in Who's Online (the page).

    i will have a look later on and see if I can find some CSS to sort this.

    Leave a comment:

Users Viewing This Page

Collapse

There is 1 user viewing this forum topic.

  • Guest Guest

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"