Can some one shed some light on why this isnt working please.
I am trying to stop people putting a URL in their profile.
In Profile Fields -> DescriptionMe -> Check
I have added the following:-
return (preg_match('/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i', $arg0));
Also tried:-
return ( preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $arg0 ));
This isnt working and when you try and join it tells me that a URL exists for anything I type in the box.
Any ideas to block these spamming scum would really be appreciated
Thanks