Page 1 of 1

[MOD] Sender's Name and subject in PM Notification.

PostPosted: Mon May 15, 2006 1:51 pm
Author: evolver
This is another very small modification I like

[size=99px]
...and to add the PM-subject as well

[size=99px]
REPLACE
Code: Select all
                $emailer->assign_vars(array(                     'USERNAME' => $to_username,                                         'FROM' => $userdata['username'],                                         'ABOUT' => $privmsg_subject,                     'SITENAME' => $board_config['sitename'],                     'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br>', "n", "-- n" . $board_config['board_email_sig']) ]

[size=99px]
[b]REPLACE[/b][code]                 $emailer->assign_vars(array(                     'USERNAME' => stripslashes($to_username),                     'FROM' => $userdata['username'],                                         'ABOUT' => $privmsg_subject,                                         'SITENAME' => $board_config['sitename'],                     'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br>', "n", "-- n" . $board_config['board_email_sig']) ]

[size=99px][code]{FROM}{ABOUT}
...anywhere you like in that message...

PostPosted: Mon May 15, 2006 3:16 pm
Author: Adrian Rea
An interesting idea. Perhaps a useful further addition would be to add the title of the pm? This may allow the user to guage whether to rush to the site, or if it is a backup completed.

A

Re: Sender's Name in PM Notification.

PostPosted: Tue May 16, 2006 12:38 pm
Author: evolver
Sorry about this...
Installation was so easy, but I doesn't seem to work.
For some reason, it fails to show those variables.
I have tried other ways, but without success yet <img>

I will look further into this when I have time...

Re: Sender's Name in PM Notification.

PostPosted: Tue May 16, 2006 5:53 pm
Author: Teelk
Heya,

Try doing the same edits but to profilcp/profilcp_privmsg.php instead of privmsg.php.

Re: Sender's Name in PM Notification.

PostPosted: Wed May 17, 2006 6:18 am
Author: evolver
:)

without your help, I still wouldn't have a clue where it went wrong.

It's working now :P
I will edit the first post about the way to do it...

PostPosted: Wed May 17, 2006 6:42 am
Author: Adrian Rea
Nice one evolver <img>

A