sniko Posted February 16, 2012 Posted February 16, 2012 (edited) Simple edit, that will automatically log the user in upon sign up, which will make user experience better, as they don't have to enter their details twice to play for the first time. Open up register.php, and at the top, below line 1, add; session_start(); Now, find the following snippet; (Code Mucked Up?) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and directly below it add; (Code Mucked Up?) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If you get the following error; Cannot modify header information You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And that's it. -sniko Edited February 17, 2012 by sniko Added fix to "Cannot modify header information" 1 Quote
Ishraq Posted February 16, 2012 Posted February 16, 2012 This will be really helpful. Also its really clean. Quote
Spudinski Posted February 16, 2012 Posted February 16, 2012 Really useful, thank you. I wish more people would implement this. Quote
Newbie Posted February 17, 2012 Posted February 17, 2012 i get this Warning: Cannot modify header information - headers already sent by (output started at /home/mobsters/public_html/register.php:218) in /home/mobsters/public_html/register.php on line 305 Quote
sniko Posted February 17, 2012 Author Posted February 17, 2012 i get this Warning: Cannot modify header information - headers already sent by (output started at /home/mobsters/public_html/register.php:218) in /home/mobsters/public_html/register.php on line 305 Updated original post! Quote
Newbie Posted February 19, 2012 Posted February 19, 2012 nice 1 sniko works perfectly now will be using this :) its good for making new players goto a help tutorial etc or a begginer guide 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.