View Single Post
  #1  
Old 08-07-2013, 11:22 AM
pachoofoosh's Avatar
pachoofoosh pachoofoosh is offline
Artist
 
Join Date: Dec 2012
Location: New York
Posts: 98
Gender: Unknown/Other
Credits: 15,425
pachoofoosh is on a distinguished road
Default (1.3.3) Automatically send new users welcome messages

This code will automatically send new users a welcome message when they register.

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(); 

Last edited by pachoofoosh; 08-09-2013 at 10:13 AM. Reason: Correctin' spelling errors
Reply With Quote