Hab eben ein neues - dem Website-Feld sehr ähnliches - (URL-)Profilfeld eingefügt.
Hab den "website"- und "www"-Code kopiert und die Variablen umbenannt.
Gleichwohl ich Folgendes in der functions_validate.php kopiert hab ("website" wurde umbenannt)
Code: Alles auswählen
// website has to start with http://, followed by something with length at least 3 that
// contains at least one dot.
if ($website != "")
{
if (!preg_match('#^http[s]?:\/\/#i', $website))
{
$website = 'http://' . $website;
}
if (!preg_match('#^http[s]?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website))
{
$website = '';
}
}