Open Source User Profile Script?

I am going to try my hand at developing a social network. Does anyone know any good tutorials or scripts for the rudimentary elements of a user profile (may or may not include login script)? If so, it might be very helpful, keeping me from having to code every line of PHP/MySQL, not to mention the front end. Thanks