PDA

View Full Version : Email notification upon new User Note?


Noctavia
05-24-2006, 09:15 AM
I have set up the User Notes on my forum so that people can see their own notes (not others) and can reply but not delete. I use this feature to inform them of when I have moved their threads, perhaps use it to inform them of some less than desirable posting etc. Is there a way to set it up so that when I add a new note, the user is emailed a note informing them a new user note has been added, and then gives them a link to view it?

noonespecial
10-19-2006, 05:38 AM
This would be very sweet.

Paul M
10-19-2006, 07:23 AM
Try this ;

Create a plugin linked to the usernote_donote hook.

Use this code;


vbmail_start();
if ($vbulletin->GPC['usernoteid'])
{
// Note Edited.
$subject = 'User Note Edited';
$message = 'Message for edited note.';
vbmail($vbulletin->userinfo['email'], $subject, $message);
}
else
{
// Note Added.
$subject = 'User Note Added';
$message = 'Message for added note.';
vbmail($vbulletin->userinfo['email'], $subject, $message);
}
vbmail_end();

Note: This is untested.

Caerydd
01-26-2007, 11:22 PM
I've tested it. Seems to work fine. I'm going to work on a version that sends PMs, and perhaps has an option to chose email or PM.

kushal
05-22-2007, 05:27 AM
yes, this works fine for me too. Is there a way to add the link to the entry or to the usernote with the email?

romeo12
04-20-2010, 04:09 AM
Would love to have an option of PM instead of email.