The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 additional email phrases which contain different welcome messages. I know I need a conditional in register.php kind of like the one below, which doesnt work. Do I need to pull the ['field5'] from an array into a variable in order to do the conditional, or should it work with $vbulletin->userinfo['field5'] or $userinfo[field5], or something similar? Code:
// Modification Conditional for Welcomemail options
if ($userinfo['field5']==1024)
{
eval(fetch_email_phrases('welcomemail2'));
} else {
eval(fetch_email_phrases('welcomemail'));
}
vbmail($email, $subject, $message);
// End Modification
Please help. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|