I made the appropriate changes to this hack for v 6.2. The following is JoshPet's code as modified, and is the only the code that needs to be changes (the earlier part of this thread is not required).
#
# Find this:
#
// -------------------------------------
// Now we need to mail them the password
if ( ($Loginname) && ($Email) ) {
$to = $Email;
$header = $mailer -> headers();
$subject = "{$ubbt_lang['PASS_SUB']} {$config['title']}";
$msg = "{$ubbt_lang['PASS_BODY1']} '$ip' {$ubbt_lang['PASS_BODY2']} "$Loginname". {$ubbt_lang['PASS_BODY3']} "$pass". ";
if ($config['verify']) {
$msg .= $ubbt_lang['DOVERIFY'] ." {$config['phpurl']}/verifyemail.php?verify=$Uid-$key&Cat=$Cat";
}
elseif ($config['userreg']) {
$msg .= $ubbt_lang['NEEDAPPROVAL'];
}
mail("$to","$subject","$msg",$header);
}
#
#BELOW it, add this:
#
// -------------------------------------
// Let's send the info to the admin - JoshPet
if ( ($Loginname) && ($Email) ) {
// Set this to the email you want the alert to go to
$adminalertemail = "
[email protected]";
$alertheader = $mailer -> headers();
$alertsubject = "A New User Has Registered: Username";
$alertmsg .= "You have a new user at your board.\n\n";
$alertmsg .= "Loginname: $Loginname \n";
$alertmsg .= "Displayname: $Displayname \n";
$alertmsg .= "Email: $Email \n";
mail("$adminalertemail","$alertsubject","$alertmsg",$alertheader);
}