Quote:
Originally posted by djr
How can I enable full extracts for this specific user, but limited extracts for all others?
|
What you did it is uncorrect. (Revert your modification to original)You have to edit admin/functions:
Find:
PHP Code:
$touser['username']=unhtmlspecialchars($touser['username']);
After that replace the part:
PHP Code:
eval("\$emailmsg = \"".gettemplate("email_notify",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_notify",1,0)."\";");
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
As:
PHP Code:
if ($touser['userid']==X){
eval("\$emailmsg = \"".gettemplate("email_notify_special",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_notify",1,0)."\";");
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
}
else
{
eval("\$emailmsg = \"".gettemplate("email_notify",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_notify",1,0)."\";");
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
}
(Replace X with userid of your special user.)
Now add a new template named email_notify_special, the content is same with email_notify template, just one modification:
Replace $logic_mes_sum as $message in the new template.
I didnt test this but it should work..
Enjoy..

Logician