The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
New User Welcome Email base on profile field
Hi,
I'm trying to figure out how to change the welcome email message that a new user receives based on a field they filled out on the registration page. I've added a new email body text phrase: welcomemail2 which contains the customized message. In register.php I think I've found the location for the conditional. Code:
// activate account $username = unhtmlspecialchars($userinfo['username']); if ($vbulletin->options['welcomemail'] AND !$userinfo['posts']) { if ($vbulletin->userinfo['field5']=="1024"){ // My mod eval(fetch_email_phrases('welcomemail2')); // My mod vbmail($userinfo['email'], $subject, $message); // My mod } else { //My mod eval(fetch_email_phrases('welcomemail')); vbmail($userinfo['email'], $subject, $message);} } Thanks! :-) Some PHP God out there has to have some insight on this one, no? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|