pachoofoosh |
08-07-2013 11:22 AM |
(1.3.3) Automatically send new users welcome messages
This code will automatically send new users a welcome message when they register. :happycbig:
Step 1.) Open up register.php. Find the line that looks like the following:
PHP Code:
$document->addLangvar($mysidia->lang->success.$mysidia->input->post("username").$mysidia->lang->success2);
Step 2.) Right under that line, paste this:
PHP Code:
$pm = new PrivateMessage(); // Send them a welcoming message $pm->setsender('YourUsernameHere'); $pm->setrecipient(htmlentities(addslashes(trim($mysidia->input->post("username"))))); $pm->setmessage("the message title", "put your welcoming message here"); $pm->post();
|