Actually, Rob, there is only
one place you need to replace email_lostpw with your new template's name, and that is in register.php.
In my hack instructions it says:
Code:
Find:
$getjoindate=$DB_site->query_first("SELECT joindate FROM user WHERE userid='$userid'");
$activateid=$getjoindate[joindate];
eval("\$message = \"".gettemplate("email_activateaccount",1,0)."\";");
eval("\$subject = \"".gettemplate("emailsubject_activateaccount",1,0)."\";");
REPLACE it with:
if ($randpassword=="0") {
$getjoindate=$DB_site->query_first("SELECT joindate FROM user WHERE userid='$userid'");
$activateid=$getjoindate[joindate];
eval("\$message = \"".gettemplate("email_activateaccount",1,0)."\";");
eval("\$subject = \"".gettemplate("emailsubject_activateaccount",1,0)."\";");
} else {
eval("\$message = \"".gettemplate("email_lostpw",1,0)."\";");
eval("\$subject = \"".gettemplate("emailsubject_lostpw",1,0)."\";");
}
This refers to
register.php. So, in that bit - and ONLY that bit - you will want to replace email_lostpw with your new template's name, as well as emailsubject_lostpw with a new template's name (for the subject message of your combined Welcome + Password to new user).
So, to sum this up:
1) Create two new template, say
email_newpw and
emailsubject_newpw. These two templates should resemble in content the lostpw templates, only with your Welcome text.
2) Add my hack EXACTLY like the instructions says, but before you upload the hacked files run a SEARCH/REPLACE in
register.php for
_lostpw and replace it with
_newpw.
That's it.
Am I making any sense? Sorry, I'm tired