Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
tangoman
Involved
Involved



Joined: Aug 06, 2005
Posts: 301

PostPosted: Thu Sep 22, 2005 6:52 am Reply with quote

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. 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Sep 22, 2005 10:27 am Reply with quote

.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.
 
View user's profile Send private message
tangoman







PostPosted: Thu Sep 22, 2005 1:10 pm Reply with quote

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







PostPosted: Thu Sep 22, 2005 1:28 pm Reply with quote

Forum Control Panel -> Configuration -> Email Settings -> Email Signature
 
tangoman







PostPosted: Thu Sep 22, 2005 1:39 pm Reply with quote

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







PostPosted: Thu Sep 22, 2005 1:48 pm Reply with quote

Welcome to my world ROTFL {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
Code:
                                $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







PostPosted: Thu Sep 22, 2005 1:57 pm Reply with quote

RavensScripts
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©