View Full Version : Include Private Message text in notification email
How can I include the private message text in the email that notifies me of a new private message. I just need to know the variable to I can put it into the "phrases manager"
It was able to be done in vb2.x and it works for Reply Notification emails in vb3, so it will work once I know the variable name that holds the pmtext.
join to that requiest!!! BUMP!
weaver
05-31-2004, 12:42 AM
join to that requiest!!! BUMP!
Me as well. I didn't know you could do it for replies to PMs so you are one up on me.
culthero
10-01-2004, 01:02 PM
i changed the phrase $vbphrase[pmreceived] in the phrase manager to:
$touserinfo[username],
You have received a new private message at $vboptions[bbtitle]:
From: $bbuserinfo[username]
Subject:
To reply, click here to log in and read it:
$vboptions[bburl]/private.php
but this can be whatever you want. you just need something to search for in the ereg_replace:
then search private.php for
vbmail($touserinfo['email'], $emailsubject, $emailmessage);
and ABOVE that line, add the following:
$emailmessage = ereg_replace ( "Subject:", "Subject: ".$title."\n\n".$message, $emailmessage);
chinch
03-10-2005, 09:58 PM
can anyone post how to allow this ONLY for the admin?
MikaK
03-10-2005, 11:21 PM
i changed the phrase $vbphrase[pmreceived] in the phrase manager to:
$touserinfo[username],
You have received a new private message at $vboptions[bbtitle]:
From: $bbuserinfo[username]
Subject:
To reply, click here to log in and read it:
$vboptions[bburl]/private.php
but this can be whatever you want. you just need something to search for in the ereg_replace:
then search private.php for
vbmail($touserinfo['email'], $emailsubject, $emailmessage);
and ABOVE that line, add the following:
$emailmessage = ereg_replace ( "Subject:", "Subject: ".$title."\n\n".$message, $emailmessage);
Works super - now this is perfect:)
=M=
jpennington
08-10-2005, 05:06 PM
This works great -- I have been looking for this for a while.
Thanks!
Trana
01-31-2006, 01:12 AM
Does this work in 3.5.1? Or 3.5.x?
Doric
06-28-2006, 10:14 PM
The method listed above doesn't work for my installation, unfortunately - and I'd desperately like to have this functionality.
Version 3.5.4.
d8tabyte
08-14-2006, 02:54 AM
would a simple if statement to show the member belongs to a certain usergroup work here? I am trying to figure out if/how it would work for just the admin group - or even just a certain member ( me, as i have other admins).
using 3.5.1
Trana
08-14-2006, 03:18 AM
Yes, that would work. Also, 3.6 has new functionality in this area that you may want to look into.
bashy
08-14-2006, 03:02 PM
although i like this idea alot, i wouldnt use it myself due to i want the users to come to the site to read them :) great idea though
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.