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?
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
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.
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:
Only registered users can see links on this board! Get registered or login to the forums!
Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile.
--
Thanks,
Only registered users can see links on this board! Get registered or login to the forums!
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.
...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!
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
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 file
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum