ImgSize SP1/1.1
1.22
Features:
This mod let users apply width and height of their own picture in profile and then resizes it to max. height or width without stretching.
Admin set max. width and heigth for userpicture in profile and max. width and heigth for userpicture in posts from AdminCenter.
Centers the userpicture in posts.
Instructions:
Apply mod.
Upload english.lng, Admin.pl, AdminEdit.pl, Display.pl, Load.pl, Profile.pl and Subs.pl
REMEMBER: AFTER APPLYING AND UPLOADING THE MOD - GO TO ADMINCENTER AND SET MAX. HEIGHT AND WIDTH FOR PICTURES IN POSTS.
Carsten
http://www.langaa-net.dk/forum
english.lng
$txt{'476'} = "Userpic Width (0 = disable limit)";
$txt{'476'} = "Max. Userpic size in Profile (0 = disable limit)";
$txt{'796'} = "Your Instant Messages:";
$siztxt{'01'} = "Userpic Width x Height";
$siztxt{'02'} = "The Userpic Width box can only contain digits.";
$siztxt{'03'} = "The Userpic Height box can only contain digits.";
$siztxt{'04'} = "Max. Userpic size in Posts (0 = disable limit)";
$siztxt{'05'} = "Width:";
$siztxt{'06'} = "Height:";
Sources/Admin.pl
unlink("$memberdir/$currentmem.imconfig");
if (-e "$memberdir/$currentmem.siz") { unlink("$memberdir/$currentmem.siz"); }
Sources/AdminEdit.pl
$txt{'476'}
$txt{'477'}
$txt{'476'}
$siztxt{'05'}
$siztxt{'06'}
$siztxt{'04'}
$siztxt{'05'}
$siztxt{'06'}
if ($FORM{'userpic_height'} =~ /\d+/) { $userpic_height = $FORM{'userpic_height'}; }
else { $userpic_height = 65; }
if ($FORM{'postuserpic_width'} =~ /\d+/) { $postuserpic_width = $FORM{'postuserpic_width'}; }
else { $postuserpic_width = 65; }
if ($FORM{'postuserpic_height'} =~ /\d+/) { $postuserpic_height = $FORM{'postuserpic_height'}; }
else { $postuserpic_height = 65; }
\$userpic_height = $userpic_height; # Set pixel size to which the selfselected userpics are resized, 0 disables this limit
\$postuserpic_width = $postuserpic_width; # Set pixel size to which the selfselected userpics in posts are resized, 0 disables this limit
\$postuserpic_height = $postuserpic_height; # Set pixel size to which the selfselected userpics in posts are resized, 0 disables this limit
Sources/Display.pl
$userprofile[13]$userprofile[12]