SOLVED Change New Users' Welcome


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?

Subject: Re: Change New Users' Welcome
in lang_main.php

these lines

Code: [Download] [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

Subject: Re: Change New Users' Welcome
Zuker wrote: [View Post]
in lang_main.php

these lines

Code: [Download] [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?

Subject: Re: Change New Users' Welcome
now i understand what you want

i'll take a look

Subject: Re: Change New Users' Welcome
Vortex, i didn't try this

but in usercp_register.php

Code: [Download] [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

Subject: Re: Change New Users' Welcome
It works perfectly, thanks Zuker ^^

Subject: Re: Change New Users' Welcome
:mrgreen:
Greets


Page 1 of 1


  
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

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2244s (PHP: 70% SQL: 30%)
SQL queries: 10 - Debug Off - GZIP Enabled