MrEvilChaos Posted March 22, 2011 Posted March 22, 2011 Hello I'm looking for a welcome msg mod so when a new user joins they will get a msg from Id 1 and it would be somthing like this ex: Hello, welcome to GameNameHere. Im the games coder and new player helper, so if you need help with anything, just ask me. You can start training and leveling up by doing crimes and training at the enhancement centers on your left side menu. Many new players have found this EXTREMELY helpful when they want to know what different things are and how to play and get set up and settle in. and then staff would get an event with the new persons name and the Ip they signd up with ex: Mr Evil Chaos Joined from IPHere Thanks guys Quote
Kieran-R Posted March 22, 2011 Posted March 22, 2011 Add a field to the users table called `justjoined` INT 11 DEFAILT 0 add this to loggedin.php if ($ir['justjoined'] == 0) { echo " Hello, welcome to GameNameHere. Im the games coder and new player helper, so if you need help with anything, just ask me. You can start training and leveling up by doing crimes and training at the enhancement centers on your left side menu. Many new players have found this EXTREMELY helpful when they want to know what different things are and how to play and get set up and settle in. "; mysql_query("UPDATE `users` SET `justjoined` = 1 WHERE (`userid` = $userid)"); event_add(1, "{$ir['username']} just joined with IP Address: {$ir['lastip']}"); } Not tested, but should work ok :thumbsup: Quote
MrEvilChaos Posted March 22, 2011 Author Posted March 22, 2011 okay will test it but I want the even to be sent to Admins user lvl 2 and sec user lvl 3 if it is possible xD and what ID would be sending the msg I would prefer Id to have it sent from his ID? but I will test this code out none the less Thanks :rolleyes: Quote
Danny696 Posted March 22, 2011 Posted March 22, 2011 Add a field to the users table called `justjoined` INT 11 DEFAILT 0 add this to loggedin.php if ($ir['justjoined'] == 0) { echo " Hello, welcome to GameNameHere. Im the games coder and new player helper, so if you need help with anything, just ask me. You can start training and leveling up by doing crimes and training at the enhancement centers on your left side menu. Many new players have found this EXTREMELY helpful when they want to know what different things are and how to play and get set up and settle in. "; mysql_query("UPDATE `users` SET `justjoined` = 1 WHERE (`userid` = $userid)"); send_event(1, "{$ir['username']} just joined with IP Address: {$ir['lastip']}"); } Not tested, but should work ok :thumbsup: YAY Another way to clog up the terrible users table. How about a simple if, check if the user has logged in. (Via last login column) Quote
MrEvilChaos Posted March 22, 2011 Author Posted March 22, 2011 yea that code didnt work xD oh well I'm gonna try editing it Quote
Dominion Posted March 22, 2011 Posted March 22, 2011 It works.... Trust me ;) Event_send is not an mccodes function (it's event_add). Also danny is right just ask if last_login = 0 then do an insert into the user's mailbox. Quote
Kieran-R Posted March 22, 2011 Posted March 22, 2011 Ahh was getting mixed up... I dont work with MCCodes so often. Sorry about that. Quote
Paul Evans Posted March 22, 2011 Posted March 22, 2011 you could do it due to daysold ? if ( $ir['daysold'] == 0 ) { echo 'text'; } Quote
Dominion Posted March 22, 2011 Posted March 22, 2011 If he wants a mail sent to the user, and an event sent to id 1 then going with days old is a bad idea. If they login twice in a day - or more as some people do - they will get a mail each time. Quote
Paul Evans Posted March 22, 2011 Posted March 22, 2011 Insert the mail when they sign up? I assumed the guy wanted it on loggedin or whatever but if you use the search function the event/mail welcome has been doing. Quote
MrEvilChaos Posted March 23, 2011 Author Posted March 23, 2011 And paul I have used the search and have found nothing Quote
MrEvilChaos Posted March 23, 2011 Author Posted March 23, 2011 okay I can see that and I have looked at it but it still dosnt tell me were to put the msg at Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.