
11-02-2004, 04:59 AM
|
|
|
Join Date: Feb 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by sv1cec
Well, if all you want to do, is to replace the PM sending with an e-mail sending, this is the code that sends the e-mail:
|
Actually I'd like it to do both so the member has no excuse that he didn't receive a warning. Can I just tack this on after the PM code?
Quote:
The 'if' concerns who sends the e-mail, people have requested that a "hidden warner" is used to send it. If you are not using that functionality, the code should be modified to:
PHP Code:
$messageb="";
eval('$messageb .= "' . fetch_template('warn_em') . '";');
$title="You have been warned";
$to=$user['userid'];
$fromemail=$bbuserinfo['email'];
$fromname=$bbuserinfo['username'];
vbmail($user['email'], $title, $messageb, false, $fromemail, '', $fromname);
Notice that you need to create a new template, called warn_em, the layout needs to be slightly different from the one used for the PM.
Good luck.
|
Thanks, I'll be using this one. I like to spread the abuse around :devious:
|