Announcement

Collapse
No announcement yet.

Avatar size in topic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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

    TalkNewsUK - My vBulletin 5.5.4 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #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


      • #4
        Originally posted by Mark.B View Post
        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


        • #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


          • #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).

            GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

            Comment


            • #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


              • #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 11th Jul '14, 4:24am.

                Comment


                • #9
                  Originally posted by Hummie View Post
                  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

                  GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                  Comment


                  • #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


                    • #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

                      TalkNewsUK - My vBulletin 5.5.4 Demo
                      AdminAmmo - My Cloud Demo

                      Comment


                      • #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


                        • #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.

                          Comment


                          • #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


                            • #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...
                              X