Author |
Message |
tangoman
Involved


Joined: Aug 06, 2005
Posts: 301
|
Posted:
Thu Sep 22, 2005 6:52 am |
|
I want to change the standard text in the automated e-mails my users receive, when, for example, a new private message arrives.
I note that unlike the files containing text for e-mails sent for such things as New Registration or sending users a Newsletter, the files containing text for the e-mail notifying someone of a new Private Message', have the extension .tpl, (located at modules/Forums/language/lang_english/email/privmsg_notify.tpl)
What is a .tpl file and although my text editor does not like it, should I be able to edit the file and achieve my goal of changing the text contained within the automated e-mails? |
_________________ I am using PHPNuke Version 7.6 with patch 3.0, CNB YA 4.4.2, NukeSentinel(tm) 2.3.2 and Nuke Royal. |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Sep 22, 2005 10:27 am |
|
.tpl is simply a template file. PHPBB uses SMARTY templating. Just add the .tpl extension to your ASCII file descriptors and your editor should have no problems with it. It's just a text file. Change it however you like. |
|
|
|
 |
tangoman

|
Posted:
Thu Sep 22, 2005 1:10 pm |
|
Thanks again Raven,
Now then, I am currently driving myself mad trying to locate a language file.
I want to modify the text in the automated e-mail a registered user receives when a new Private Message is posted for them.
Currently, the e-mail reads as follows:
-------------------------------------------------------------------------
Hello USERS_NAME,
You have received a new private message to your account on "WEBSITE NAME" and you have requested that you be notified on this event. You can view your new message by clicking on the following link:
http://MYWEBSITE.com/modules.php?name=Private_Messages&file=index&folder=inbox
Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile.
--
Thanks, webmaster@MYWEBSITE.com
-------------------------------------------------------------------------
As earlier mentioned in this posting, I have located the 'automatic e-mail' template file as being: modules/Forums/language/lang_english/email/privmsg_notify.tpl
Now I want to replace the word 'Thanks' at the end, (on the final line).
I note that the word 'Thanks' is generated by the EMAIL_SIG 'definition' located in the file at: modules/Forums/language/lang_english/lang_admin.php
However, in turn, the EMAIL_SIG 'definition' is itself 'defined' by 'Email Signature' and this I am unable to locate.
Where should I be searching? |
|
|
|
 |
Raven

|
Posted:
Thu Sep 22, 2005 1:28 pm |
|
Forum Control Panel -> Configuration -> Email Settings -> Email Signature |
|
|
|
 |
tangoman

|
Posted:
Thu Sep 22, 2005 1:39 pm |
|
Erm...
...How d*** obvious!!!...You can see that I was getting carried away with 'number crunching' and simply assume I had to change another language file or something!
Thank you oh master! |
|
|
|
 |
Raven

|
Posted:
Thu Sep 22, 2005 1:48 pm |
|
Welcome to my world {EMAIL_SIG} is just a variable (template) substitution; not necessarily a define. If you look at this code in modules/Private_Messages/index.php you will see what directed me to the config fileCode: $emailer->assign_vars(array(
'USERNAME' => $to_username,
'FROM' => $userdata['username'],
'SITENAME' => $board_config['sitename'],
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
'U_INBOX' => $server_protocol . $server_name . $server_port . $script_name . '&folder=inbox')
);
|
|
|
|
|
 |
tangoman

|
Posted:
Thu Sep 22, 2005 1:57 pm |
|
|
|
 |
|