Avatar size in topic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Devorian
    Member
    • Apr 2013
    • 39
    • 5.1.x

    Avatar size in topic

    Hello, i changed max avatar size and now its 450x450, but in user post avatar still small.
    How can i do it larger?
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    Add this to the template css_additional.css:
    Code:
    .avatar.medium > img {
        max-height:100px !important;
        max-width:100px !important;
    }
    Change the 100px to whatever size you wish.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • BirdOPrey5
      Senior Member
      • Jul 2008
      • 9613
      • 5.6.3

      #3
      That is only going to do a small part... There also needs to be CSS to expand the white background (or remove it) and also the width of the entire column needs to be expanded as well. Finally something will be needed to re-center the avatar as well.

      This isn't really something that was intended to be altered.

      Comment

      • Djinni2
        Member
        • Mar 2010
        • 80
        • 4.0.0

        #4
        Originally posted by Mark.B
        Add this to the template css_additional.css:
        Code:
        .avatar.medium > img {
        max-height:100px !important;
        max-width:100px !important;
        }
        Change the 100px to whatever size you wish.

        By autoit does not work?


        .avatar.medium > img {
        max-height:100px !important;
        max-width:auto !important;
        }

        Comment

        • Captain Atkin
          Member
          • Nov 2013
          • 47
          • 5.0.X

          #5
          This is something that a lot of my forum users have been requesting as well. The current avatar size is too small for most, as most of my users were use to having a larger avatar with VB4. I went into the AdminCP, and every time I tried to make them larger that way, it just stayed the same small size. Has there been any way found to make the avatars larger on VB5?

          Comment

          • glennrocksvb
            Former vBulletin Developer
            • Mar 2011
            • 4011
            • 5.7.X

            #6
            Try adding this in css_additional.css template:

            Code:
            .thread-view .b-avatar--m {
                height: 100px;
                width: 100px;
            }
            .thread-view .b-avatar--m > img {
                max-height: 100px;
                max-width: 100px !important;
            }
            Change 100px accordingly. This will only change the avatar size in the thread view (Posts tab).

            Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

            Comment

            • TLMD
              Senior Member
              • Sep 2012
              • 1766
              • 5.6.X

              #7
              Maybe it would be a good thing to add an option in the AdminCP that allowes to set custom avatar sizes for both the topic view and the profile? Then staff profiles could have an bigger avatar again (like it has been when this forum was running vB4).

              Comment

              • Hummie
                Senior Member
                • Nov 2007
                • 223

                #8
                This is something I was missing too from vB4. This css seems to have done the trick though. Thank you.

                Edit: Well, when I post a new post, it is small. when I refresh the page, it is larger. What's up with that?
                Last edited by Hummie; Fri 11 Jul '14, 4:24am.

                Comment

                • glennrocksvb
                  Former vBulletin Developer
                  • Mar 2011
                  • 4011
                  • 5.7.X

                  #9
                  Originally posted by Hummie
                  This is something I was missing too from vB4. This css seems to have done the trick though. Thank you. Edit: Well, when I post a new post, it is small. when I refresh the page, it is larger. What's up with that?
                  Take a look at http://www.vbulletin.com/forum/forum...tial-post-load

                  Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                  Comment

                  • Hummie
                    Senior Member
                    • Nov 2007
                    • 223

                    #10
                    Glenn, thanks for the info. I could try that, but then each time I upgrade the forum, that file will have to be edited and I do not think I want that added on me right now, so I will save this info for now.

                    Comment

                    • Mark.B
                      vBulletin Support
                      • Feb 2004
                      • 24286
                      • 6.0.X

                      #11
                      Currently the only solution is a file edit:

                      In file:
                      /core/includes/class_core.php

                      Up near the top are these two lines:
                      PHP Code:
                      define('FIXED_SIZE_AVATAR_WIDTH',  60);
                      define('FIXED_SIZE_AVATAR_HEIGHT'80); 

                      Edit the two numerical values to what you have chosen:
                      PHP Code:
                      define('FIXED_SIZE_AVATAR_WIDTH',  128);
                      define('FIXED_SIZE_AVATAR_HEIGHT'128); 

                      Then run both these:
                      AdminCP > Maintenance > General Update Tools > Rebuild Avatar Thumbnails
                      AdminCP > Maintenance > General Update Tools > Rebuild Customer Avatar Thumbnails

                      Should sort it.
                      MARK.B
                      vBulletin Support
                      ------------
                      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                      Comment

                      • Vilepickle
                        New Member
                        • Jan 2015
                        • 5
                        • 5.1.x

                        #12
                        So I changed the class_core.php and added CSS. Seems to work good. However, after posting the avatar size is not the same as when viewing the thread.

                        I've changed Avatar size to 200x200, but after hitting "Post Reply" the avatar is still small. vBulletin is actually rendering a smaller version of it. If I use Firebug to expand the dynamically-added avatar with 200px hard width, it gets distorted, so it's not rendering the 200x200 version.

                        When I refresh the thread the new post shows the 200x200 version.

                        Comment

                        • Stigur
                          Member
                          • May 2015
                          • 41
                          • 5.5.x

                          #13
                          That's the problem I've had as well. When posting a reply, the avatar is a lot smaller than it is supposed to be. But after reloading the page, it's back to normal. Sound like a bug which I hope the fix in a future update.
                          FlameofUdûn.net

                          Comment

                          • funky1
                            New Member
                            • Sep 2006
                            • 2
                            • 3.6.x

                            #14
                            I just installed vBulletin 5.1.7, I've read this thread, but am still not clear on all the steps necessary to make my avatars in "thread view" display at 128x128px.

                            If someone can put all the steps into a single post, that would be wonderful.

                            Thanks a heap!!!

                            Comment

                            • Haiwan88
                              Senior Member
                              • Jul 2015
                              • 126
                              • 5.1.x

                              #15
                              Same problem.

                              Ive used instructions in Post 6 and post 11, the Avatar ist enlarged but all new Posts or messages are with small avatar in Large box

                              Comment

                              Related Topics

                              Collapse

                              Working...