Oh.... here you go, with on/off switch in the CP as well, remember to use a full URL to their graphic. I cannot restrict byte size, but this will resize every graphic to 100x100.
###########
# in vars_display.cgi
#####
# find:
AllowSignatureImage => "YES",
#####
# Add immediately below:
AllowUserImage => "YES",
###########
# in cp_lib.cgi
#####
# find:
$vars_display{AllowSignatureImage} = "no";
######
# Add immediately below:
$vars_display{AllowUserImage} = "no";
######
# find:
print FILE qq!AllowSignatureImage => "$in{AllowSignatureImage}",n!;
#####
# add immediately below:
print FILE qq!AllowUserImage => "$in{AllowUserImage}",n!;
#######
# In cp_vars_display.pl
#####
# find:
&RadioField ("Allow Images in Signatures?", "AllowSignatureImage", "yes", "You may allow your users to put UBB code images in their signature. This is not advised unless you are sure users will not abuse the right.", "$vars_display{AllowSignatureImage}", "YES|Allow images in signatures.%%no|Do not allow images in signatures.");
#####
# Add immediately below
&RadioField ("Allow User Images?", "AllowUserImage", "yes", "You may allow your users display images under their Titles. This is not advised unless you are sure users will not abuse the right.", "$vars_display{AllowUserImage}", "YES|Allow user images.%%no|Do not allow user images.");
###########
# in public_topic_page.pl
######
# find:
} # end topic_top
sub topic_row {
#####
# add immediately below:
# get user image
my $user_image = $user_profile[20];
chomp ($user_image);
if ($user_image ne "") {
$user_image = qq~

~;
} else {
$user_image = "";
}
# can it be displayed?
if ($vars_display{AllowUserImage} eq "no") {
$user_image = "";
}
#####
# find:
$user_status
$member_number
#####
# add immediately below:
$user_image
#########################################
All done, upload all files, set the option on/off in the
Control Panel>General Display Settings for the new User Image setting & clear cache
Magnum
