PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
tangoman
Involved
Involved


Joined: Aug 06, 2005
Posts: 301

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

.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 Visit poster's website AIM Address Yahoo Messenger
tangoman
Involved
Involved


Joined: Aug 06, 2005
Posts: 301

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

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:
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.

Where should I be searching?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Forum Control Panel -> Configuration -> Email Settings -> Email Signature
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
tangoman
Involved
Involved


Joined: Aug 06, 2005
Posts: 301

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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')
                                );
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
tangoman
Involved
Involved


Joined: Aug 06, 2005
Posts: 301

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

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum