Page 1 of 1

Private message notification question

Posted: Tue Sep 21, 2004 8:23 pm
by thalador
I am using the stock code of

Code: Select all

You have received a new private message to your account on "{SITENAME}" from {FROM} and you have requested that you be notified on t
his event. You can view your new message by clicking on the following link:
and what I want it to do is add in the subject of that PM in the email. I have tried adding the {TOPIC_TITLE} variable and that doesnt work. Anyone know if there is a variable for this and what it is?

Thanks!

Posted: Tue Sep 21, 2004 8:46 pm
by Mav
should be easy enough with a bit of MODing
open privmsg.php
find

Code: Select all

'U_INBOX' =>
before, add

Code: Select all

					'PM_SUBJECT' => $privmsg_subject,
hopefully this variable will already be populated

open language/lang_english/email/privmsg_notify.tpl
incorporate {PM_SUBJECT} however you wish :)

Posted: Tue Sep 21, 2004 9:23 pm
by thalador
Tried that. Change my privmsg_notify.tpl to this

Code: Select all

Subject: New Private Message has arrived^M
Charset: iso-8859-1^M
^M
Hello {USERNAME},^M
^M
You have received a new private message to your account on "{SITENAME}" from {FROM} with the subjecy of {PM_SUBJECT} and you have requested that you be notified on this event. You can view your new message by clicking on the following link:^M
^M
{U_INBOX}^M
^M
Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile.^M
^M
{EMAIL_SIG}
and this is what it emails me
You have received a new private message to your account on "75th Ranger Regiment Base Camp" from LTC Gorham with the subject of and you have requested that you be notified on this event. You can view your new message by clicking on the following link:

http://www.75thrangers.us/portal/module ... lder=inbox

Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile.

--
Thanks,

Base Camp Postmaster


Notice how it just puts a space where the PM_SUBJECT should be. Any ideas?

Posted: Tue Sep 21, 2004 9:28 pm
by pentapenguin
Uhh...it looks like you're using Nuke which is radically changed from phpBB.
I don't think the code will work. :(

Posted: Tue Sep 21, 2004 10:15 pm
by TMB
I'd been looking for that. I asked the same question on Monday.

Mav's answer works very well.

Posted: Wed Sep 22, 2004 6:43 am
by Mav
thalador wrote: Notice how it just puts a space where the PM_SUBJECT should be. Any ideas?

Sorry, TMB says that it works ok for a normal phpbb setup ...i've got no experience with *nuke so i don't know what they've changed to incorporate phpbb.
Support requests for nuke ports of phpbb should be directed at the appropriate nuke support forum.