postergame,
I think the simplest way to do this would be to create a new field in create account, and then include that entry in the e-mail you receive from create account success.
So, first you'd create a form in tpl_modules_create_account.php with something like this:
Code:
<?php echo zen_draw_textarea_field('ourReferralBox', '45', '3'); ?>
I'm not terribly familiar with the inputs of the draw textarea field function, you'll have to change the parameters to fit your needs.
Then in /includes/modules/yourtemplate/create_account.php, towards the end where it's adding on extra info you'd want to modify:
Code:
$extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'] , $account->fields['customers_email_address']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail('', SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO, SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT . ' ' . EMAIL_SUBJECT,
$email_text . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'welcome_extra');
} //endif send extra emails
such that:
Code:
$extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'] , $account->fields['customers_email_address']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
zen_mail('', SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO, SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT . ' ' . EMAIL_SUBJECT,
$email_text . $_POST['ourReferalBox'] . "\n" . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'welcome_extra');
} //endif send extra emails
For this to work, you have to receive the account creation e-mails, and read them. If you like this and need help tweaking it or such, let me know.
--Joe