Email Address Account Reminder 1.0 This mod allows for sending account/password reminders based on email address rather than account. This helps when an email address is already used, and the board suggests to use the reminder page, while this does not have the option to do so based on email address Enjoy! Author's Email: francesco@fampeeters.com F Peeters http://www.fampeeters.com english.lng $txt{'69'} = "Email"; $ARtxt{'1'} = "Enter either a username or email address, as required"; $ARtxt{'2'} = "Memberlist file not found!"; $ARtxt{'3'} = "This email address was not found!"; Sources\LogInOut.pl $mbname $txt{'36'} $txt{'194'} $ARtxt{'1'} $txt{'35'}:
$txt{'69'}:

$txt{'193'}

~; $yytitle = "$txt{'669'}"; &template; exit; }
sub Reminder3 { $email = $FORM{'email'}; fopen(FILE, "$memberdir/memberlist.txt") || &fatal_error("$ARtxt{'2'}"); @users=; fclose(FILE); $password = undef; $name = undef; $status = undef; foreach $users (@users) { chomp ($users); fopen(FILE, "$memberdir/$users.dat") || &fatal_error("$txt{'40'}"); @member=; fclose(FILE); $temp = $member[2]; chomp($temp); if (lc($temp) eq lc($email)) { $user = $users; $password = $member[0]; $name = $member[1]; $email = $member[2]; $status = $member[7]; } } if (!$name) { &fatal_error("$ARtxt{'3'}"); } chomp($user); chomp($name); chomp($email); chomp($password); chomp($status); $subject = "$txt{'36'} $mbname : $name"; &sendmail($email, $subject, qq~$txt{'711'} $name,\n\n$mbname ==>\n\n$txt{'35'}: $user\n$txt{'36'}: $password\n$txt{'87'}: $status\n\n$txt{'130'}~); $yymain .= qq~

$mbname $txt{'36'} $txt{'194'}
$txt{'192'}: $user

$txt{'193'}

~; $yytitle = "$txt{'669'}"; &template; exit; }
YaBB.pl if(!(($action eq 'login') || ($action eq 'login2') || ($action eq 'register') || ($action eq 'register2') || ($action eq 'reminder') || ($action eq 'reminder2'))) { &KickGuest; } if(!(($action eq 'login') || ($action eq 'login2') || ($action eq 'register') || ($action eq 'register2') || ($action eq 'reminder') || ($action eq 'reminder2') || ($action eq 'reminder3'))) { &KickGuest; } elsif ($action eq 'reminder2') { require "$sourcedir/LogInOut.pl"; &Reminder2; } elsif ($action eq 'reminder3') { require "$sourcedir/LogInOut.pl"; &Reminder3; }