Change New Users' Welcome »  Show posts from    to     

Icy Phoenix


Old Support Topics - Change New Users' Welcome



Vortex [ Tue 12 Dec, 2006 13:11 ]
Post subject: 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?


Zuker [ Tue 12 Dec, 2006 13:25 ]
Post subject: Re: Change New Users' Welcome
in lang_main.php

these lines

Code: [Hide] [Select]
// 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


Vortex [ Tue 12 Dec, 2006 14:30 ]
Post subject: Re: Change New Users' Welcome
Zuker wrote: [View Post]
in lang_main.php

these lines

Code: [Hide] [Select]
// 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?


Zuker [ Tue 12 Dec, 2006 15:27 ]
Post subject: Re: Change New Users' Welcome
now i understand what you want

i'll take a look


Zuker [ Tue 12 Dec, 2006 21:37 ]
Post subject: Re: Change New Users' Welcome
Vortex, i didn't try this

but in usercp_register.php

Code: [Hide]
  1. $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


Vortex [ Wed 13 Dec, 2006 01:56 ]
Post subject: Re: Change New Users' Welcome
It works perfectly, thanks Zuker ^^


Zuker [ Wed 13 Dec, 2006 02:11 ]
Post subject: Re: Change New Users' Welcome

Greets




Powered by Icy Phoenix