10375 Posts in 2190 Topics by 1707 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 993 Views |
-
Get referrer from UserForms?

3 June 2010 at 2:06am
UserForms saves the 'referrer' as a hidden text field. Is it possible to get this into the mail?
-
Re: Get referrer from UserForms?

4 June 2010 at 1:02pm
Not easily in the module. You would have to edit the core UserDefinedForm.php file and add a line around 569 to add the referrer to the list
// new code
$referrer = new SubmittedFormField();
$referrer->Name = "Referrer";
$referrer->Title = "Referrer";
$referrer->Value = urlencode($data['Referrer']);
$referrer->write();$submittedFields->push($referrer);
// existing code
$emailData = array(
"Sender" => Member::currentUser(),
"Fields" => $submittedFields
);
| 993 Views | ||
|
Page:
1
|
Go to Top |


