Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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,466
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
 

Tags
automatic, message, register, tutorial, welcoming


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ACP Has Odd Error Message squiggler Questions and Supports 3 01-12-2014 05:25 PM
PHP error message Vegetunks937 Questions and Supports 5 08-13-2013 12:58 PM
Pound Message GuardiansWish Questions and Supports 3 10-30-2012 11:05 AM
Send Email jcga Questions and Supports 3 08-18-2010 10:59 PM
levelup.php - Message if user owns pet they are leveled up/can't level up arlecchina Questions and Supports 6 07-28-2009 04:52 PM


All times are GMT -5. The time now is 05:03 PM.

Currently Active Users: 9815 (0 members and 9815 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636