• Resolved N3k0

    (@n3k0)


    Hi team…

    After the last update, my avatars shows in low resolution in the coments ??

    This a ej.

    And this is the custom css I have

    .comments-area{width:auto;}
    #wpcomm .wc-comment .wc-comment-left .avatar { width: 80px;
    border-radius: 50%; }
    #wpcomm .wc-comment .wc-comment-left { width: 90px; }
    #wpcomm .wc-comment .wc-comment-right{margin-left: 110px; }

    Cheers!

    https://www.ads-software.com/plugins/wpdiscuz/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    You should not increase avatar sizes. Because it’s being generated with 48x48px size. You’re trying to display 48px avatar with 90px. This s the reason. We’ll add an option to manage avatar sizes. But for now you can change 48 to 90 in wpdiscuz/utils/class.WpdiscuzHelper.php file.

    Code Line:

    $authorAvatar = $this->optionsSerialized->wordpressShowAvatars ? get_avatar($authorAvatarField, 48, '', $authorName) : '';

    Thread Starter N3k0

    (@n3k0)

    Thx! ?? that will be great.

    Cheers!

    Edit:

    Sorry, I cant find that line in the file… i have this:

    <?php if ($this->optionsSerialized->wordpressShowAvatars) { ?>
    
                                <?php $authorName = $current_user->ID ? $current_user->display_name : 'avatar'; ?>
    
                                <div class="wc-field-avatararea">
    
                                    <?php echo get_avatar($current_user->ID, 90, '', $authorName); ?>
    
                                </div>
    
                            <?php } ?>

    But nothing happens :p

    Cheers!

    Plugin Author gVectors Team

    (@gvectors-team)

    Ah! Sorry, you should search in /wpdiscuz/templates/comment/class.WpdiscuzWalker.php file. Please change back all you’ve done in wpdiscuz/utils/class.WpdiscuzHelper.php file.

    I’d like to help with this issue, I’ve encountered the same thing.

    I was looking for a way to do a pull request, but the Git repo I found is pretty out of date.

    Is there a way I can help by sending over the code I used to fix this?

    Thanks,
    Robert

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Low Res Avatars’ is closed to new replies.