Custom Avatar Enabler/Disabler
1.01
This is just a fix for Agelmar's version. It was not very compatible and had a color bug. I've fixed both.
Now you can disable the selecting of custom avatars but still have avatars availible. If a custom avatar is already set, it will not change it, but the user will no longer be able to set a custom avatar if you have it disabled. All of this is controlled with a single checkbox in the Forum Preferences and Settings.
Agelmar, Curtis Brown (curiouschild@geocities.com)
http://www.scmillennium.com
Sources/Admin.pl
# Set as 0 or 1 if box was checked or not
my $fi;
push @onoff, 'allowcustompics';
if ($allowpics) { $allowpicschecked = "checked" }
if ($allowcustompics) { $allowcustompicschecked = "checked" }
$txt{'746'}
$ageltxt{'1'}
\$allowpics = $allowpics; # set to 1 to allow members to choose avatars in their profile
\$allowcustompics = $allowcustompics; # set to 1 to allow members to choose custom pictures for avatars, 0 to disable
english.lng
$txt{'749'} = "The 'number of posts' box can only contain digits.";
$ageltxt{'1'} = "Allow custom Avatars?";
$ageltxt{'2'} = "Custom Avatars are disabled. Please email the webmaster if you have a picture you would like added to the available avatars.";
Settings.pl
$allowpics = 1; # set to 1 to allow members to choose avatars in their profile
$allowcustompics = 1; # set to 1 to allow members to choose custom pictures, 0 to disable
Sources/Profile.pl
if ($memsettings[13] =~ m~\Ahttp://~) {
$pic = 'blank.gif';
$checked = ' checked';
$tmp = $memsettings[13];
}
if($allowcustompics) {
if ($memsettings[13] =~ m~\Ahttp://~) {
$pic = 'blank.gif';
$checked = ' checked';
$tmp = $memsettings[13];
}
}