View Single Post
  #9  
Old 22nd August 2018, 07:27
outtyrox outtyrox is offline
Senior Member
 
Join Date: Apr 2015
Posts: 59
Default
Quote:
Originally Posted by slycrespo2 View Post
I don't want radius, I just want bigger avatar picture (without quality loss)...

Bump: Please help somebody...

In Cpanel go to your /library/functions/functions_memberAvatar.php


NOTE: FIRST MAKE A BACKUP OF THE FILE FIRST!!! YOU'VE BEEN WARNED!

Change the size restriction here. This should be what you want to edit. (Note: You might have to edit the template styles.css and other .css in the template once you change the default sizes of the avatar. Recommend clone the template first. Then edit the clone.)

Code:
    require_once(REALPATH . "/library/classes/class_upload.php");
    $Small = new Upload($NewAvatar);
    if( $Small->uploaded ) 
    {
        $Small->image_resize = true;
        $Small->image_x = 48;
        $Small->image_y = 48;
        $Small->file_new_name_body = $memberid;
        $Small->Process($AvatarPath . "s/");
    }

    $Medium = new Upload($NewAvatar);
    if( $Medium->uploaded ) 
    {
        $Medium->image_resize = true;
        $Medium->image_x = 96;
        $Medium->image_y = 96;
        $Medium->file_new_name_body = $memberid;
        $Medium->Process($AvatarPath . "m/");
    }

    $Large = new Upload($NewAvatar);
    if( $Large->uploaded ) 
    {
        if( $width != 192 ) 
        {
            $Large->image_x = 192;
            $Large->image_ratio_y = true;
            $Large->image_resize = true;
        }

        $Large->file_new_name_body = $memberid;
        $Large->Process($AvatarPath . "l/");
    }

}
Reply With Quote