|
Page 1 of 1
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Change New Users' Welcome
I don't want to change THE welcome message, but the user (admin) the message is sent from.
Can you tell me what to modify?
|
#1 Tue 12 Dec, 2006 13:11 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Change New Users' Welcome
in lang_main.php
these lines
// START - SEND PM ON REGISTER MOD - AbelaJohnB
$lang['register_pm_subject'] = 'Welcome to %s';
$lang['register_pm'] = 'Hello!<br /><br />Welcome to %s. <br /><br />We hope you enjoy your time at this site! <br /><br />Feel free to join in and share with others or start your own discussion! <br /><br />~Enjoy!<br />%s Staff ';
// END - SEND PM ON REGISTER MOD - AbelaJohnB
____________ ? Zuker - EDDB - LPM - Sharefields
|
#2 Tue 12 Dec, 2006 13:25 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Change New Users' Welcome
in lang_main.php
these lines
// START - SEND PM ON REGISTER MOD - AbelaJohnB
$lang['register_pm_subject'] = 'Welcome to %s';
$lang['register_pm'] = 'Hello!<br /><br />Welcome to %s. <br /><br />We hope you enjoy your time at this site! <br /><br />Feel free to join in and share with others or start your own discussion! <br /><br />~Enjoy!<br />%s Staff ';
// END - SEND PM ON REGISTER MOD - AbelaJohnB
Yes, in this way I change the message. But I meant to to another thing. I'd like to change the USER the massage is sent from.
For example, for the new user that PM appears to be sent by default by admin "A". I want it to be sent by admin "B".
How to do that?
|
#3 Tue 12 Dec, 2006 14:30 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Change New Users' Welcome
now i understand what you want
i'll take a look
____________ ? Zuker - EDDB - LPM - Sharefields
|
#4 Tue 12 Dec, 2006 15:27 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Change New Users' Welcome
Vortex, i didn't try this
but in usercp_register.php
- $sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("'", "''", addslashes(sprintf($register_pm_subject,$board_config['sitename']))) . "', '2', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";
There is a "2" , maybe it's the sender id
Try to change it and let me know
____________ ? Zuker - EDDB - LPM - Sharefields
|
#5 Tue 12 Dec, 2006 21:37 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Change New Users' Welcome
It works perfectly, thanks Zuker ^^
|
#6 Wed 13 Dec, 2006 01:56 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Change New Users' Welcome
Greets
____________ ? Zuker - EDDB - LPM - Sharefields
|
#7 Wed 13 Dec, 2006 02:11 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|