echo ’From: ’ . $from;
exit;
echo ’to: ’.$to.’<hr>’;
echo ’from: ’.$from.’<hr><pre>’;
print_r($fields);
exit;
to: [email protected] from: you,,me Array ( )
print_r($params);
exit;
[from] => you,,me
Looks like part of your message doesn’t display - perhaps one of the [ ] in the fields array plays havoc on the BB code parsing I’ve edited your post and replaced some of the brackets.
Are you running this in 0.96 ?. Here’s an outrageous little test.
Instead of having &from=`[+email+]` make it &from=`((email))` and update line 420 to read
<?php $from = str_replace('((email))',$fields['email'],$from); ?>
Does that work? If so I have the suspicion that the order in which place holders are evaluated has changed and the [+email+] is replaced before eForm sees it.
Index: /tattoo/branches/095dev/manager/includes/document.parser.class.inc.php =================================================================== --- /tattoo/branches/095dev/manager/includes/document.parser.class.inc.php (revision 2033) +++ /tattoo/branches/095dev/manager/includes/document.parser.class.inc.php (revision 2166) @@ -2219,4 +2219,5 @@ $t= preg_replace('~\[\!(.*?)\!\]~', "", $t); //snippet $t= preg_replace('~\[\((.*?)\)\]~', "", $t); //settings + $t= preg_replace('~\[\+(.*?)\+\]~', "", $t); //placeholders $t= preg_replace('~{{(.*?)}}~', "", $t); //chunks return $t;
# Remove unwanted html tags and snippet, settings and tags
function stripTags($html, $allowed= "") {
$t= strip_tags($html, $allowed);
$t= preg_replace(’~\[\*(.*?)\*\]~’, "", $t); //tv
$t= preg_replace(’~\[\[(.*?)\]\]~’, "", $t); //snippet
$t= preg_replace(’~\[\!(.*?)\!\]~’, "", $t); //snippet
$t= preg_replace(’~\[\((.*?)\)\]~’, "", $t); //settings
//$t= preg_replace(’~\[\+(.*?)\+\]~’, "", $t); //placeholders
$t= preg_replace(’~{{(.*?)}}~’, "", $t); //chunks
return $t;
}