Topic: email as username

When new users try to register to punbb, how is that possible that tehy give only their email and then the first part of the email will be their username. ( then username will be myname).

Re: email as username

Won't this become a problem if you have one user with the email and one with for example?

3 (edited by erinther 2007-11-09 18:46)

Re: email as username

hmm. not really! because all users of my forum are the students of a university, with a unique email address.

P.S: The problem is that the first part of email is unique and each student have 2 or 3 emails like:
Thata's why I need the first part as username. I use a code something like this:

substr($string, 0, strpos($string, "@"));

that gives me the first part of an email, but I got problem to use it in register.php