In your member.php file look for:
} else {
if ($moderatenewmembers==1) {
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_mod erateuser")."\");");
} else {
eval("echo standardredirect(\$bbtitle,\"".gettemplate("redire ct_registerthanks")."\",\"inde x.php\");");
}
}
}
}
and replace it with:
if ($moderatenewmembers==1) {
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_mod erateuser")."\");");
} else {
eval("\$message = \"".gettemplate("welcomeemail")."\";");
eval("\$subject = \"".gettemplate("welcomeemailsubject")."\";");
mail ("\"$username\" <$email>",$subject,$message,"From: \"$bbtitle User Manager\" <$webmasteremail>");
$username=urldecode($username);
eval("echo standardredirect(\$bbtitle,\"".gettemplate("redire ct_registerthanks")."\",\"inde x.php\");");
}
}
}
}
Then go to your control panel and add two new templates. Call the first one welcomeemail and put your welcome message in there like you have in your above message. Then create one called welcomeemailsubject and put the text they will see in the subject line of their email, ie: Welcome to Bike Forums.
They will also get the standard redirect that tells them to go to the forum as they do now but they will also get an error with your welcome message.
Give this a shot and let me know how it works. I tested it only on my board but it worked.
Parker
|